@arrowsphere/api-client 3.7.0 → 3.8.0-rc.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/campaign/campaignClient.d.ts +12 -0
  3. package/build/campaign/campaignClient.js +26 -0
  4. package/build/campaign/entities/campaign/banners/banners.d.ts +28 -0
  5. package/build/campaign/entities/campaign/banners/banners.js +75 -0
  6. package/build/campaign/entities/campaign/campaign.d.ts +52 -0
  7. package/build/campaign/entities/campaign/campaign.js +130 -0
  8. package/build/campaign/entities/campaign/landingPage/landingPage.d.ts +25 -0
  9. package/build/campaign/entities/campaign/landingPage/landingPage.js +67 -0
  10. package/build/campaign/entities/campaign/landingPage/landingPageBody.d.ts +34 -0
  11. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +90 -0
  12. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.d.ts +29 -0
  13. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +78 -0
  14. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.d.ts +22 -0
  15. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +61 -0
  16. package/build/campaign/entities/campaign/landingPage/landingPageHeader.d.ts +28 -0
  17. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +76 -0
  18. package/build/campaign/entities/campaign/rules/rules.d.ts +28 -0
  19. package/build/campaign/entities/campaign/rules/rules.js +75 -0
  20. package/build/campaign/entities/campaignAssets/assets/assets.d.ts +16 -0
  21. package/build/campaign/entities/campaignAssets/assets/assets.js +47 -0
  22. package/build/campaign/entities/campaignAssets/campaignAssets.d.ts +14 -0
  23. package/build/campaign/entities/campaignAssets/campaignAssets.js +41 -0
  24. package/build/campaign/index.d.ts +11 -0
  25. package/build/campaign/index.js +24 -0
  26. package/build/publicApiClient.d.ts +6 -0
  27. package/build/publicApiClient.js +10 -0
  28. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.8.0] - 2022-06-27
7
+
8
+ ### Changed
9
+
10
+ - Adding 2 new EndPoints of Campaign:
11
+ - Get campaign assets
12
+ - Get active Campaign
13
+
6
14
  ## [3.7.0] - 2022-06-23
7
15
 
8
16
  ### Changed
@@ -0,0 +1,12 @@
1
+ import { AbstractClient, Parameters } from '../abstractClient';
2
+ import { GetResult } from '../getResult';
3
+ import { Campaign } from './entities/campaign/campaign';
4
+ import { CampaignAssets } from './entities/campaignAssets/campaignAssets';
5
+ export declare class CampaignClient extends AbstractClient {
6
+ /**
7
+ * The base path of the API
8
+ */
9
+ protected basePath: string;
10
+ getActiveCampaign(parameters?: Parameters): Promise<GetResult<Campaign>>;
11
+ getCampaignAssets(campaignReference: string, parameters?: Parameters): Promise<GetResult<CampaignAssets>>;
12
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CampaignClient = void 0;
4
+ const abstractClient_1 = require("../abstractClient");
5
+ const getResult_1 = require("../getResult");
6
+ const campaign_1 = require("./entities/campaign/campaign");
7
+ const campaignAssets_1 = require("./entities/campaignAssets/campaignAssets");
8
+ class CampaignClient extends abstractClient_1.AbstractClient {
9
+ constructor() {
10
+ super(...arguments);
11
+ /**
12
+ * The base path of the API
13
+ */
14
+ this.basePath = '/campaigns';
15
+ }
16
+ async getActiveCampaign(parameters = {}) {
17
+ this.path = '/active';
18
+ return new getResult_1.GetResult(campaign_1.Campaign, await this.get(parameters));
19
+ }
20
+ async getCampaignAssets(campaignReference, parameters = {}) {
21
+ this.path = `/${campaignReference}/assets`;
22
+ return new getResult_1.GetResult(campaignAssets_1.CampaignAssets, await this.get(parameters));
23
+ }
24
+ }
25
+ exports.CampaignClient = CampaignClient;
26
+ //# sourceMappingURL=campaignClient.js.map
@@ -0,0 +1,28 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum BannersFields {
3
+ COLUMN_BACKGROUND_IMAGE_UUID = "backgroundImageUuid",
4
+ COLUMN_TYPE = "type",
5
+ COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
6
+ COLUMN_BUTTON_TEXT = "buttonText",
7
+ COLUMN_TEXT = "text",
8
+ COLUMN_TEXT_COLOR = "textColor"
9
+ }
10
+ export declare type BannersType = {
11
+ [BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
12
+ [BannersFields.COLUMN_TYPE]?: string;
13
+ [BannersFields.COLUMN_BUTTON_PLACEMENT]?: string;
14
+ [BannersFields.COLUMN_BUTTON_TEXT]?: string;
15
+ [BannersFields.COLUMN_TEXT]?: string;
16
+ [BannersFields.COLUMN_TEXT_COLOR]?: string;
17
+ };
18
+ export declare class Banners extends AbstractEntity<BannersType> {
19
+ #private;
20
+ constructor(bannerInput: BannersType);
21
+ get backgroundImageUuid(): string;
22
+ get type(): string | undefined;
23
+ get buttonPlacement(): string | undefined;
24
+ get buttonText(): string | undefined;
25
+ get text(): string | undefined;
26
+ get textColor(): string | undefined;
27
+ toJSON(): BannersType;
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 _backgroundImageUuid, _type, _buttonPlacement, _buttonText, _text, _textColor;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Banners = exports.BannersFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var BannersFields;
20
+ (function (BannersFields) {
21
+ BannersFields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
22
+ BannersFields["COLUMN_TYPE"] = "type";
23
+ BannersFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
24
+ BannersFields["COLUMN_BUTTON_TEXT"] = "buttonText";
25
+ BannersFields["COLUMN_TEXT"] = "text";
26
+ BannersFields["COLUMN_TEXT_COLOR"] = "textColor";
27
+ })(BannersFields = exports.BannersFields || (exports.BannersFields = {}));
28
+ class Banners extends abstractEntity_1.AbstractEntity {
29
+ constructor(bannerInput) {
30
+ super(bannerInput);
31
+ _backgroundImageUuid.set(this, void 0);
32
+ _type.set(this, void 0);
33
+ _buttonPlacement.set(this, void 0);
34
+ _buttonText.set(this, void 0);
35
+ _text.set(this, void 0);
36
+ _textColor.set(this, void 0);
37
+ __classPrivateFieldSet(this, _backgroundImageUuid, bannerInput[BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]);
38
+ __classPrivateFieldSet(this, _type, bannerInput[BannersFields.COLUMN_TYPE]);
39
+ __classPrivateFieldSet(this, _buttonPlacement, bannerInput[BannersFields.COLUMN_BUTTON_PLACEMENT]);
40
+ __classPrivateFieldSet(this, _buttonText, bannerInput[BannersFields.COLUMN_BUTTON_TEXT]);
41
+ __classPrivateFieldSet(this, _text, bannerInput[BannersFields.COLUMN_TEXT]);
42
+ __classPrivateFieldSet(this, _textColor, bannerInput[BannersFields.COLUMN_TEXT_COLOR]);
43
+ }
44
+ get backgroundImageUuid() {
45
+ return __classPrivateFieldGet(this, _backgroundImageUuid);
46
+ }
47
+ get type() {
48
+ return __classPrivateFieldGet(this, _type);
49
+ }
50
+ get buttonPlacement() {
51
+ return __classPrivateFieldGet(this, _buttonPlacement);
52
+ }
53
+ get buttonText() {
54
+ return __classPrivateFieldGet(this, _buttonText);
55
+ }
56
+ get text() {
57
+ return __classPrivateFieldGet(this, _text);
58
+ }
59
+ get textColor() {
60
+ return __classPrivateFieldGet(this, _textColor);
61
+ }
62
+ toJSON() {
63
+ return {
64
+ [BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]: this.backgroundImageUuid,
65
+ [BannersFields.COLUMN_TYPE]: this.type,
66
+ [BannersFields.COLUMN_BUTTON_PLACEMENT]: this.buttonPlacement,
67
+ [BannersFields.COLUMN_BUTTON_TEXT]: this.buttonText,
68
+ [BannersFields.COLUMN_TEXT]: this.text,
69
+ [BannersFields.COLUMN_TEXT_COLOR]: this.textColor,
70
+ };
71
+ }
72
+ }
73
+ exports.Banners = Banners;
74
+ _backgroundImageUuid = new WeakMap(), _type = new WeakMap(), _buttonPlacement = new WeakMap(), _buttonText = new WeakMap(), _text = new WeakMap(), _textColor = new WeakMap();
75
+ //# sourceMappingURL=banners.js.map
@@ -0,0 +1,52 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ import { Banners, BannersType } from './banners/banners';
3
+ import { LandingPage, LandingPageType } from './landingPage/landingPage';
4
+ import { Rules, RulesType } from './rules/rules';
5
+ export declare enum CampaignFields {
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_WEIGHT = "weight",
15
+ COLUMN_START_DATE = "startDate",
16
+ COLUMN_END_DATE = "endDate",
17
+ COLUMN_BANNERS = "banners",
18
+ COLUMN_LANDING_PAGE = "landingPage"
19
+ }
20
+ export declare type CampaignType = {
21
+ [CampaignFields.COLUMN_REFERENCE]: string;
22
+ [CampaignFields.COLUMN_NAME]: string;
23
+ [CampaignFields.COLUMN_CATEGORY]?: string;
24
+ [CampaignFields.COLUMN_IS_ACTIVATED]?: boolean;
25
+ [CampaignFields.COLUMN_CREATED_AT]: string;
26
+ [CampaignFields.COLUMN_UPDATED_AT]: string;
27
+ [CampaignFields.COLUMN_DELETED_AT]?: string;
28
+ [CampaignFields.COLUMN_RULES]?: RulesType;
29
+ [CampaignFields.COLUMN_WEIGHT]?: number;
30
+ [CampaignFields.COLUMN_START_DATE]?: string;
31
+ [CampaignFields.COLUMN_END_DATE]?: string;
32
+ [CampaignFields.COLUMN_BANNERS]: BannersType[];
33
+ [CampaignFields.COLUMN_LANDING_PAGE]: LandingPageType;
34
+ };
35
+ export declare class Campaign extends AbstractEntity<CampaignType> {
36
+ #private;
37
+ constructor(campaignInput: CampaignType);
38
+ get reference(): string;
39
+ get name(): string;
40
+ get category(): string | undefined;
41
+ get isActivated(): boolean | undefined;
42
+ get createdAt(): string;
43
+ get updatedAt(): string;
44
+ get deletedAt(): string | undefined;
45
+ get rules(): Rules | undefined;
46
+ get weight(): number | undefined;
47
+ get startDate(): string | undefined;
48
+ get endDate(): string | undefined;
49
+ get banners(): Banners[];
50
+ get landingPage(): LandingPage;
51
+ toJSON(): CampaignType;
52
+ }
@@ -0,0 +1,130 @@
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, _weight, _startDate, _endDate, _banners, _landingPage;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Campaign = exports.CampaignFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ const banners_1 = require("./banners/banners");
20
+ const landingPage_1 = require("./landingPage/landingPage");
21
+ const rules_1 = require("./rules/rules");
22
+ var CampaignFields;
23
+ (function (CampaignFields) {
24
+ CampaignFields["COLUMN_REFERENCE"] = "reference";
25
+ CampaignFields["COLUMN_NAME"] = "name";
26
+ CampaignFields["COLUMN_CATEGORY"] = "category";
27
+ CampaignFields["COLUMN_IS_ACTIVATED"] = "isActivated";
28
+ CampaignFields["COLUMN_CREATED_AT"] = "createdAt";
29
+ CampaignFields["COLUMN_UPDATED_AT"] = "updatedAt";
30
+ CampaignFields["COLUMN_DELETED_AT"] = "deletedAt";
31
+ CampaignFields["COLUMN_RULES"] = "rules";
32
+ CampaignFields["COLUMN_WEIGHT"] = "weight";
33
+ CampaignFields["COLUMN_START_DATE"] = "startDate";
34
+ CampaignFields["COLUMN_END_DATE"] = "endDate";
35
+ CampaignFields["COLUMN_BANNERS"] = "banners";
36
+ CampaignFields["COLUMN_LANDING_PAGE"] = "landingPage";
37
+ })(CampaignFields = exports.CampaignFields || (exports.CampaignFields = {}));
38
+ class Campaign extends abstractEntity_1.AbstractEntity {
39
+ constructor(campaignInput) {
40
+ super(campaignInput);
41
+ _reference.set(this, void 0);
42
+ _name.set(this, void 0);
43
+ _category.set(this, void 0);
44
+ _isActivated.set(this, void 0);
45
+ _createdAt.set(this, void 0);
46
+ _updatedAt.set(this, void 0);
47
+ _deletedAt.set(this, void 0);
48
+ _rules.set(this, void 0);
49
+ _weight.set(this, void 0);
50
+ _startDate.set(this, void 0);
51
+ _endDate.set(this, void 0);
52
+ _banners.set(this, void 0);
53
+ _landingPage.set(this, void 0);
54
+ __classPrivateFieldSet(this, _reference, campaignInput[CampaignFields.COLUMN_REFERENCE]);
55
+ __classPrivateFieldSet(this, _name, campaignInput[CampaignFields.COLUMN_NAME]);
56
+ __classPrivateFieldSet(this, _category, campaignInput[CampaignFields.COLUMN_CATEGORY]);
57
+ __classPrivateFieldSet(this, _isActivated, campaignInput[CampaignFields.COLUMN_IS_ACTIVATED]);
58
+ __classPrivateFieldSet(this, _createdAt, campaignInput[CampaignFields.COLUMN_CREATED_AT]);
59
+ __classPrivateFieldSet(this, _updatedAt, campaignInput[CampaignFields.COLUMN_UPDATED_AT]);
60
+ __classPrivateFieldSet(this, _deletedAt, campaignInput[CampaignFields.COLUMN_DELETED_AT]);
61
+ __classPrivateFieldSet(this, _rules, campaignInput[CampaignFields.COLUMN_RULES]
62
+ ? new rules_1.Rules(campaignInput[CampaignFields.COLUMN_RULES])
63
+ : undefined);
64
+ __classPrivateFieldSet(this, _weight, campaignInput[CampaignFields.COLUMN_WEIGHT]);
65
+ __classPrivateFieldSet(this, _startDate, campaignInput[CampaignFields.COLUMN_START_DATE]);
66
+ __classPrivateFieldSet(this, _endDate, campaignInput[CampaignFields.COLUMN_END_DATE]);
67
+ __classPrivateFieldSet(this, _banners, campaignInput[CampaignFields.COLUMN_BANNERS].map((banner) => new banners_1.Banners(banner)));
68
+ __classPrivateFieldSet(this, _landingPage, new landingPage_1.LandingPage(campaignInput[CampaignFields.COLUMN_LANDING_PAGE]));
69
+ }
70
+ get reference() {
71
+ return __classPrivateFieldGet(this, _reference);
72
+ }
73
+ get name() {
74
+ return __classPrivateFieldGet(this, _name);
75
+ }
76
+ get category() {
77
+ return __classPrivateFieldGet(this, _category);
78
+ }
79
+ get isActivated() {
80
+ return __classPrivateFieldGet(this, _isActivated);
81
+ }
82
+ get createdAt() {
83
+ return __classPrivateFieldGet(this, _createdAt);
84
+ }
85
+ get updatedAt() {
86
+ return __classPrivateFieldGet(this, _updatedAt);
87
+ }
88
+ get deletedAt() {
89
+ return __classPrivateFieldGet(this, _deletedAt);
90
+ }
91
+ get rules() {
92
+ return __classPrivateFieldGet(this, _rules);
93
+ }
94
+ get weight() {
95
+ return __classPrivateFieldGet(this, _weight);
96
+ }
97
+ get startDate() {
98
+ return __classPrivateFieldGet(this, _startDate);
99
+ }
100
+ get endDate() {
101
+ return __classPrivateFieldGet(this, _endDate);
102
+ }
103
+ get banners() {
104
+ return __classPrivateFieldGet(this, _banners);
105
+ }
106
+ get landingPage() {
107
+ return __classPrivateFieldGet(this, _landingPage);
108
+ }
109
+ toJSON() {
110
+ var _a;
111
+ return {
112
+ [CampaignFields.COLUMN_REFERENCE]: this.reference,
113
+ [CampaignFields.COLUMN_NAME]: this.name,
114
+ [CampaignFields.COLUMN_CATEGORY]: this.category,
115
+ [CampaignFields.COLUMN_IS_ACTIVATED]: this.isActivated,
116
+ [CampaignFields.COLUMN_CREATED_AT]: this.createdAt,
117
+ [CampaignFields.COLUMN_UPDATED_AT]: this.updatedAt,
118
+ [CampaignFields.COLUMN_DELETED_AT]: this.deletedAt,
119
+ [CampaignFields.COLUMN_RULES]: (_a = this.rules) === null || _a === void 0 ? void 0 : _a.toJSON(),
120
+ [CampaignFields.COLUMN_WEIGHT]: this.weight,
121
+ [CampaignFields.COLUMN_START_DATE]: this.startDate,
122
+ [CampaignFields.COLUMN_END_DATE]: this.endDate,
123
+ [CampaignFields.COLUMN_BANNERS]: this.banners.map((banner) => banner.toJSON()),
124
+ [CampaignFields.COLUMN_LANDING_PAGE]: this.landingPage.toJSON(),
125
+ };
126
+ }
127
+ }
128
+ exports.Campaign = Campaign;
129
+ _reference = new WeakMap(), _name = new WeakMap(), _category = new WeakMap(), _isActivated = new WeakMap(), _createdAt = new WeakMap(), _updatedAt = new WeakMap(), _deletedAt = new WeakMap(), _rules = new WeakMap(), _weight = new WeakMap(), _startDate = new WeakMap(), _endDate = new WeakMap(), _banners = new WeakMap(), _landingPage = new WeakMap();
130
+ //# sourceMappingURL=campaign.js.map
@@ -0,0 +1,25 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ import { LandingPageBody, LandingPageBodyType } from './landingPageBody';
3
+ import { LandingPageFooter, LandingPageFooterType } from './landingPageFooter/landingPageFooter';
4
+ import { LandingPageHeader, LandingPageHeaderType } from './landingPageHeader';
5
+ export declare enum LandingPageFields {
6
+ COLUMN_URL = "url",
7
+ COLUMN_HEADER = "header",
8
+ COLUMN_BODY = "body",
9
+ COLUMN_FOOTER = "footer"
10
+ }
11
+ export declare type LandingPageType = {
12
+ [LandingPageFields.COLUMN_URL]?: string;
13
+ [LandingPageFields.COLUMN_HEADER]: LandingPageHeaderType;
14
+ [LandingPageFields.COLUMN_BODY]: LandingPageBodyType;
15
+ [LandingPageFields.COLUMN_FOOTER]?: LandingPageFooterType;
16
+ };
17
+ export declare class LandingPage extends AbstractEntity<LandingPageType> {
18
+ #private;
19
+ constructor(landingPageInput: LandingPageType);
20
+ get url(): string | undefined;
21
+ get header(): LandingPageHeader;
22
+ get body(): LandingPageBody;
23
+ get footer(): LandingPageFooter | undefined;
24
+ toJSON(): LandingPageType;
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.LandingPage = exports.LandingPageFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ const landingPageBody_1 = require("./landingPageBody");
20
+ const landingPageFooter_1 = require("./landingPageFooter/landingPageFooter");
21
+ const landingPageHeader_1 = require("./landingPageHeader");
22
+ var LandingPageFields;
23
+ (function (LandingPageFields) {
24
+ LandingPageFields["COLUMN_URL"] = "url";
25
+ LandingPageFields["COLUMN_HEADER"] = "header";
26
+ LandingPageFields["COLUMN_BODY"] = "body";
27
+ LandingPageFields["COLUMN_FOOTER"] = "footer";
28
+ })(LandingPageFields = exports.LandingPageFields || (exports.LandingPageFields = {}));
29
+ class LandingPage 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[LandingPageFields.COLUMN_URL]);
37
+ __classPrivateFieldSet(this, _header, new landingPageHeader_1.LandingPageHeader(landingPageInput[LandingPageFields.COLUMN_HEADER]));
38
+ __classPrivateFieldSet(this, _body, new landingPageBody_1.LandingPageBody(landingPageInput[LandingPageFields.COLUMN_BODY]));
39
+ __classPrivateFieldSet(this, _footer, landingPageInput[LandingPageFields.COLUMN_FOOTER]
40
+ ? new landingPageFooter_1.LandingPageFooter(landingPageInput[LandingPageFields.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
+ [LandingPageFields.COLUMN_URL]: this.url,
59
+ [LandingPageFields.COLUMN_HEADER]: this.header.toJSON(),
60
+ [LandingPageFields.COLUMN_BODY]: this.body.toJSON(),
61
+ [LandingPageFields.COLUMN_FOOTER]: (_a = this.footer) === null || _a === void 0 ? void 0 : _a.toJSON(),
62
+ };
63
+ }
64
+ }
65
+ exports.LandingPage = LandingPage;
66
+ _url = new WeakMap(), _header = new WeakMap(), _body = new WeakMap(), _footer = new WeakMap();
67
+ //# sourceMappingURL=landingPage.js.map
@@ -0,0 +1,34 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum LandingPageBodyFields {
3
+ COLUMN_BACKGROUND_IMAGE_UUID = "backgroundImageUuid",
4
+ COLUMN_BACKGROUND_COLOR = "backgroundColor",
5
+ COLUMN_TYPE = "type",
6
+ COLUMN_TITLE = "title",
7
+ COLUMN_DESCRIPTION = "description",
8
+ COLUMN_VIDEO_URL = "videoUrl",
9
+ COLUMN_BUTTON_TEXT = "buttonText",
10
+ COLUMN_CONTACT_EMAIL = "contactEmail"
11
+ }
12
+ export declare type LandingPageBodyType = {
13
+ [LandingPageBodyFields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
14
+ [LandingPageBodyFields.COLUMN_BACKGROUND_COLOR]?: string;
15
+ [LandingPageBodyFields.COLUMN_TYPE]?: string;
16
+ [LandingPageBodyFields.COLUMN_TITLE]?: string;
17
+ [LandingPageBodyFields.COLUMN_DESCRIPTION]?: string;
18
+ [LandingPageBodyFields.COLUMN_VIDEO_URL]?: string;
19
+ [LandingPageBodyFields.COLUMN_BUTTON_TEXT]?: string;
20
+ [LandingPageBodyFields.COLUMN_CONTACT_EMAIL]?: string;
21
+ };
22
+ export declare class LandingPageBody extends AbstractEntity<LandingPageBodyType> {
23
+ #private;
24
+ constructor(landingPageBodyInput: LandingPageBodyType);
25
+ get backgroundImageUuid(): string;
26
+ get backgroundColor(): string | undefined;
27
+ get type(): string | undefined;
28
+ get title(): string | undefined;
29
+ get description(): string | undefined;
30
+ get videoUrl(): string | undefined;
31
+ get buttonText(): string | undefined;
32
+ get contactEmail(): string | undefined;
33
+ toJSON(): LandingPageBodyType;
34
+ }
@@ -0,0 +1,90 @@
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, _backgroundColor, _type, _title, _description, _videoUrl, _buttonText, _contactEmail;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.LandingPageBody = exports.LandingPageBodyFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var LandingPageBodyFields;
20
+ (function (LandingPageBodyFields) {
21
+ LandingPageBodyFields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
22
+ LandingPageBodyFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
23
+ LandingPageBodyFields["COLUMN_TYPE"] = "type";
24
+ LandingPageBodyFields["COLUMN_TITLE"] = "title";
25
+ LandingPageBodyFields["COLUMN_DESCRIPTION"] = "description";
26
+ LandingPageBodyFields["COLUMN_VIDEO_URL"] = "videoUrl";
27
+ LandingPageBodyFields["COLUMN_BUTTON_TEXT"] = "buttonText";
28
+ LandingPageBodyFields["COLUMN_CONTACT_EMAIL"] = "contactEmail";
29
+ })(LandingPageBodyFields = exports.LandingPageBodyFields || (exports.LandingPageBodyFields = {}));
30
+ class LandingPageBody extends abstractEntity_1.AbstractEntity {
31
+ constructor(landingPageBodyInput) {
32
+ super(landingPageBodyInput);
33
+ _backgroundImageUuid.set(this, void 0);
34
+ _backgroundColor.set(this, void 0);
35
+ _type.set(this, void 0);
36
+ _title.set(this, void 0);
37
+ _description.set(this, void 0);
38
+ _videoUrl.set(this, void 0);
39
+ _buttonText.set(this, void 0);
40
+ _contactEmail.set(this, void 0);
41
+ __classPrivateFieldSet(this, _backgroundImageUuid, landingPageBodyInput[LandingPageBodyFields.COLUMN_BACKGROUND_IMAGE_UUID]);
42
+ __classPrivateFieldSet(this, _backgroundColor, landingPageBodyInput[LandingPageBodyFields.COLUMN_BACKGROUND_COLOR]);
43
+ __classPrivateFieldSet(this, _type, landingPageBodyInput[LandingPageBodyFields.COLUMN_TYPE]);
44
+ __classPrivateFieldSet(this, _title, landingPageBodyInput[LandingPageBodyFields.COLUMN_TITLE]);
45
+ __classPrivateFieldSet(this, _description, landingPageBodyInput[LandingPageBodyFields.COLUMN_DESCRIPTION]);
46
+ __classPrivateFieldSet(this, _videoUrl, landingPageBodyInput[LandingPageBodyFields.COLUMN_VIDEO_URL]);
47
+ __classPrivateFieldSet(this, _buttonText, landingPageBodyInput[LandingPageBodyFields.COLUMN_BUTTON_TEXT]);
48
+ __classPrivateFieldSet(this, _contactEmail, landingPageBodyInput[LandingPageBodyFields.COLUMN_CONTACT_EMAIL]);
49
+ }
50
+ get backgroundImageUuid() {
51
+ return __classPrivateFieldGet(this, _backgroundImageUuid);
52
+ }
53
+ get backgroundColor() {
54
+ return __classPrivateFieldGet(this, _backgroundColor);
55
+ }
56
+ get type() {
57
+ return __classPrivateFieldGet(this, _type);
58
+ }
59
+ get title() {
60
+ return __classPrivateFieldGet(this, _title);
61
+ }
62
+ get description() {
63
+ return __classPrivateFieldGet(this, _description);
64
+ }
65
+ get videoUrl() {
66
+ return __classPrivateFieldGet(this, _videoUrl);
67
+ }
68
+ get buttonText() {
69
+ return __classPrivateFieldGet(this, _buttonText);
70
+ }
71
+ get contactEmail() {
72
+ return __classPrivateFieldGet(this, _contactEmail);
73
+ }
74
+ toJSON() {
75
+ return {
76
+ [LandingPageBodyFields.COLUMN_BACKGROUND_IMAGE_UUID]: this
77
+ .backgroundImageUuid,
78
+ [LandingPageBodyFields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
79
+ [LandingPageBodyFields.COLUMN_TYPE]: this.type,
80
+ [LandingPageBodyFields.COLUMN_TITLE]: this.title,
81
+ [LandingPageBodyFields.COLUMN_DESCRIPTION]: this.description,
82
+ [LandingPageBodyFields.COLUMN_VIDEO_URL]: this.videoUrl,
83
+ [LandingPageBodyFields.COLUMN_BUTTON_TEXT]: this.buttonText,
84
+ [LandingPageBodyFields.COLUMN_CONTACT_EMAIL]: this.contactEmail,
85
+ };
86
+ }
87
+ }
88
+ exports.LandingPageBody = LandingPageBody;
89
+ _backgroundImageUuid = new WeakMap(), _backgroundColor = new WeakMap(), _type = new WeakMap(), _title = new WeakMap(), _description = new WeakMap(), _videoUrl = new WeakMap(), _buttonText = new WeakMap(), _contactEmail = new WeakMap();
90
+ //# sourceMappingURL=landingPageBody.js.map
@@ -0,0 +1,29 @@
1
+ import { AbstractEntity } from '../../../../../abstractEntity';
2
+ import { LandingPageFooterFeature, LandingPageFooterFeatureType } from './landingPageFooterFeature';
3
+ export declare enum LandingPageFooterFields {
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_FEATURES = "features"
10
+ }
11
+ export declare type LandingPageFooterType = {
12
+ [LandingPageFooterFields.COLUMN_TITLE]?: string;
13
+ [LandingPageFooterFields.COLUMN_BACKGROUND_COLOR]?: string;
14
+ [LandingPageFooterFields.COLUMN_BUTTON_TEXT]?: string;
15
+ [LandingPageFooterFields.COLUMN_BUTTON_URL]?: string;
16
+ [LandingPageFooterFields.COLUMN_TEXT_COLOR]?: string;
17
+ [LandingPageFooterFields.COLUMN_FEATURES]?: Array<LandingPageFooterFeatureType>;
18
+ };
19
+ export declare class LandingPageFooter extends AbstractEntity<LandingPageFooterType> {
20
+ #private;
21
+ constructor(landingPageFooterInput: LandingPageFooterType);
22
+ get title(): string | undefined;
23
+ get backgroundColor(): string | undefined;
24
+ get buttonText(): string | undefined;
25
+ get buttonUrl(): string | undefined;
26
+ get textColor(): string | undefined;
27
+ get features(): Array<LandingPageFooterFeature> | undefined;
28
+ toJSON(): LandingPageFooterType;
29
+ }
@@ -0,0 +1,78 @@
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, _features;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.LandingPageFooter = exports.LandingPageFooterFields = void 0;
18
+ const abstractEntity_1 = require("../../../../../abstractEntity");
19
+ const landingPageFooterFeature_1 = require("./landingPageFooterFeature");
20
+ var LandingPageFooterFields;
21
+ (function (LandingPageFooterFields) {
22
+ LandingPageFooterFields["COLUMN_TITLE"] = "title";
23
+ LandingPageFooterFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
24
+ LandingPageFooterFields["COLUMN_BUTTON_TEXT"] = "buttonText";
25
+ LandingPageFooterFields["COLUMN_BUTTON_URL"] = "buttonUrl";
26
+ LandingPageFooterFields["COLUMN_TEXT_COLOR"] = "textColor";
27
+ LandingPageFooterFields["COLUMN_FEATURES"] = "features";
28
+ })(LandingPageFooterFields = exports.LandingPageFooterFields || (exports.LandingPageFooterFields = {}));
29
+ class LandingPageFooter extends abstractEntity_1.AbstractEntity {
30
+ constructor(landingPageFooterInput) {
31
+ var _a;
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
+ _features.set(this, void 0);
39
+ __classPrivateFieldSet(this, _title, landingPageFooterInput[LandingPageFooterFields.COLUMN_TITLE]);
40
+ __classPrivateFieldSet(this, _backgroundColor, landingPageFooterInput[LandingPageFooterFields.COLUMN_BACKGROUND_COLOR]);
41
+ __classPrivateFieldSet(this, _buttonText, landingPageFooterInput[LandingPageFooterFields.COLUMN_BUTTON_TEXT]);
42
+ __classPrivateFieldSet(this, _buttonUrl, landingPageFooterInput[LandingPageFooterFields.COLUMN_BUTTON_URL]);
43
+ __classPrivateFieldSet(this, _textColor, landingPageFooterInput[LandingPageFooterFields.COLUMN_TEXT_COLOR]);
44
+ __classPrivateFieldSet(this, _features, (_a = landingPageFooterInput[LandingPageFooterFields.COLUMN_FEATURES]) === null || _a === void 0 ? void 0 : _a.map((landingPageFooterFeature) => new landingPageFooterFeature_1.LandingPageFooterFeature(landingPageFooterFeature)));
45
+ }
46
+ get title() {
47
+ return __classPrivateFieldGet(this, _title);
48
+ }
49
+ get backgroundColor() {
50
+ return __classPrivateFieldGet(this, _backgroundColor);
51
+ }
52
+ get buttonText() {
53
+ return __classPrivateFieldGet(this, _buttonText);
54
+ }
55
+ get buttonUrl() {
56
+ return __classPrivateFieldGet(this, _buttonUrl);
57
+ }
58
+ get textColor() {
59
+ return __classPrivateFieldGet(this, _textColor);
60
+ }
61
+ get features() {
62
+ return __classPrivateFieldGet(this, _features);
63
+ }
64
+ toJSON() {
65
+ var _a;
66
+ return {
67
+ [LandingPageFooterFields.COLUMN_TITLE]: this.title,
68
+ [LandingPageFooterFields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
69
+ [LandingPageFooterFields.COLUMN_BUTTON_TEXT]: this.buttonText,
70
+ [LandingPageFooterFields.COLUMN_BUTTON_URL]: this.buttonUrl,
71
+ [LandingPageFooterFields.COLUMN_TEXT_COLOR]: this.textColor,
72
+ [LandingPageFooterFields.COLUMN_FEATURES]: (_a = this.features) === null || _a === void 0 ? void 0 : _a.map((landingPageFooterFeature) => landingPageFooterFeature.toJSON()),
73
+ };
74
+ }
75
+ }
76
+ exports.LandingPageFooter = LandingPageFooter;
77
+ _title = new WeakMap(), _backgroundColor = new WeakMap(), _buttonText = new WeakMap(), _buttonUrl = new WeakMap(), _textColor = new WeakMap(), _features = new WeakMap();
78
+ //# sourceMappingURL=landingPageFooter.js.map
@@ -0,0 +1,22 @@
1
+ import { AbstractEntity } from '../../../../../abstractEntity';
2
+ export declare enum LandingPageFooterFeatureFields {
3
+ COLUMN_TITLE = "title",
4
+ COLUMN_DESCRIPTION = "description",
5
+ COLUMN_ICON = "icon",
6
+ COLUMN_SIZE = "size"
7
+ }
8
+ export declare type LandingPageFooterFeatureType = {
9
+ [LandingPageFooterFeatureFields.COLUMN_TITLE]?: string;
10
+ [LandingPageFooterFeatureFields.COLUMN_DESCRIPTION]?: string;
11
+ [LandingPageFooterFeatureFields.COLUMN_ICON]?: string;
12
+ [LandingPageFooterFeatureFields.COLUMN_SIZE]?: number;
13
+ };
14
+ export declare class LandingPageFooterFeature extends AbstractEntity<LandingPageFooterFeatureType> {
15
+ #private;
16
+ constructor(landingPageFooterFeatureInput: LandingPageFooterFeatureType);
17
+ get title(): string | undefined;
18
+ get description(): string | undefined;
19
+ get icon(): string | undefined;
20
+ get size(): number | undefined;
21
+ toJSON(): LandingPageFooterFeatureType;
22
+ }
@@ -0,0 +1,61 @@
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, _icon, _size;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.LandingPageFooterFeature = exports.LandingPageFooterFeatureFields = void 0;
18
+ const abstractEntity_1 = require("../../../../../abstractEntity");
19
+ var LandingPageFooterFeatureFields;
20
+ (function (LandingPageFooterFeatureFields) {
21
+ LandingPageFooterFeatureFields["COLUMN_TITLE"] = "title";
22
+ LandingPageFooterFeatureFields["COLUMN_DESCRIPTION"] = "description";
23
+ LandingPageFooterFeatureFields["COLUMN_ICON"] = "icon";
24
+ LandingPageFooterFeatureFields["COLUMN_SIZE"] = "size";
25
+ })(LandingPageFooterFeatureFields = exports.LandingPageFooterFeatureFields || (exports.LandingPageFooterFeatureFields = {}));
26
+ class LandingPageFooterFeature extends abstractEntity_1.AbstractEntity {
27
+ constructor(landingPageFooterFeatureInput) {
28
+ super(landingPageFooterFeatureInput);
29
+ _title.set(this, void 0);
30
+ _description.set(this, void 0);
31
+ _icon.set(this, void 0);
32
+ _size.set(this, void 0);
33
+ __classPrivateFieldSet(this, _title, landingPageFooterFeatureInput[LandingPageFooterFeatureFields.COLUMN_TITLE]);
34
+ __classPrivateFieldSet(this, _description, landingPageFooterFeatureInput[LandingPageFooterFeatureFields.COLUMN_DESCRIPTION]);
35
+ __classPrivateFieldSet(this, _icon, landingPageFooterFeatureInput[LandingPageFooterFeatureFields.COLUMN_ICON]);
36
+ __classPrivateFieldSet(this, _size, landingPageFooterFeatureInput[LandingPageFooterFeatureFields.COLUMN_SIZE]);
37
+ }
38
+ get title() {
39
+ return __classPrivateFieldGet(this, _title);
40
+ }
41
+ get description() {
42
+ return __classPrivateFieldGet(this, _description);
43
+ }
44
+ get icon() {
45
+ return __classPrivateFieldGet(this, _icon);
46
+ }
47
+ get size() {
48
+ return __classPrivateFieldGet(this, _size);
49
+ }
50
+ toJSON() {
51
+ return {
52
+ [LandingPageFooterFeatureFields.COLUMN_TITLE]: this.title,
53
+ [LandingPageFooterFeatureFields.COLUMN_DESCRIPTION]: this.description,
54
+ [LandingPageFooterFeatureFields.COLUMN_ICON]: this.icon,
55
+ [LandingPageFooterFeatureFields.COLUMN_SIZE]: this.size,
56
+ };
57
+ }
58
+ }
59
+ exports.LandingPageFooterFeature = LandingPageFooterFeature;
60
+ _title = new WeakMap(), _description = new WeakMap(), _icon = new WeakMap(), _size = new WeakMap();
61
+ //# sourceMappingURL=landingPageFooterFeature.js.map
@@ -0,0 +1,28 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum LandingPageHeaderFields {
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
+ }
10
+ export declare type LandingPageHeaderType = {
11
+ [LandingPageHeaderFields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
12
+ [LandingPageHeaderFields.COLUMN_VENDOR_LOGO_UUID]: string;
13
+ [LandingPageHeaderFields.COLUMN_TITLE]?: string;
14
+ [LandingPageHeaderFields.COLUMN_BACKGROUND_COLOR]?: string;
15
+ [LandingPageHeaderFields.COLUMN_BASELINE]?: string;
16
+ [LandingPageHeaderFields.COLUMN_TEXT_COLOR]?: string;
17
+ };
18
+ export declare class LandingPageHeader extends AbstractEntity<LandingPageHeaderType> {
19
+ #private;
20
+ constructor(landingPageHeaderInput: LandingPageHeaderType);
21
+ get backgroundImageUuid(): string;
22
+ get vendorLogoUuid(): string;
23
+ get title(): string | undefined;
24
+ get backgroundColor(): string | undefined;
25
+ get baseline(): string | undefined;
26
+ get textColor(): string | undefined;
27
+ toJSON(): LandingPageHeaderType;
28
+ }
@@ -0,0 +1,76 @@
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;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.LandingPageHeader = exports.LandingPageHeaderFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var LandingPageHeaderFields;
20
+ (function (LandingPageHeaderFields) {
21
+ LandingPageHeaderFields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
22
+ LandingPageHeaderFields["COLUMN_VENDOR_LOGO_UUID"] = "vendorLogoUuid";
23
+ LandingPageHeaderFields["COLUMN_TITLE"] = "title";
24
+ LandingPageHeaderFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
25
+ LandingPageHeaderFields["COLUMN_BASELINE"] = "baseline";
26
+ LandingPageHeaderFields["COLUMN_TEXT_COLOR"] = "textColor";
27
+ })(LandingPageHeaderFields = exports.LandingPageHeaderFields || (exports.LandingPageHeaderFields = {}));
28
+ class LandingPageHeader extends abstractEntity_1.AbstractEntity {
29
+ constructor(landingPageHeaderInput) {
30
+ super(landingPageHeaderInput);
31
+ _backgroundImageUuid.set(this, void 0);
32
+ _vendorLogoUuid.set(this, void 0);
33
+ _title.set(this, void 0);
34
+ _backgroundColor.set(this, void 0);
35
+ _baseline.set(this, void 0);
36
+ _textColor.set(this, void 0);
37
+ __classPrivateFieldSet(this, _backgroundImageUuid, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_BACKGROUND_IMAGE_UUID]);
38
+ __classPrivateFieldSet(this, _vendorLogoUuid, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_VENDOR_LOGO_UUID]);
39
+ __classPrivateFieldSet(this, _title, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_TITLE]);
40
+ __classPrivateFieldSet(this, _backgroundColor, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_BACKGROUND_COLOR]);
41
+ __classPrivateFieldSet(this, _baseline, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_BASELINE]);
42
+ __classPrivateFieldSet(this, _textColor, landingPageHeaderInput[LandingPageHeaderFields.COLUMN_TEXT_COLOR]);
43
+ }
44
+ get backgroundImageUuid() {
45
+ return __classPrivateFieldGet(this, _backgroundImageUuid);
46
+ }
47
+ get vendorLogoUuid() {
48
+ return __classPrivateFieldGet(this, _vendorLogoUuid);
49
+ }
50
+ get title() {
51
+ return __classPrivateFieldGet(this, _title);
52
+ }
53
+ get backgroundColor() {
54
+ return __classPrivateFieldGet(this, _backgroundColor);
55
+ }
56
+ get baseline() {
57
+ return __classPrivateFieldGet(this, _baseline);
58
+ }
59
+ get textColor() {
60
+ return __classPrivateFieldGet(this, _textColor);
61
+ }
62
+ toJSON() {
63
+ return {
64
+ [LandingPageHeaderFields.COLUMN_BACKGROUND_IMAGE_UUID]: this
65
+ .backgroundImageUuid,
66
+ [LandingPageHeaderFields.COLUMN_VENDOR_LOGO_UUID]: this.vendorLogoUuid,
67
+ [LandingPageHeaderFields.COLUMN_TITLE]: this.title,
68
+ [LandingPageHeaderFields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
69
+ [LandingPageHeaderFields.COLUMN_BASELINE]: this.baseline,
70
+ [LandingPageHeaderFields.COLUMN_TEXT_COLOR]: this.textColor,
71
+ };
72
+ }
73
+ }
74
+ exports.LandingPageHeader = LandingPageHeader;
75
+ _backgroundImageUuid = new WeakMap(), _vendorLogoUuid = new WeakMap(), _title = new WeakMap(), _backgroundColor = new WeakMap(), _baseline = new WeakMap(), _textColor = new WeakMap();
76
+ //# sourceMappingURL=landingPageHeader.js.map
@@ -0,0 +1,28 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum RulesFields {
3
+ COLUMN_LOCATIONS = "locations",
4
+ COLUMN_ROLES = "roles",
5
+ COLUMN_MARKETPLACES = "marketplaces",
6
+ COLUMN_SUBSCRIPTIONS = "subscriptions",
7
+ COLUMN_RESELLERS = "resellers",
8
+ COLUMN_END_CUSTOMERS = "endCustomers"
9
+ }
10
+ export declare type RulesType = {
11
+ [RulesFields.COLUMN_LOCATIONS]: string[];
12
+ [RulesFields.COLUMN_ROLES]: string[];
13
+ [RulesFields.COLUMN_MARKETPLACES]: string[];
14
+ [RulesFields.COLUMN_SUBSCRIPTIONS]: string[];
15
+ [RulesFields.COLUMN_RESELLERS]: string[];
16
+ [RulesFields.COLUMN_END_CUSTOMERS]: string[];
17
+ };
18
+ export declare class Rules extends AbstractEntity<RulesType> {
19
+ #private;
20
+ constructor(rulesInput: RulesType);
21
+ get locations(): string[];
22
+ get roles(): string[];
23
+ get marketplaces(): string[];
24
+ get subscriptions(): string[];
25
+ get resellers(): string[];
26
+ get endCustomers(): string[];
27
+ toJSON(): RulesType;
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 _locations, _roles, _marketplaces, _subscriptions, _resellers, _endCustomers;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Rules = exports.RulesFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var RulesFields;
20
+ (function (RulesFields) {
21
+ RulesFields["COLUMN_LOCATIONS"] = "locations";
22
+ RulesFields["COLUMN_ROLES"] = "roles";
23
+ RulesFields["COLUMN_MARKETPLACES"] = "marketplaces";
24
+ RulesFields["COLUMN_SUBSCRIPTIONS"] = "subscriptions";
25
+ RulesFields["COLUMN_RESELLERS"] = "resellers";
26
+ RulesFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
27
+ })(RulesFields = exports.RulesFields || (exports.RulesFields = {}));
28
+ class Rules extends abstractEntity_1.AbstractEntity {
29
+ constructor(rulesInput) {
30
+ super(rulesInput);
31
+ _locations.set(this, void 0);
32
+ _roles.set(this, void 0);
33
+ _marketplaces.set(this, void 0);
34
+ _subscriptions.set(this, void 0);
35
+ _resellers.set(this, void 0);
36
+ _endCustomers.set(this, void 0);
37
+ __classPrivateFieldSet(this, _locations, rulesInput[RulesFields.COLUMN_LOCATIONS]);
38
+ __classPrivateFieldSet(this, _roles, rulesInput[RulesFields.COLUMN_ROLES]);
39
+ __classPrivateFieldSet(this, _marketplaces, rulesInput[RulesFields.COLUMN_MARKETPLACES]);
40
+ __classPrivateFieldSet(this, _subscriptions, rulesInput[RulesFields.COLUMN_SUBSCRIPTIONS]);
41
+ __classPrivateFieldSet(this, _resellers, rulesInput[RulesFields.COLUMN_RESELLERS]);
42
+ __classPrivateFieldSet(this, _endCustomers, rulesInput[RulesFields.COLUMN_END_CUSTOMERS]);
43
+ }
44
+ get locations() {
45
+ return __classPrivateFieldGet(this, _locations);
46
+ }
47
+ get roles() {
48
+ return __classPrivateFieldGet(this, _roles);
49
+ }
50
+ get marketplaces() {
51
+ return __classPrivateFieldGet(this, _marketplaces);
52
+ }
53
+ get subscriptions() {
54
+ return __classPrivateFieldGet(this, _subscriptions);
55
+ }
56
+ get resellers() {
57
+ return __classPrivateFieldGet(this, _resellers);
58
+ }
59
+ get endCustomers() {
60
+ return __classPrivateFieldGet(this, _endCustomers);
61
+ }
62
+ toJSON() {
63
+ return {
64
+ [RulesFields.COLUMN_LOCATIONS]: this.locations,
65
+ [RulesFields.COLUMN_ROLES]: this.roles,
66
+ [RulesFields.COLUMN_MARKETPLACES]: this.marketplaces,
67
+ [RulesFields.COLUMN_SUBSCRIPTIONS]: this.subscriptions,
68
+ [RulesFields.COLUMN_RESELLERS]: this.resellers,
69
+ [RulesFields.COLUMN_END_CUSTOMERS]: this.endCustomers,
70
+ };
71
+ }
72
+ }
73
+ exports.Rules = Rules;
74
+ _locations = new WeakMap(), _roles = new WeakMap(), _marketplaces = new WeakMap(), _subscriptions = new WeakMap(), _resellers = new WeakMap(), _endCustomers = new WeakMap();
75
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1,16 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum AssetsFields {
3
+ COLUMN_UUID = "uuid",
4
+ COLUMN_URL = "url"
5
+ }
6
+ export declare type AssetsType = {
7
+ [AssetsFields.COLUMN_UUID]: string;
8
+ [AssetsFields.COLUMN_URL]: string;
9
+ };
10
+ export declare class Assets extends AbstractEntity<AssetsType> {
11
+ #private;
12
+ constructor(assetsInput: AssetsType);
13
+ get uuid(): string;
14
+ get url(): string;
15
+ toJSON(): AssetsType;
16
+ }
@@ -0,0 +1,47 @@
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 _uuid, _url;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Assets = exports.AssetsFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var AssetsFields;
20
+ (function (AssetsFields) {
21
+ AssetsFields["COLUMN_UUID"] = "uuid";
22
+ AssetsFields["COLUMN_URL"] = "url";
23
+ })(AssetsFields = exports.AssetsFields || (exports.AssetsFields = {}));
24
+ class Assets extends abstractEntity_1.AbstractEntity {
25
+ constructor(assetsInput) {
26
+ super(assetsInput);
27
+ _uuid.set(this, void 0);
28
+ _url.set(this, void 0);
29
+ __classPrivateFieldSet(this, _uuid, assetsInput[AssetsFields.COLUMN_UUID]);
30
+ __classPrivateFieldSet(this, _url, assetsInput[AssetsFields.COLUMN_URL]);
31
+ }
32
+ get uuid() {
33
+ return __classPrivateFieldGet(this, _uuid);
34
+ }
35
+ get url() {
36
+ return __classPrivateFieldGet(this, _url);
37
+ }
38
+ toJSON() {
39
+ return {
40
+ [AssetsFields.COLUMN_UUID]: this.uuid,
41
+ [AssetsFields.COLUMN_URL]: this.url,
42
+ };
43
+ }
44
+ }
45
+ exports.Assets = Assets;
46
+ _uuid = new WeakMap(), _url = new WeakMap();
47
+ //# sourceMappingURL=assets.js.map
@@ -0,0 +1,14 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ import { AssetsType, Assets } from './assets/assets';
3
+ export declare enum CampaignAssetsFields {
4
+ COLUMN_ASSETS = "assets"
5
+ }
6
+ export declare type CampaignAssetsType = {
7
+ [CampaignAssetsFields.COLUMN_ASSETS]: Array<AssetsType>;
8
+ };
9
+ export declare class CampaignAssets extends AbstractEntity<CampaignAssetsType> {
10
+ #private;
11
+ constructor(CampaignAssetsInput: CampaignAssetsType);
12
+ get assets(): Array<Assets>;
13
+ toJSON(): CampaignAssetsType;
14
+ }
@@ -0,0 +1,41 @@
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 _assets;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CampaignAssets = exports.CampaignAssetsFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ const assets_1 = require("./assets/assets");
20
+ var CampaignAssetsFields;
21
+ (function (CampaignAssetsFields) {
22
+ CampaignAssetsFields["COLUMN_ASSETS"] = "assets";
23
+ })(CampaignAssetsFields = exports.CampaignAssetsFields || (exports.CampaignAssetsFields = {}));
24
+ class CampaignAssets extends abstractEntity_1.AbstractEntity {
25
+ constructor(CampaignAssetsInput) {
26
+ super(CampaignAssetsInput);
27
+ _assets.set(this, void 0);
28
+ __classPrivateFieldSet(this, _assets, CampaignAssetsInput[CampaignAssetsFields.COLUMN_ASSETS].map((asset) => new assets_1.Assets(asset)));
29
+ }
30
+ get assets() {
31
+ return __classPrivateFieldGet(this, _assets);
32
+ }
33
+ toJSON() {
34
+ return {
35
+ [CampaignAssetsFields.COLUMN_ASSETS]: this.assets.map((asset) => asset.toJSON()),
36
+ };
37
+ }
38
+ }
39
+ exports.CampaignAssets = CampaignAssets;
40
+ _assets = new WeakMap();
41
+ //# sourceMappingURL=campaignAssets.js.map
@@ -0,0 +1,11 @@
1
+ export * from './entities/campaign/banners/banners';
2
+ export * from './entities/campaign/landingPage/landingPageFooter/landingPageFooter';
3
+ export * from './entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature';
4
+ export * from './entities/campaign/landingPage/landingPage';
5
+ export * from './entities/campaign/landingPage/landingPageBody';
6
+ export * from './entities/campaign/landingPage/landingPageHeader';
7
+ export * from './entities/campaign/rules/rules';
8
+ export * from './entities/campaign/campaign';
9
+ export * from './entities/campaignAssets/assets/assets';
10
+ export * from './entities/campaignAssets/campaignAssets';
11
+ export * from './campaignClient';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./entities/campaign/banners/banners"), exports);
14
+ __exportStar(require("./entities/campaign/landingPage/landingPageFooter/landingPageFooter"), exports);
15
+ __exportStar(require("./entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature"), exports);
16
+ __exportStar(require("./entities/campaign/landingPage/landingPage"), exports);
17
+ __exportStar(require("./entities/campaign/landingPage/landingPageBody"), exports);
18
+ __exportStar(require("./entities/campaign/landingPage/landingPageHeader"), exports);
19
+ __exportStar(require("./entities/campaign/rules/rules"), exports);
20
+ __exportStar(require("./entities/campaign/campaign"), exports);
21
+ __exportStar(require("./entities/campaignAssets/assets/assets"), exports);
22
+ __exportStar(require("./entities/campaignAssets/campaignAssets"), exports);
23
+ __exportStar(require("./campaignClient"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -5,6 +5,7 @@ import { SubscriptionsClient } from './subscriptions/subscriptionsClient';
5
5
  import { CustomersClient } from './customers/customersClient';
6
6
  import { OrdersClient } from './orders';
7
7
  import { ContactClient } from './contact/contactClient';
8
+ import { CampaignClient } from './campaign';
8
9
  /**
9
10
  * Public API Client class, should be the main entry point for your calls
10
11
  */
@@ -45,5 +46,10 @@ export declare class PublicApiClient extends AbstractClient {
45
46
  * @returns {@link ContactClient}
46
47
  */
47
48
  getContactClient(): ContactClient;
49
+ /**
50
+ * Creates a new {@link ContactClient} instance and returns it
51
+ * @returns {@link ContactClient}
52
+ */
53
+ getCampaignClient(): CampaignClient;
48
54
  }
49
55
  export default PublicApiClient;
@@ -8,6 +8,7 @@ const subscriptionsClient_1 = require("./subscriptions/subscriptionsClient");
8
8
  const customersClient_1 = require("./customers/customersClient");
9
9
  const orders_1 = require("./orders");
10
10
  const contactClient_1 = require("./contact/contactClient");
11
+ const campaign_1 = require("./campaign");
11
12
  /**
12
13
  * Public API Client class, should be the main entry point for your calls
13
14
  */
@@ -78,6 +79,15 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
78
79
  .setUrl(this.url)
79
80
  .setApiKey(this.apiKey);
80
81
  }
82
+ /**
83
+ * Creates a new {@link ContactClient} instance and returns it
84
+ * @returns {@link ContactClient}
85
+ */
86
+ getCampaignClient() {
87
+ return new campaign_1.CampaignClient(this.client)
88
+ .setUrl(this.url)
89
+ .setApiKey(this.apiKey);
90
+ }
81
91
  }
82
92
  exports.PublicApiClient = PublicApiClient;
83
93
  exports.default = PublicApiClient;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.7.0",
7
+ "version": "3.8.0-rc.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "@types/validatorjs": "3.15.0",
82
82
  "axios": "0.21.1",
83
83
  "graphql": "^16.3.0",
84
- "graphql-request": "^4.0.0",
84
+ "graphql-request": "4.2.0",
85
85
  "validatorjs": "3.22.1"
86
86
  }
87
87
  }