@arrowsphere/api-client 3.18.0 → 3.19.0-rc.1
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 +6 -0
- package/build/campaign/campaignClient.d.ts +6 -0
- package/build/campaign/campaignClient.js +12 -0
- package/build/campaign/entities/v2/campaign/banner/banner.d.ts +31 -0
- package/build/campaign/entities/v2/campaign/banner/banner.js +82 -0
- package/build/campaign/entities/v2/campaign/campaign.d.ts +49 -0
- package/build/campaign/entities/v2/campaign/campaign.js +123 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.d.ts +25 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +67 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.d.ts +32 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +88 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.d.ts +20 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +57 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.d.ts +28 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +75 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.d.ts +31 -0
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +83 -0
- package/build/campaign/index.d.ts +7 -0
- package/build/campaign/index.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.19.0] - 2023-01-23
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Add endpoint campaign v2
|
|
11
|
+
|
|
6
12
|
## [3.18.0] - 2023-01-10
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AbstractClient, Parameters } from '../abstractClient';
|
|
2
2
|
import { GetResult } from '../getResult';
|
|
3
3
|
import { Campaign } from './entities/campaign/campaign';
|
|
4
|
+
import { CampaignV2 } from './entities/v2/campaign/campaign';
|
|
4
5
|
import { CampaignAssets } from './entities/campaignAssets/campaignAssets';
|
|
5
6
|
export declare enum PostEmailCampaignFields {
|
|
6
7
|
COLUMN_APPLICATION = "application",
|
|
@@ -18,8 +19,13 @@ export declare class CampaignClient extends AbstractClient {
|
|
|
18
19
|
* The base path of the API
|
|
19
20
|
*/
|
|
20
21
|
protected basePath: string;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use getActiveCampaignV2() instead
|
|
24
|
+
*/
|
|
21
25
|
getActiveCampaign(parameters?: Parameters): Promise<GetResult<Campaign>>;
|
|
26
|
+
getActiveCampaignV2(parameters?: Parameters): Promise<GetResult<CampaignV2>>;
|
|
22
27
|
getCampaignAssets(campaignReference: string, parameters?: Parameters): Promise<GetResult<CampaignAssets>>;
|
|
23
28
|
getCampaignDetails(campaignReference: string, parameters?: Parameters): Promise<GetResult<Campaign>>;
|
|
29
|
+
getCampaignDetailsV2(campaignReference: string, parameters?: Parameters): Promise<GetResult<CampaignV2>>;
|
|
24
30
|
postCampaignEmail(campaignReference: string, postData: PostEmailCampaignType, parameters?: Parameters): Promise<void>;
|
|
25
31
|
}
|
|
@@ -4,6 +4,7 @@ exports.CampaignClient = exports.PostEmailCampaignFields = void 0;
|
|
|
4
4
|
const abstractClient_1 = require("../abstractClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const campaign_1 = require("./entities/campaign/campaign");
|
|
7
|
+
const campaign_2 = require("./entities/v2/campaign/campaign");
|
|
7
8
|
const campaignAssets_1 = require("./entities/campaignAssets/campaignAssets");
|
|
8
9
|
var PostEmailCampaignFields;
|
|
9
10
|
(function (PostEmailCampaignFields) {
|
|
@@ -18,10 +19,17 @@ class CampaignClient extends abstractClient_1.AbstractClient {
|
|
|
18
19
|
*/
|
|
19
20
|
this.basePath = '/campaigns';
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use getActiveCampaignV2() instead
|
|
24
|
+
*/
|
|
21
25
|
async getActiveCampaign(parameters = {}) {
|
|
22
26
|
this.path = '/active';
|
|
23
27
|
return new getResult_1.GetResult(campaign_1.Campaign, await this.get(parameters));
|
|
24
28
|
}
|
|
29
|
+
async getActiveCampaignV2(parameters = {}) {
|
|
30
|
+
this.path = '/v2/active';
|
|
31
|
+
return new getResult_1.GetResult(campaign_2.CampaignV2, await this.get(parameters));
|
|
32
|
+
}
|
|
25
33
|
async getCampaignAssets(campaignReference, parameters = {}) {
|
|
26
34
|
this.path = `/${campaignReference}/assets`;
|
|
27
35
|
return new getResult_1.GetResult(campaignAssets_1.CampaignAssets, await this.get(parameters));
|
|
@@ -30,6 +38,10 @@ class CampaignClient extends abstractClient_1.AbstractClient {
|
|
|
30
38
|
this.path = `/${campaignReference}`;
|
|
31
39
|
return new getResult_1.GetResult(campaign_1.Campaign, await this.get(parameters));
|
|
32
40
|
}
|
|
41
|
+
async getCampaignDetailsV2(campaignReference, parameters = {}) {
|
|
42
|
+
this.path = `/v2/${campaignReference}`;
|
|
43
|
+
return new getResult_1.GetResult(campaign_2.CampaignV2, await this.get(parameters));
|
|
44
|
+
}
|
|
33
45
|
async postCampaignEmail(campaignReference, postData, parameters = {}) {
|
|
34
46
|
this.path = `/${campaignReference}/notify`;
|
|
35
47
|
return await this.post(postData, parameters);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
export declare enum BannerV2Fields {
|
|
3
|
+
COLUMN_BACKGROUND_IMAGE_UUID = "backgroundImageUuid",
|
|
4
|
+
COLUMN_BACKGROUND_COLOR = "backgroundColor",
|
|
5
|
+
COLUMN_TYPE = "type",
|
|
6
|
+
COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
|
|
7
|
+
COLUMN_BUTTON_TEXT = "buttonText",
|
|
8
|
+
COLUMN_TEXT = "text",
|
|
9
|
+
COLUMN_TEXT_COLOR = "textColor"
|
|
10
|
+
}
|
|
11
|
+
export declare type BannerV2Type = {
|
|
12
|
+
[BannerV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
|
|
13
|
+
[BannerV2Fields.COLUMN_BACKGROUND_COLOR]?: string;
|
|
14
|
+
[BannerV2Fields.COLUMN_TYPE]?: string;
|
|
15
|
+
[BannerV2Fields.COLUMN_BUTTON_PLACEMENT]?: string;
|
|
16
|
+
[BannerV2Fields.COLUMN_BUTTON_TEXT]?: string;
|
|
17
|
+
[BannerV2Fields.COLUMN_TEXT]?: string;
|
|
18
|
+
[BannerV2Fields.COLUMN_TEXT_COLOR]?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class BannerV2 extends AbstractEntity<BannerV2Type> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(bannerInput: BannerV2Type);
|
|
23
|
+
get backgroundImageUuid(): string;
|
|
24
|
+
get backgroundColor(): string | undefined;
|
|
25
|
+
get type(): string | undefined;
|
|
26
|
+
get buttonPlacement(): string | undefined;
|
|
27
|
+
get buttonText(): string | undefined;
|
|
28
|
+
get text(): string | undefined;
|
|
29
|
+
get textColor(): string | undefined;
|
|
30
|
+
toJSON(): BannerV2Type;
|
|
31
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _backgroundImageUuid, _type, _buttonPlacement, _buttonText, _text, _textColor, _backgroundColor;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BannerV2 = exports.BannerV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
19
|
+
var BannerV2Fields;
|
|
20
|
+
(function (BannerV2Fields) {
|
|
21
|
+
BannerV2Fields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
|
|
22
|
+
BannerV2Fields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
|
|
23
|
+
BannerV2Fields["COLUMN_TYPE"] = "type";
|
|
24
|
+
BannerV2Fields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
|
|
25
|
+
BannerV2Fields["COLUMN_BUTTON_TEXT"] = "buttonText";
|
|
26
|
+
BannerV2Fields["COLUMN_TEXT"] = "text";
|
|
27
|
+
BannerV2Fields["COLUMN_TEXT_COLOR"] = "textColor";
|
|
28
|
+
})(BannerV2Fields = exports.BannerV2Fields || (exports.BannerV2Fields = {}));
|
|
29
|
+
class BannerV2 extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(bannerInput) {
|
|
31
|
+
super(bannerInput);
|
|
32
|
+
_backgroundImageUuid.set(this, void 0);
|
|
33
|
+
_type.set(this, void 0);
|
|
34
|
+
_buttonPlacement.set(this, void 0);
|
|
35
|
+
_buttonText.set(this, void 0);
|
|
36
|
+
_text.set(this, void 0);
|
|
37
|
+
_textColor.set(this, void 0);
|
|
38
|
+
_backgroundColor.set(this, void 0);
|
|
39
|
+
__classPrivateFieldSet(this, _backgroundImageUuid, bannerInput[BannerV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]);
|
|
40
|
+
__classPrivateFieldSet(this, _type, bannerInput[BannerV2Fields.COLUMN_TYPE]);
|
|
41
|
+
__classPrivateFieldSet(this, _buttonPlacement, bannerInput[BannerV2Fields.COLUMN_BUTTON_PLACEMENT]);
|
|
42
|
+
__classPrivateFieldSet(this, _buttonText, bannerInput[BannerV2Fields.COLUMN_BUTTON_TEXT]);
|
|
43
|
+
__classPrivateFieldSet(this, _text, bannerInput[BannerV2Fields.COLUMN_TEXT]);
|
|
44
|
+
__classPrivateFieldSet(this, _textColor, bannerInput[BannerV2Fields.COLUMN_TEXT_COLOR]);
|
|
45
|
+
__classPrivateFieldSet(this, _backgroundColor, bannerInput[BannerV2Fields.COLUMN_BACKGROUND_COLOR]);
|
|
46
|
+
}
|
|
47
|
+
get backgroundImageUuid() {
|
|
48
|
+
return __classPrivateFieldGet(this, _backgroundImageUuid);
|
|
49
|
+
}
|
|
50
|
+
get backgroundColor() {
|
|
51
|
+
return __classPrivateFieldGet(this, _backgroundColor);
|
|
52
|
+
}
|
|
53
|
+
get type() {
|
|
54
|
+
return __classPrivateFieldGet(this, _type);
|
|
55
|
+
}
|
|
56
|
+
get buttonPlacement() {
|
|
57
|
+
return __classPrivateFieldGet(this, _buttonPlacement);
|
|
58
|
+
}
|
|
59
|
+
get buttonText() {
|
|
60
|
+
return __classPrivateFieldGet(this, _buttonText);
|
|
61
|
+
}
|
|
62
|
+
get text() {
|
|
63
|
+
return __classPrivateFieldGet(this, _text);
|
|
64
|
+
}
|
|
65
|
+
get textColor() {
|
|
66
|
+
return __classPrivateFieldGet(this, _textColor);
|
|
67
|
+
}
|
|
68
|
+
toJSON() {
|
|
69
|
+
return {
|
|
70
|
+
[BannerV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]: this.backgroundImageUuid,
|
|
71
|
+
[BannerV2Fields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
|
|
72
|
+
[BannerV2Fields.COLUMN_TYPE]: this.type,
|
|
73
|
+
[BannerV2Fields.COLUMN_BUTTON_PLACEMENT]: this.buttonPlacement,
|
|
74
|
+
[BannerV2Fields.COLUMN_BUTTON_TEXT]: this.buttonText,
|
|
75
|
+
[BannerV2Fields.COLUMN_TEXT]: this.text,
|
|
76
|
+
[BannerV2Fields.COLUMN_TEXT_COLOR]: this.textColor,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.BannerV2 = BannerV2;
|
|
81
|
+
_backgroundImageUuid = new WeakMap(), _type = new WeakMap(), _buttonPlacement = new WeakMap(), _buttonText = new WeakMap(), _text = new WeakMap(), _textColor = new WeakMap(), _backgroundColor = new WeakMap();
|
|
82
|
+
//# sourceMappingURL=banner.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { BannerV2, BannerV2Type } from './banner/banner';
|
|
3
|
+
import { LandingPageV2, LandingPageV2Type } from './landingPage/landingPage';
|
|
4
|
+
import { Rules, RulesType } from '../../campaign/rules/rules';
|
|
5
|
+
export declare enum CampaignV2Fields {
|
|
6
|
+
COLUMN_REFERENCE = "reference",
|
|
7
|
+
COLUMN_NAME = "name",
|
|
8
|
+
COLUMN_CATEGORY = "category",
|
|
9
|
+
COLUMN_IS_ACTIVATED = "isActivated",
|
|
10
|
+
COLUMN_CREATED_AT = "createdAt",
|
|
11
|
+
COLUMN_UPDATED_AT = "updatedAt",
|
|
12
|
+
COLUMN_DELETED_AT = "deletedAt",
|
|
13
|
+
COLUMN_RULES = "rules",
|
|
14
|
+
COLUMN_START_DATE = "startDate",
|
|
15
|
+
COLUMN_END_DATE = "endDate",
|
|
16
|
+
COLUMN_BANNER = "banner",
|
|
17
|
+
COLUMN_LANDING_PAGE = "landingPage"
|
|
18
|
+
}
|
|
19
|
+
export declare type CampaignV2Type = {
|
|
20
|
+
[CampaignV2Fields.COLUMN_REFERENCE]: string;
|
|
21
|
+
[CampaignV2Fields.COLUMN_NAME]: string;
|
|
22
|
+
[CampaignV2Fields.COLUMN_CATEGORY]?: string;
|
|
23
|
+
[CampaignV2Fields.COLUMN_IS_ACTIVATED]?: boolean;
|
|
24
|
+
[CampaignV2Fields.COLUMN_CREATED_AT]: string;
|
|
25
|
+
[CampaignV2Fields.COLUMN_UPDATED_AT]: string;
|
|
26
|
+
[CampaignV2Fields.COLUMN_DELETED_AT]?: string;
|
|
27
|
+
[CampaignV2Fields.COLUMN_RULES]?: RulesType;
|
|
28
|
+
[CampaignV2Fields.COLUMN_START_DATE]?: string;
|
|
29
|
+
[CampaignV2Fields.COLUMN_END_DATE]?: string;
|
|
30
|
+
[CampaignV2Fields.COLUMN_BANNER]: BannerV2Type;
|
|
31
|
+
[CampaignV2Fields.COLUMN_LANDING_PAGE]: LandingPageV2Type;
|
|
32
|
+
};
|
|
33
|
+
export declare class CampaignV2 extends AbstractEntity<CampaignV2Type> {
|
|
34
|
+
#private;
|
|
35
|
+
constructor(campaignInput: CampaignV2Type);
|
|
36
|
+
get reference(): string;
|
|
37
|
+
get name(): string;
|
|
38
|
+
get category(): string | undefined;
|
|
39
|
+
get isActivated(): boolean | undefined;
|
|
40
|
+
get createdAt(): string;
|
|
41
|
+
get updatedAt(): string;
|
|
42
|
+
get deletedAt(): string | undefined;
|
|
43
|
+
get rules(): Rules | undefined;
|
|
44
|
+
get startDate(): string | undefined;
|
|
45
|
+
get endDate(): string | undefined;
|
|
46
|
+
get banner(): BannerV2;
|
|
47
|
+
get landingPage(): LandingPageV2;
|
|
48
|
+
toJSON(): CampaignV2Type;
|
|
49
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _reference, _name, _category, _isActivated, _createdAt, _updatedAt, _deletedAt, _rules, _startDate, _endDate, _banner, _landingPage;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CampaignV2 = exports.CampaignV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
+
const banner_1 = require("./banner/banner");
|
|
20
|
+
const landingPage_1 = require("./landingPage/landingPage");
|
|
21
|
+
const rules_1 = require("../../campaign/rules/rules");
|
|
22
|
+
var CampaignV2Fields;
|
|
23
|
+
(function (CampaignV2Fields) {
|
|
24
|
+
CampaignV2Fields["COLUMN_REFERENCE"] = "reference";
|
|
25
|
+
CampaignV2Fields["COLUMN_NAME"] = "name";
|
|
26
|
+
CampaignV2Fields["COLUMN_CATEGORY"] = "category";
|
|
27
|
+
CampaignV2Fields["COLUMN_IS_ACTIVATED"] = "isActivated";
|
|
28
|
+
CampaignV2Fields["COLUMN_CREATED_AT"] = "createdAt";
|
|
29
|
+
CampaignV2Fields["COLUMN_UPDATED_AT"] = "updatedAt";
|
|
30
|
+
CampaignV2Fields["COLUMN_DELETED_AT"] = "deletedAt";
|
|
31
|
+
CampaignV2Fields["COLUMN_RULES"] = "rules";
|
|
32
|
+
CampaignV2Fields["COLUMN_START_DATE"] = "startDate";
|
|
33
|
+
CampaignV2Fields["COLUMN_END_DATE"] = "endDate";
|
|
34
|
+
CampaignV2Fields["COLUMN_BANNER"] = "banner";
|
|
35
|
+
CampaignV2Fields["COLUMN_LANDING_PAGE"] = "landingPage";
|
|
36
|
+
})(CampaignV2Fields = exports.CampaignV2Fields || (exports.CampaignV2Fields = {}));
|
|
37
|
+
class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
38
|
+
constructor(campaignInput) {
|
|
39
|
+
super(campaignInput);
|
|
40
|
+
_reference.set(this, void 0);
|
|
41
|
+
_name.set(this, void 0);
|
|
42
|
+
_category.set(this, void 0);
|
|
43
|
+
_isActivated.set(this, void 0);
|
|
44
|
+
_createdAt.set(this, void 0);
|
|
45
|
+
_updatedAt.set(this, void 0);
|
|
46
|
+
_deletedAt.set(this, void 0);
|
|
47
|
+
_rules.set(this, void 0);
|
|
48
|
+
_startDate.set(this, void 0);
|
|
49
|
+
_endDate.set(this, void 0);
|
|
50
|
+
_banner.set(this, void 0);
|
|
51
|
+
_landingPage.set(this, void 0);
|
|
52
|
+
__classPrivateFieldSet(this, _reference, campaignInput[CampaignV2Fields.COLUMN_REFERENCE]);
|
|
53
|
+
__classPrivateFieldSet(this, _name, campaignInput[CampaignV2Fields.COLUMN_NAME]);
|
|
54
|
+
__classPrivateFieldSet(this, _category, campaignInput[CampaignV2Fields.COLUMN_CATEGORY]);
|
|
55
|
+
__classPrivateFieldSet(this, _isActivated, campaignInput[CampaignV2Fields.COLUMN_IS_ACTIVATED]);
|
|
56
|
+
__classPrivateFieldSet(this, _createdAt, campaignInput[CampaignV2Fields.COLUMN_CREATED_AT]);
|
|
57
|
+
__classPrivateFieldSet(this, _updatedAt, campaignInput[CampaignV2Fields.COLUMN_UPDATED_AT]);
|
|
58
|
+
__classPrivateFieldSet(this, _deletedAt, campaignInput[CampaignV2Fields.COLUMN_DELETED_AT]);
|
|
59
|
+
__classPrivateFieldSet(this, _rules, campaignInput[CampaignV2Fields.COLUMN_RULES]
|
|
60
|
+
? new rules_1.Rules(campaignInput[CampaignV2Fields.COLUMN_RULES])
|
|
61
|
+
: undefined);
|
|
62
|
+
__classPrivateFieldSet(this, _startDate, campaignInput[CampaignV2Fields.COLUMN_START_DATE]);
|
|
63
|
+
__classPrivateFieldSet(this, _endDate, campaignInput[CampaignV2Fields.COLUMN_END_DATE]);
|
|
64
|
+
__classPrivateFieldSet(this, _banner, new banner_1.BannerV2(campaignInput[CampaignV2Fields.COLUMN_BANNER]));
|
|
65
|
+
__classPrivateFieldSet(this, _landingPage, new landingPage_1.LandingPageV2(campaignInput[CampaignV2Fields.COLUMN_LANDING_PAGE]));
|
|
66
|
+
}
|
|
67
|
+
get reference() {
|
|
68
|
+
return __classPrivateFieldGet(this, _reference);
|
|
69
|
+
}
|
|
70
|
+
get name() {
|
|
71
|
+
return __classPrivateFieldGet(this, _name);
|
|
72
|
+
}
|
|
73
|
+
get category() {
|
|
74
|
+
return __classPrivateFieldGet(this, _category);
|
|
75
|
+
}
|
|
76
|
+
get isActivated() {
|
|
77
|
+
return __classPrivateFieldGet(this, _isActivated);
|
|
78
|
+
}
|
|
79
|
+
get createdAt() {
|
|
80
|
+
return __classPrivateFieldGet(this, _createdAt);
|
|
81
|
+
}
|
|
82
|
+
get updatedAt() {
|
|
83
|
+
return __classPrivateFieldGet(this, _updatedAt);
|
|
84
|
+
}
|
|
85
|
+
get deletedAt() {
|
|
86
|
+
return __classPrivateFieldGet(this, _deletedAt);
|
|
87
|
+
}
|
|
88
|
+
get rules() {
|
|
89
|
+
return __classPrivateFieldGet(this, _rules);
|
|
90
|
+
}
|
|
91
|
+
get startDate() {
|
|
92
|
+
return __classPrivateFieldGet(this, _startDate);
|
|
93
|
+
}
|
|
94
|
+
get endDate() {
|
|
95
|
+
return __classPrivateFieldGet(this, _endDate);
|
|
96
|
+
}
|
|
97
|
+
get banner() {
|
|
98
|
+
return __classPrivateFieldGet(this, _banner);
|
|
99
|
+
}
|
|
100
|
+
get landingPage() {
|
|
101
|
+
return __classPrivateFieldGet(this, _landingPage);
|
|
102
|
+
}
|
|
103
|
+
toJSON() {
|
|
104
|
+
var _a;
|
|
105
|
+
return {
|
|
106
|
+
[CampaignV2Fields.COLUMN_REFERENCE]: this.reference,
|
|
107
|
+
[CampaignV2Fields.COLUMN_NAME]: this.name,
|
|
108
|
+
[CampaignV2Fields.COLUMN_CATEGORY]: this.category,
|
|
109
|
+
[CampaignV2Fields.COLUMN_IS_ACTIVATED]: this.isActivated,
|
|
110
|
+
[CampaignV2Fields.COLUMN_CREATED_AT]: this.createdAt,
|
|
111
|
+
[CampaignV2Fields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
112
|
+
[CampaignV2Fields.COLUMN_DELETED_AT]: this.deletedAt,
|
|
113
|
+
[CampaignV2Fields.COLUMN_RULES]: (_a = this.rules) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
114
|
+
[CampaignV2Fields.COLUMN_START_DATE]: this.startDate,
|
|
115
|
+
[CampaignV2Fields.COLUMN_END_DATE]: this.endDate,
|
|
116
|
+
[CampaignV2Fields.COLUMN_BANNER]: this.banner.toJSON(),
|
|
117
|
+
[CampaignV2Fields.COLUMN_LANDING_PAGE]: this.landingPage.toJSON(),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.CampaignV2 = CampaignV2;
|
|
122
|
+
_reference = new WeakMap(), _name = new WeakMap(), _category = new WeakMap(), _isActivated = new WeakMap(), _createdAt = new WeakMap(), _updatedAt = new WeakMap(), _deletedAt = new WeakMap(), _rules = new WeakMap(), _startDate = new WeakMap(), _endDate = new WeakMap(), _banner = new WeakMap(), _landingPage = new WeakMap();
|
|
123
|
+
//# sourceMappingURL=campaign.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { LandingPageBody, LandingPageBodyType } from '../../../campaign/landingPage/landingPageBody';
|
|
3
|
+
import { LandingPageFooterV2, LandingPageFooterV2Type } from './landingPageFooter/landingPageFooter';
|
|
4
|
+
import { LandingPageHeaderV2, LandingPageHeaderV2Type } from './landingPageHeader';
|
|
5
|
+
export declare enum LandingPageV2Fields {
|
|
6
|
+
COLUMN_URL = "url",
|
|
7
|
+
COLUMN_HEADER = "header",
|
|
8
|
+
COLUMN_BODY = "body",
|
|
9
|
+
COLUMN_FOOTER = "footer"
|
|
10
|
+
}
|
|
11
|
+
export declare type LandingPageV2Type = {
|
|
12
|
+
[LandingPageV2Fields.COLUMN_URL]?: string;
|
|
13
|
+
[LandingPageV2Fields.COLUMN_HEADER]: LandingPageHeaderV2Type;
|
|
14
|
+
[LandingPageV2Fields.COLUMN_BODY]: LandingPageBodyType;
|
|
15
|
+
[LandingPageV2Fields.COLUMN_FOOTER]?: LandingPageFooterV2Type;
|
|
16
|
+
};
|
|
17
|
+
export declare class LandingPageV2 extends AbstractEntity<LandingPageV2Type> {
|
|
18
|
+
#private;
|
|
19
|
+
constructor(landingPageInput: LandingPageV2Type);
|
|
20
|
+
get url(): string | undefined;
|
|
21
|
+
get header(): LandingPageHeaderV2;
|
|
22
|
+
get body(): LandingPageBody;
|
|
23
|
+
get footer(): LandingPageFooterV2 | undefined;
|
|
24
|
+
toJSON(): LandingPageV2Type;
|
|
25
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _url, _header, _body, _footer;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LandingPageV2 = exports.LandingPageV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
19
|
+
const landingPageBody_1 = require("../../../campaign/landingPage/landingPageBody");
|
|
20
|
+
const landingPageFooter_1 = require("./landingPageFooter/landingPageFooter");
|
|
21
|
+
const landingPageHeader_1 = require("./landingPageHeader");
|
|
22
|
+
var LandingPageV2Fields;
|
|
23
|
+
(function (LandingPageV2Fields) {
|
|
24
|
+
LandingPageV2Fields["COLUMN_URL"] = "url";
|
|
25
|
+
LandingPageV2Fields["COLUMN_HEADER"] = "header";
|
|
26
|
+
LandingPageV2Fields["COLUMN_BODY"] = "body";
|
|
27
|
+
LandingPageV2Fields["COLUMN_FOOTER"] = "footer";
|
|
28
|
+
})(LandingPageV2Fields = exports.LandingPageV2Fields || (exports.LandingPageV2Fields = {}));
|
|
29
|
+
class LandingPageV2 extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(landingPageInput) {
|
|
31
|
+
super(landingPageInput);
|
|
32
|
+
_url.set(this, void 0);
|
|
33
|
+
_header.set(this, void 0);
|
|
34
|
+
_body.set(this, void 0);
|
|
35
|
+
_footer.set(this, void 0);
|
|
36
|
+
__classPrivateFieldSet(this, _url, landingPageInput[LandingPageV2Fields.COLUMN_URL]);
|
|
37
|
+
__classPrivateFieldSet(this, _header, new landingPageHeader_1.LandingPageHeaderV2(landingPageInput[LandingPageV2Fields.COLUMN_HEADER]));
|
|
38
|
+
__classPrivateFieldSet(this, _body, new landingPageBody_1.LandingPageBody(landingPageInput[LandingPageV2Fields.COLUMN_BODY]));
|
|
39
|
+
__classPrivateFieldSet(this, _footer, landingPageInput[LandingPageV2Fields.COLUMN_FOOTER]
|
|
40
|
+
? new landingPageFooter_1.LandingPageFooterV2(landingPageInput[LandingPageV2Fields.COLUMN_FOOTER])
|
|
41
|
+
: undefined);
|
|
42
|
+
}
|
|
43
|
+
get url() {
|
|
44
|
+
return __classPrivateFieldGet(this, _url);
|
|
45
|
+
}
|
|
46
|
+
get header() {
|
|
47
|
+
return __classPrivateFieldGet(this, _header);
|
|
48
|
+
}
|
|
49
|
+
get body() {
|
|
50
|
+
return __classPrivateFieldGet(this, _body);
|
|
51
|
+
}
|
|
52
|
+
get footer() {
|
|
53
|
+
return __classPrivateFieldGet(this, _footer);
|
|
54
|
+
}
|
|
55
|
+
toJSON() {
|
|
56
|
+
var _a;
|
|
57
|
+
return {
|
|
58
|
+
[LandingPageV2Fields.COLUMN_URL]: this.url,
|
|
59
|
+
[LandingPageV2Fields.COLUMN_HEADER]: this.header.toJSON(),
|
|
60
|
+
[LandingPageV2Fields.COLUMN_BODY]: this.body.toJSON(),
|
|
61
|
+
[LandingPageV2Fields.COLUMN_FOOTER]: (_a = this.footer) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.LandingPageV2 = LandingPageV2;
|
|
66
|
+
_url = new WeakMap(), _header = new WeakMap(), _body = new WeakMap(), _footer = new WeakMap();
|
|
67
|
+
//# sourceMappingURL=landingPage.js.map
|
package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
import { LandingPageFooterFeatureV2, LandingPageFooterFeatureV2Type } from './landingPageFooterFeature';
|
|
3
|
+
export declare enum LandingPageFooterV2Fields {
|
|
4
|
+
COLUMN_TITLE = "title",
|
|
5
|
+
COLUMN_BACKGROUND_COLOR = "backgroundColor",
|
|
6
|
+
COLUMN_BUTTON_TEXT = "buttonText",
|
|
7
|
+
COLUMN_BUTTON_URL = "buttonUrl",
|
|
8
|
+
COLUMN_TEXT_COLOR = "textColor",
|
|
9
|
+
COLUMN_FEATURE = "feature",
|
|
10
|
+
COLUMN_MARKETING_FEATURE = "marketingFeature"
|
|
11
|
+
}
|
|
12
|
+
export declare type LandingPageFooterV2Type = {
|
|
13
|
+
[LandingPageFooterV2Fields.COLUMN_TITLE]?: string;
|
|
14
|
+
[LandingPageFooterV2Fields.COLUMN_BACKGROUND_COLOR]?: string;
|
|
15
|
+
[LandingPageFooterV2Fields.COLUMN_BUTTON_TEXT]?: string;
|
|
16
|
+
[LandingPageFooterV2Fields.COLUMN_BUTTON_URL]?: string;
|
|
17
|
+
[LandingPageFooterV2Fields.COLUMN_TEXT_COLOR]?: string;
|
|
18
|
+
[LandingPageFooterV2Fields.COLUMN_FEATURE]?: LandingPageFooterFeatureV2Type;
|
|
19
|
+
[LandingPageFooterV2Fields.COLUMN_MARKETING_FEATURE]?: LandingPageFooterFeatureV2Type;
|
|
20
|
+
};
|
|
21
|
+
export declare class LandingPageFooterV2 extends AbstractEntity<LandingPageFooterV2Type> {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(landingPageFooterInput: LandingPageFooterV2Type);
|
|
24
|
+
get title(): string | undefined;
|
|
25
|
+
get backgroundColor(): string | undefined;
|
|
26
|
+
get buttonText(): string | undefined;
|
|
27
|
+
get buttonUrl(): string | undefined;
|
|
28
|
+
get textColor(): string | undefined;
|
|
29
|
+
get feature(): LandingPageFooterFeatureV2 | undefined;
|
|
30
|
+
get marketingFeature(): LandingPageFooterFeatureV2 | undefined;
|
|
31
|
+
toJSON(): LandingPageFooterV2Type;
|
|
32
|
+
}
|
package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _title, _backgroundColor, _buttonText, _buttonUrl, _textColor, _feature, _marketingFeature;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LandingPageFooterV2 = exports.LandingPageFooterV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
19
|
+
const landingPageFooterFeature_1 = require("./landingPageFooterFeature");
|
|
20
|
+
var LandingPageFooterV2Fields;
|
|
21
|
+
(function (LandingPageFooterV2Fields) {
|
|
22
|
+
LandingPageFooterV2Fields["COLUMN_TITLE"] = "title";
|
|
23
|
+
LandingPageFooterV2Fields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
|
|
24
|
+
LandingPageFooterV2Fields["COLUMN_BUTTON_TEXT"] = "buttonText";
|
|
25
|
+
LandingPageFooterV2Fields["COLUMN_BUTTON_URL"] = "buttonUrl";
|
|
26
|
+
LandingPageFooterV2Fields["COLUMN_TEXT_COLOR"] = "textColor";
|
|
27
|
+
LandingPageFooterV2Fields["COLUMN_FEATURE"] = "feature";
|
|
28
|
+
LandingPageFooterV2Fields["COLUMN_MARKETING_FEATURE"] = "marketingFeature";
|
|
29
|
+
})(LandingPageFooterV2Fields = exports.LandingPageFooterV2Fields || (exports.LandingPageFooterV2Fields = {}));
|
|
30
|
+
class LandingPageFooterV2 extends abstractEntity_1.AbstractEntity {
|
|
31
|
+
constructor(landingPageFooterInput) {
|
|
32
|
+
super(landingPageFooterInput);
|
|
33
|
+
_title.set(this, void 0);
|
|
34
|
+
_backgroundColor.set(this, void 0);
|
|
35
|
+
_buttonText.set(this, void 0);
|
|
36
|
+
_buttonUrl.set(this, void 0);
|
|
37
|
+
_textColor.set(this, void 0);
|
|
38
|
+
_feature.set(this, void 0);
|
|
39
|
+
_marketingFeature.set(this, void 0);
|
|
40
|
+
__classPrivateFieldSet(this, _title, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_TITLE]);
|
|
41
|
+
__classPrivateFieldSet(this, _backgroundColor, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_BACKGROUND_COLOR]);
|
|
42
|
+
__classPrivateFieldSet(this, _buttonText, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_BUTTON_TEXT]);
|
|
43
|
+
__classPrivateFieldSet(this, _buttonUrl, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_BUTTON_URL]);
|
|
44
|
+
__classPrivateFieldSet(this, _textColor, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_TEXT_COLOR]);
|
|
45
|
+
__classPrivateFieldSet(this, _feature, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_FEATURE]
|
|
46
|
+
? new landingPageFooterFeature_1.LandingPageFooterFeatureV2(landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_FEATURE])
|
|
47
|
+
: undefined);
|
|
48
|
+
__classPrivateFieldSet(this, _marketingFeature, landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_MARKETING_FEATURE]
|
|
49
|
+
? new landingPageFooterFeature_1.LandingPageFooterFeatureV2(landingPageFooterInput[LandingPageFooterV2Fields.COLUMN_MARKETING_FEATURE])
|
|
50
|
+
: undefined);
|
|
51
|
+
}
|
|
52
|
+
get title() {
|
|
53
|
+
return __classPrivateFieldGet(this, _title);
|
|
54
|
+
}
|
|
55
|
+
get backgroundColor() {
|
|
56
|
+
return __classPrivateFieldGet(this, _backgroundColor);
|
|
57
|
+
}
|
|
58
|
+
get buttonText() {
|
|
59
|
+
return __classPrivateFieldGet(this, _buttonText);
|
|
60
|
+
}
|
|
61
|
+
get buttonUrl() {
|
|
62
|
+
return __classPrivateFieldGet(this, _buttonUrl);
|
|
63
|
+
}
|
|
64
|
+
get textColor() {
|
|
65
|
+
return __classPrivateFieldGet(this, _textColor);
|
|
66
|
+
}
|
|
67
|
+
get feature() {
|
|
68
|
+
return __classPrivateFieldGet(this, _feature);
|
|
69
|
+
}
|
|
70
|
+
get marketingFeature() {
|
|
71
|
+
return __classPrivateFieldGet(this, _marketingFeature);
|
|
72
|
+
}
|
|
73
|
+
toJSON() {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
return {
|
|
76
|
+
[LandingPageFooterV2Fields.COLUMN_TITLE]: this.title,
|
|
77
|
+
[LandingPageFooterV2Fields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
|
|
78
|
+
[LandingPageFooterV2Fields.COLUMN_BUTTON_TEXT]: this.buttonText,
|
|
79
|
+
[LandingPageFooterV2Fields.COLUMN_BUTTON_URL]: this.buttonUrl,
|
|
80
|
+
[LandingPageFooterV2Fields.COLUMN_TEXT_COLOR]: this.textColor,
|
|
81
|
+
[LandingPageFooterV2Fields.COLUMN_FEATURE]: (_a = this.feature) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
82
|
+
[LandingPageFooterV2Fields.COLUMN_MARKETING_FEATURE]: (_b = this.marketingFeature) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.LandingPageFooterV2 = LandingPageFooterV2;
|
|
87
|
+
_title = new WeakMap(), _backgroundColor = new WeakMap(), _buttonText = new WeakMap(), _buttonUrl = new WeakMap(), _textColor = new WeakMap(), _feature = new WeakMap(), _marketingFeature = new WeakMap();
|
|
88
|
+
//# sourceMappingURL=landingPageFooter.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
import { LandingPageFooterFeatureItem, LandingPageFooterFeatureItemType } from './landingPageFooterFeatureItem';
|
|
3
|
+
export declare enum LandingPageFooterFeatureV2Fields {
|
|
4
|
+
COLUMN_TITLE = "title",
|
|
5
|
+
COLUMN_DESCRIPTION = "description",
|
|
6
|
+
COLUMN_ITEMS = "items"
|
|
7
|
+
}
|
|
8
|
+
export declare type LandingPageFooterFeatureV2Type = {
|
|
9
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_TITLE]?: string;
|
|
10
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_DESCRIPTION]?: string;
|
|
11
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_ITEMS]?: LandingPageFooterFeatureItemType[];
|
|
12
|
+
};
|
|
13
|
+
export declare class LandingPageFooterFeatureV2 extends AbstractEntity<LandingPageFooterFeatureV2Type> {
|
|
14
|
+
#private;
|
|
15
|
+
constructor(landingPageFooterFeatureInput: LandingPageFooterFeatureV2Type);
|
|
16
|
+
get title(): string | undefined;
|
|
17
|
+
get description(): string | undefined;
|
|
18
|
+
get items(): LandingPageFooterFeatureItem[] | undefined;
|
|
19
|
+
toJSON(): LandingPageFooterFeatureV2Type;
|
|
20
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _title, _description, _items;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LandingPageFooterFeatureV2 = exports.LandingPageFooterFeatureV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
19
|
+
const landingPageFooterFeatureItem_1 = require("./landingPageFooterFeatureItem");
|
|
20
|
+
var LandingPageFooterFeatureV2Fields;
|
|
21
|
+
(function (LandingPageFooterFeatureV2Fields) {
|
|
22
|
+
LandingPageFooterFeatureV2Fields["COLUMN_TITLE"] = "title";
|
|
23
|
+
LandingPageFooterFeatureV2Fields["COLUMN_DESCRIPTION"] = "description";
|
|
24
|
+
LandingPageFooterFeatureV2Fields["COLUMN_ITEMS"] = "items";
|
|
25
|
+
})(LandingPageFooterFeatureV2Fields = exports.LandingPageFooterFeatureV2Fields || (exports.LandingPageFooterFeatureV2Fields = {}));
|
|
26
|
+
class LandingPageFooterFeatureV2 extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(landingPageFooterFeatureInput) {
|
|
28
|
+
var _a;
|
|
29
|
+
super(landingPageFooterFeatureInput);
|
|
30
|
+
_title.set(this, void 0);
|
|
31
|
+
_description.set(this, void 0);
|
|
32
|
+
_items.set(this, void 0);
|
|
33
|
+
__classPrivateFieldSet(this, _title, landingPageFooterFeatureInput[LandingPageFooterFeatureV2Fields.COLUMN_TITLE]);
|
|
34
|
+
__classPrivateFieldSet(this, _description, landingPageFooterFeatureInput[LandingPageFooterFeatureV2Fields.COLUMN_DESCRIPTION]);
|
|
35
|
+
__classPrivateFieldSet(this, _items, (_a = landingPageFooterFeatureInput[LandingPageFooterFeatureV2Fields.COLUMN_ITEMS]) === null || _a === void 0 ? void 0 : _a.map((item) => new landingPageFooterFeatureItem_1.LandingPageFooterFeatureItem(item)));
|
|
36
|
+
}
|
|
37
|
+
get title() {
|
|
38
|
+
return __classPrivateFieldGet(this, _title);
|
|
39
|
+
}
|
|
40
|
+
get description() {
|
|
41
|
+
return __classPrivateFieldGet(this, _description);
|
|
42
|
+
}
|
|
43
|
+
get items() {
|
|
44
|
+
return __classPrivateFieldGet(this, _items);
|
|
45
|
+
}
|
|
46
|
+
toJSON() {
|
|
47
|
+
var _a;
|
|
48
|
+
return {
|
|
49
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_TITLE]: this.title,
|
|
50
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_DESCRIPTION]: this.description,
|
|
51
|
+
[LandingPageFooterFeatureV2Fields.COLUMN_ITEMS]: (_a = this.items) === null || _a === void 0 ? void 0 : _a.map((item) => item.toJSON()),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.LandingPageFooterFeatureV2 = LandingPageFooterFeatureV2;
|
|
56
|
+
_title = new WeakMap(), _description = new WeakMap(), _items = new WeakMap();
|
|
57
|
+
//# sourceMappingURL=landingPageFooterFeature.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
export declare enum LandingPageFooterFeatureItemFields {
|
|
3
|
+
COLUMN_TITLE = "title",
|
|
4
|
+
COLUMN_DESCRIPTION = "description",
|
|
5
|
+
COLUMN_BUTTON_TEXT = "buttonText",
|
|
6
|
+
COLUMN_BUTTON_URL = "buttonUrl",
|
|
7
|
+
COLUMN_ICON = "icon",
|
|
8
|
+
COLUMN_SIZE = "size"
|
|
9
|
+
}
|
|
10
|
+
export declare type LandingPageFooterFeatureItemType = {
|
|
11
|
+
[LandingPageFooterFeatureItemFields.COLUMN_TITLE]?: string | undefined;
|
|
12
|
+
[LandingPageFooterFeatureItemFields.COLUMN_DESCRIPTION]?: string | undefined;
|
|
13
|
+
[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_TEXT]?: string | undefined;
|
|
14
|
+
[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_URL]?: string | undefined;
|
|
15
|
+
[LandingPageFooterFeatureItemFields.COLUMN_ICON]?: string | undefined;
|
|
16
|
+
[LandingPageFooterFeatureItemFields.COLUMN_SIZE]?: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare class LandingPageFooterFeatureItem extends AbstractEntity<LandingPageFooterFeatureItemType> {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(landingPageFooterFeatureItemInput: LandingPageFooterFeatureItemType);
|
|
21
|
+
get title(): string | undefined;
|
|
22
|
+
get description(): string | undefined;
|
|
23
|
+
get buttonText(): string | undefined;
|
|
24
|
+
get buttonUrl(): string | undefined;
|
|
25
|
+
get icon(): string | undefined;
|
|
26
|
+
get size(): number | undefined;
|
|
27
|
+
toJSON(): LandingPageFooterFeatureItemType;
|
|
28
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _title, _description, _buttonText, _buttonUrl, _icon, _size;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LandingPageFooterFeatureItem = exports.LandingPageFooterFeatureItemFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
19
|
+
var LandingPageFooterFeatureItemFields;
|
|
20
|
+
(function (LandingPageFooterFeatureItemFields) {
|
|
21
|
+
LandingPageFooterFeatureItemFields["COLUMN_TITLE"] = "title";
|
|
22
|
+
LandingPageFooterFeatureItemFields["COLUMN_DESCRIPTION"] = "description";
|
|
23
|
+
LandingPageFooterFeatureItemFields["COLUMN_BUTTON_TEXT"] = "buttonText";
|
|
24
|
+
LandingPageFooterFeatureItemFields["COLUMN_BUTTON_URL"] = "buttonUrl";
|
|
25
|
+
LandingPageFooterFeatureItemFields["COLUMN_ICON"] = "icon";
|
|
26
|
+
LandingPageFooterFeatureItemFields["COLUMN_SIZE"] = "size";
|
|
27
|
+
})(LandingPageFooterFeatureItemFields = exports.LandingPageFooterFeatureItemFields || (exports.LandingPageFooterFeatureItemFields = {}));
|
|
28
|
+
class LandingPageFooterFeatureItem extends abstractEntity_1.AbstractEntity {
|
|
29
|
+
constructor(landingPageFooterFeatureItemInput) {
|
|
30
|
+
super(landingPageFooterFeatureItemInput);
|
|
31
|
+
_title.set(this, void 0);
|
|
32
|
+
_description.set(this, void 0);
|
|
33
|
+
_buttonText.set(this, void 0);
|
|
34
|
+
_buttonUrl.set(this, void 0);
|
|
35
|
+
_icon.set(this, void 0);
|
|
36
|
+
_size.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _title, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_TITLE]);
|
|
38
|
+
__classPrivateFieldSet(this, _description, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_DESCRIPTION]);
|
|
39
|
+
__classPrivateFieldSet(this, _buttonText, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_TEXT]);
|
|
40
|
+
__classPrivateFieldSet(this, _buttonUrl, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_URL]);
|
|
41
|
+
__classPrivateFieldSet(this, _icon, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_ICON]);
|
|
42
|
+
__classPrivateFieldSet(this, _size, landingPageFooterFeatureItemInput[LandingPageFooterFeatureItemFields.COLUMN_SIZE]);
|
|
43
|
+
}
|
|
44
|
+
get title() {
|
|
45
|
+
return __classPrivateFieldGet(this, _title);
|
|
46
|
+
}
|
|
47
|
+
get description() {
|
|
48
|
+
return __classPrivateFieldGet(this, _description);
|
|
49
|
+
}
|
|
50
|
+
get buttonText() {
|
|
51
|
+
return __classPrivateFieldGet(this, _buttonText);
|
|
52
|
+
}
|
|
53
|
+
get buttonUrl() {
|
|
54
|
+
return __classPrivateFieldGet(this, _buttonUrl);
|
|
55
|
+
}
|
|
56
|
+
get icon() {
|
|
57
|
+
return __classPrivateFieldGet(this, _icon);
|
|
58
|
+
}
|
|
59
|
+
get size() {
|
|
60
|
+
return __classPrivateFieldGet(this, _size);
|
|
61
|
+
}
|
|
62
|
+
toJSON() {
|
|
63
|
+
return {
|
|
64
|
+
[LandingPageFooterFeatureItemFields.COLUMN_TITLE]: this.title,
|
|
65
|
+
[LandingPageFooterFeatureItemFields.COLUMN_DESCRIPTION]: this.description,
|
|
66
|
+
[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_TEXT]: this.buttonText,
|
|
67
|
+
[LandingPageFooterFeatureItemFields.COLUMN_BUTTON_URL]: this.buttonUrl,
|
|
68
|
+
[LandingPageFooterFeatureItemFields.COLUMN_ICON]: this.icon,
|
|
69
|
+
[LandingPageFooterFeatureItemFields.COLUMN_SIZE]: this.size,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.LandingPageFooterFeatureItem = LandingPageFooterFeatureItem;
|
|
74
|
+
_title = new WeakMap(), _description = new WeakMap(), _buttonText = new WeakMap(), _buttonUrl = new WeakMap(), _icon = new WeakMap(), _size = new WeakMap();
|
|
75
|
+
//# sourceMappingURL=landingPageFooterFeatureItem.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
export declare enum LandingPageHeaderV2Fields {
|
|
3
|
+
COLUMN_BACKGROUND_IMAGE_UUID = "backgroundImageUuid",
|
|
4
|
+
COLUMN_VENDOR_LOGO_UUID = "vendorLogoUuid",
|
|
5
|
+
COLUMN_TITLE = "title",
|
|
6
|
+
COLUMN_BACKGROUND_COLOR = "backgroundColor",
|
|
7
|
+
COLUMN_BASELINE = "baseline",
|
|
8
|
+
COLUMN_TEXT_COLOR = "textColor",
|
|
9
|
+
COLUMN_CIRCLE_COLOR = "circleColor"
|
|
10
|
+
}
|
|
11
|
+
export declare type LandingPageHeaderV2Type = {
|
|
12
|
+
[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
|
|
13
|
+
[LandingPageHeaderV2Fields.COLUMN_VENDOR_LOGO_UUID]: string;
|
|
14
|
+
[LandingPageHeaderV2Fields.COLUMN_TITLE]?: string;
|
|
15
|
+
[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_COLOR]?: string;
|
|
16
|
+
[LandingPageHeaderV2Fields.COLUMN_BASELINE]?: string;
|
|
17
|
+
[LandingPageHeaderV2Fields.COLUMN_TEXT_COLOR]?: string;
|
|
18
|
+
[LandingPageHeaderV2Fields.COLUMN_CIRCLE_COLOR]?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class LandingPageHeaderV2 extends AbstractEntity<LandingPageHeaderV2Type> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(landingPageHeaderInput: LandingPageHeaderV2Type);
|
|
23
|
+
get backgroundImageUuid(): string;
|
|
24
|
+
get vendorLogoUuid(): string;
|
|
25
|
+
get title(): string | undefined;
|
|
26
|
+
get backgroundColor(): string | undefined;
|
|
27
|
+
get baseline(): string | undefined;
|
|
28
|
+
get textColor(): string | undefined;
|
|
29
|
+
get circleColor(): string | undefined;
|
|
30
|
+
toJSON(): LandingPageHeaderV2Type;
|
|
31
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _backgroundImageUuid, _vendorLogoUuid, _title, _backgroundColor, _baseline, _textColor, _circleColor;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LandingPageHeaderV2 = exports.LandingPageHeaderV2Fields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
19
|
+
var LandingPageHeaderV2Fields;
|
|
20
|
+
(function (LandingPageHeaderV2Fields) {
|
|
21
|
+
LandingPageHeaderV2Fields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
|
|
22
|
+
LandingPageHeaderV2Fields["COLUMN_VENDOR_LOGO_UUID"] = "vendorLogoUuid";
|
|
23
|
+
LandingPageHeaderV2Fields["COLUMN_TITLE"] = "title";
|
|
24
|
+
LandingPageHeaderV2Fields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
|
|
25
|
+
LandingPageHeaderV2Fields["COLUMN_BASELINE"] = "baseline";
|
|
26
|
+
LandingPageHeaderV2Fields["COLUMN_TEXT_COLOR"] = "textColor";
|
|
27
|
+
LandingPageHeaderV2Fields["COLUMN_CIRCLE_COLOR"] = "circleColor";
|
|
28
|
+
})(LandingPageHeaderV2Fields = exports.LandingPageHeaderV2Fields || (exports.LandingPageHeaderV2Fields = {}));
|
|
29
|
+
class LandingPageHeaderV2 extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(landingPageHeaderInput) {
|
|
31
|
+
super(landingPageHeaderInput);
|
|
32
|
+
_backgroundImageUuid.set(this, void 0);
|
|
33
|
+
_vendorLogoUuid.set(this, void 0);
|
|
34
|
+
_title.set(this, void 0);
|
|
35
|
+
_backgroundColor.set(this, void 0);
|
|
36
|
+
_baseline.set(this, void 0);
|
|
37
|
+
_textColor.set(this, void 0);
|
|
38
|
+
_circleColor.set(this, void 0);
|
|
39
|
+
__classPrivateFieldSet(this, _backgroundImageUuid, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]);
|
|
40
|
+
__classPrivateFieldSet(this, _vendorLogoUuid, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_VENDOR_LOGO_UUID]);
|
|
41
|
+
__classPrivateFieldSet(this, _title, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_TITLE]);
|
|
42
|
+
__classPrivateFieldSet(this, _backgroundColor, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_COLOR]);
|
|
43
|
+
__classPrivateFieldSet(this, _baseline, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_BASELINE]);
|
|
44
|
+
__classPrivateFieldSet(this, _textColor, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_TEXT_COLOR]);
|
|
45
|
+
__classPrivateFieldSet(this, _circleColor, landingPageHeaderInput[LandingPageHeaderV2Fields.COLUMN_CIRCLE_COLOR]);
|
|
46
|
+
}
|
|
47
|
+
get backgroundImageUuid() {
|
|
48
|
+
return __classPrivateFieldGet(this, _backgroundImageUuid);
|
|
49
|
+
}
|
|
50
|
+
get vendorLogoUuid() {
|
|
51
|
+
return __classPrivateFieldGet(this, _vendorLogoUuid);
|
|
52
|
+
}
|
|
53
|
+
get title() {
|
|
54
|
+
return __classPrivateFieldGet(this, _title);
|
|
55
|
+
}
|
|
56
|
+
get backgroundColor() {
|
|
57
|
+
return __classPrivateFieldGet(this, _backgroundColor);
|
|
58
|
+
}
|
|
59
|
+
get baseline() {
|
|
60
|
+
return __classPrivateFieldGet(this, _baseline);
|
|
61
|
+
}
|
|
62
|
+
get textColor() {
|
|
63
|
+
return __classPrivateFieldGet(this, _textColor);
|
|
64
|
+
}
|
|
65
|
+
get circleColor() {
|
|
66
|
+
return __classPrivateFieldGet(this, _circleColor);
|
|
67
|
+
}
|
|
68
|
+
toJSON() {
|
|
69
|
+
return {
|
|
70
|
+
[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_IMAGE_UUID]: this
|
|
71
|
+
.backgroundImageUuid,
|
|
72
|
+
[LandingPageHeaderV2Fields.COLUMN_VENDOR_LOGO_UUID]: this.vendorLogoUuid,
|
|
73
|
+
[LandingPageHeaderV2Fields.COLUMN_TITLE]: this.title,
|
|
74
|
+
[LandingPageHeaderV2Fields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
|
|
75
|
+
[LandingPageHeaderV2Fields.COLUMN_BASELINE]: this.baseline,
|
|
76
|
+
[LandingPageHeaderV2Fields.COLUMN_TEXT_COLOR]: this.textColor,
|
|
77
|
+
[LandingPageHeaderV2Fields.COLUMN_CIRCLE_COLOR]: this.circleColor,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.LandingPageHeaderV2 = LandingPageHeaderV2;
|
|
82
|
+
_backgroundImageUuid = new WeakMap(), _vendorLogoUuid = new WeakMap(), _title = new WeakMap(), _backgroundColor = new WeakMap(), _baseline = new WeakMap(), _textColor = new WeakMap(), _circleColor = new WeakMap();
|
|
83
|
+
//# sourceMappingURL=landingPageHeader.js.map
|
|
@@ -7,6 +7,13 @@ export * from './entities/campaign/landingPage/landingPageBody';
|
|
|
7
7
|
export * from './entities/campaign/landingPage/landingPageHeader';
|
|
8
8
|
export * from './entities/campaign/rules/rules';
|
|
9
9
|
export * from './entities/campaign/campaign';
|
|
10
|
+
export * from './entities/v2/campaign/banner/banner';
|
|
11
|
+
export * from './entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter';
|
|
12
|
+
export * from './entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature';
|
|
13
|
+
export * from './entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem';
|
|
14
|
+
export * from './entities/v2/campaign/landingPage/landingPage';
|
|
15
|
+
export * from './entities/v2/campaign/landingPage/landingPageHeader';
|
|
16
|
+
export * from './entities/v2/campaign/campaign';
|
|
10
17
|
export { AssetsCampaignAssets };
|
|
11
18
|
export * from './entities/campaignAssets/campaignAssets';
|
|
12
19
|
export * from './campaignClient';
|
package/build/campaign/index.js
CHANGED
|
@@ -33,6 +33,13 @@ __exportStar(require("./entities/campaign/landingPage/landingPageBody"), exports
|
|
|
33
33
|
__exportStar(require("./entities/campaign/landingPage/landingPageHeader"), exports);
|
|
34
34
|
__exportStar(require("./entities/campaign/rules/rules"), exports);
|
|
35
35
|
__exportStar(require("./entities/campaign/campaign"), exports);
|
|
36
|
+
__exportStar(require("./entities/v2/campaign/banner/banner"), exports);
|
|
37
|
+
__exportStar(require("./entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter"), exports);
|
|
38
|
+
__exportStar(require("./entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature"), exports);
|
|
39
|
+
__exportStar(require("./entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem"), exports);
|
|
40
|
+
__exportStar(require("./entities/v2/campaign/landingPage/landingPage"), exports);
|
|
41
|
+
__exportStar(require("./entities/v2/campaign/landingPage/landingPageHeader"), exports);
|
|
42
|
+
__exportStar(require("./entities/v2/campaign/campaign"), exports);
|
|
36
43
|
__exportStar(require("./entities/campaignAssets/campaignAssets"), exports);
|
|
37
44
|
__exportStar(require("./campaignClient"), exports);
|
|
38
45
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED