@arrowsphere/api-client 3.5.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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/abstractClient.d.ts +1 -0
  3. package/build/abstractClient.js +6 -0
  4. package/build/campaign/campaignClient.d.ts +12 -0
  5. package/build/campaign/campaignClient.js +26 -0
  6. package/build/campaign/entities/campaign/banners/banners.d.ts +28 -0
  7. package/build/campaign/entities/campaign/banners/banners.js +75 -0
  8. package/build/campaign/entities/campaign/campaign.d.ts +52 -0
  9. package/build/campaign/entities/campaign/campaign.js +130 -0
  10. package/build/campaign/entities/campaign/landingPage/landingPage.d.ts +25 -0
  11. package/build/campaign/entities/campaign/landingPage/landingPage.js +67 -0
  12. package/build/campaign/entities/campaign/landingPage/landingPageBody.d.ts +34 -0
  13. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +90 -0
  14. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.d.ts +29 -0
  15. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +78 -0
  16. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.d.ts +22 -0
  17. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +61 -0
  18. package/build/campaign/entities/campaign/landingPage/landingPageHeader.d.ts +28 -0
  19. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +76 -0
  20. package/build/campaign/entities/campaign/rules/rules.d.ts +28 -0
  21. package/build/campaign/entities/campaign/rules/rules.js +75 -0
  22. package/build/campaign/entities/campaignAssets/assets/assets.d.ts +16 -0
  23. package/build/campaign/entities/campaignAssets/assets/assets.js +47 -0
  24. package/build/campaign/entities/campaignAssets/campaignAssets.d.ts +14 -0
  25. package/build/campaign/entities/campaignAssets/campaignAssets.js +41 -0
  26. package/build/campaign/index.d.ts +11 -0
  27. package/build/campaign/index.js +24 -0
  28. package/build/contact/contactClient.d.ts +37 -0
  29. package/build/contact/contactClient.js +49 -0
  30. package/build/contact/entities/contact.d.ts +43 -0
  31. package/build/contact/entities/contact.js +110 -0
  32. package/build/contact/entities/contactCreate.d.ts +13 -0
  33. package/build/contact/entities/contactCreate.js +40 -0
  34. package/build/contact/entities/contactList.d.ts +9 -0
  35. package/build/contact/entities/contactList.js +35 -0
  36. package/build/contact/index.d.ts +4 -0
  37. package/build/contact/index.js +17 -0
  38. package/build/customers/customersClient.d.ts +4 -2
  39. package/build/customers/customersClient.js +10 -4
  40. package/build/index.d.ts +2 -0
  41. package/build/index.js +15 -0
  42. package/build/publicApiClient.d.ts +12 -0
  43. package/build/publicApiClient.js +20 -0
  44. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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
+
14
+ ## [3.7.0] - 2022-06-23
15
+
16
+ ### Changed
17
+
18
+ - Adding new EndPoint of Customer orders:
19
+ - Get customer orders
20
+
21
+ ## [3.6.0] - 2022-05-17
22
+
23
+ ### Changed
24
+
25
+ - Adding 4 new EndPoints of Contact Information:
26
+ - Create Contact
27
+ - Get a Contact
28
+ - Get list of Contact
29
+ - Update a Contact
30
+
6
31
  ## [3.5.0] - 2022-05-02
7
32
 
8
33
  ### Changed
@@ -112,6 +112,7 @@ export declare abstract class AbstractClient {
112
112
  */
113
113
  protected post(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<AxiosResponse['data']>;
114
114
  protected put(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<void>;
115
+ protected patch<T>(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<T>;
115
116
  /**
116
117
  * Generates the full url for request
117
118
  * @param parameters - Parameters to serialize
@@ -157,6 +157,12 @@ class AbstractClient {
157
157
  });
158
158
  return this.getResponse(response);
159
159
  }
160
+ async patch(payload = {}, parameters = {}, headers = {}, options = {}) {
161
+ const response = await this.client.patch(this.generateUrl(parameters, options), payload, {
162
+ headers: this.prepareHeaders(headers),
163
+ });
164
+ return this.getResponse(response);
165
+ }
160
166
  /**
161
167
  * Generates the full url for request
162
168
  * @param parameters - Parameters to serialize
@@ -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
+ }