@arrowsphere/api-client 3.9.0-rc.1 → 3.9.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 CHANGED
@@ -3,7 +3,13 @@
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.9.0] - 2022-07-05
6
+ ## [3.9.1] - 2022-07-26
7
+
8
+ ### Changed
9
+
10
+ - add backgroundColor key mapping on getActiveCampaign payload
11
+
12
+ ## [3.9.0] - 2022-07-11
7
13
 
8
14
  ### Changed
9
15
 
@@ -1,6 +1,7 @@
1
1
  import { AbstractEntity } from '../../../../abstractEntity';
2
2
  export declare enum BannersFields {
3
3
  COLUMN_BACKGROUND_IMAGE_UUID = "backgroundImageUuid",
4
+ COLUMN_BACKGROUND_COLOR = "backgroundColor",
4
5
  COLUMN_TYPE = "type",
5
6
  COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
6
7
  COLUMN_BUTTON_TEXT = "buttonText",
@@ -9,6 +10,7 @@ export declare enum BannersFields {
9
10
  }
10
11
  export declare type BannersType = {
11
12
  [BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]: string;
13
+ [BannersFields.COLUMN_BACKGROUND_COLOR]?: string;
12
14
  [BannersFields.COLUMN_TYPE]?: string;
13
15
  [BannersFields.COLUMN_BUTTON_PLACEMENT]?: string;
14
16
  [BannersFields.COLUMN_BUTTON_TEXT]?: string;
@@ -19,6 +21,7 @@ export declare class Banners extends AbstractEntity<BannersType> {
19
21
  #private;
20
22
  constructor(bannerInput: BannersType);
21
23
  get backgroundImageUuid(): string;
24
+ get backgroundColor(): string | undefined;
22
25
  get type(): string | undefined;
23
26
  get buttonPlacement(): string | undefined;
24
27
  get buttonText(): string | undefined;
@@ -12,13 +12,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _backgroundImageUuid, _type, _buttonPlacement, _buttonText, _text, _textColor;
15
+ var _backgroundImageUuid, _type, _buttonPlacement, _buttonText, _text, _textColor, _backgroundColor;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Banners = exports.BannersFields = void 0;
18
18
  const abstractEntity_1 = require("../../../../abstractEntity");
19
19
  var BannersFields;
20
20
  (function (BannersFields) {
21
21
  BannersFields["COLUMN_BACKGROUND_IMAGE_UUID"] = "backgroundImageUuid";
22
+ BannersFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
22
23
  BannersFields["COLUMN_TYPE"] = "type";
23
24
  BannersFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
24
25
  BannersFields["COLUMN_BUTTON_TEXT"] = "buttonText";
@@ -34,16 +35,21 @@ class Banners extends abstractEntity_1.AbstractEntity {
34
35
  _buttonText.set(this, void 0);
35
36
  _text.set(this, void 0);
36
37
  _textColor.set(this, void 0);
38
+ _backgroundColor.set(this, void 0);
37
39
  __classPrivateFieldSet(this, _backgroundImageUuid, bannerInput[BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]);
38
40
  __classPrivateFieldSet(this, _type, bannerInput[BannersFields.COLUMN_TYPE]);
39
41
  __classPrivateFieldSet(this, _buttonPlacement, bannerInput[BannersFields.COLUMN_BUTTON_PLACEMENT]);
40
42
  __classPrivateFieldSet(this, _buttonText, bannerInput[BannersFields.COLUMN_BUTTON_TEXT]);
41
43
  __classPrivateFieldSet(this, _text, bannerInput[BannersFields.COLUMN_TEXT]);
42
44
  __classPrivateFieldSet(this, _textColor, bannerInput[BannersFields.COLUMN_TEXT_COLOR]);
45
+ __classPrivateFieldSet(this, _backgroundColor, bannerInput[BannersFields.COLUMN_BACKGROUND_COLOR]);
43
46
  }
44
47
  get backgroundImageUuid() {
45
48
  return __classPrivateFieldGet(this, _backgroundImageUuid);
46
49
  }
50
+ get backgroundColor() {
51
+ return __classPrivateFieldGet(this, _backgroundColor);
52
+ }
47
53
  get type() {
48
54
  return __classPrivateFieldGet(this, _type);
49
55
  }
@@ -62,6 +68,7 @@ class Banners extends abstractEntity_1.AbstractEntity {
62
68
  toJSON() {
63
69
  return {
64
70
  [BannersFields.COLUMN_BACKGROUND_IMAGE_UUID]: this.backgroundImageUuid,
71
+ [BannersFields.COLUMN_BACKGROUND_COLOR]: this.backgroundColor,
65
72
  [BannersFields.COLUMN_TYPE]: this.type,
66
73
  [BannersFields.COLUMN_BUTTON_PLACEMENT]: this.buttonPlacement,
67
74
  [BannersFields.COLUMN_BUTTON_TEXT]: this.buttonText,
@@ -71,5 +78,5 @@ class Banners extends abstractEntity_1.AbstractEntity {
71
78
  }
72
79
  }
73
80
  exports.Banners = Banners;
74
- _backgroundImageUuid = new WeakMap(), _type = new WeakMap(), _buttonPlacement = new WeakMap(), _buttonText = new WeakMap(), _text = new WeakMap(), _textColor = new WeakMap();
81
+ _backgroundImageUuid = new WeakMap(), _type = new WeakMap(), _buttonPlacement = new WeakMap(), _buttonText = new WeakMap(), _text = new WeakMap(), _textColor = new WeakMap(), _backgroundColor = new WeakMap();
75
82
  //# sourceMappingURL=banners.js.map
@@ -9,19 +9,19 @@ export declare enum ConsumptionBIFields {
9
9
  COLUMN_TOP = "top"
10
10
  }
11
11
  export declare type ConsumptionBIType = {
12
- [ConsumptionBIFields.COLUMN_CURRENCY]: string;
13
- [ConsumptionBIFields.COLUMN_PERIOD]: PeriodType;
14
- [ConsumptionBIFields.COLUMN_AGGREGATE]: string;
15
- [ConsumptionBIFields.COLUMN_METRIC]: string;
16
- [ConsumptionBIFields.COLUMN_TOP]: Array<TopType>;
12
+ [ConsumptionBIFields.COLUMN_CURRENCY]?: string;
13
+ [ConsumptionBIFields.COLUMN_PERIOD]?: PeriodType;
14
+ [ConsumptionBIFields.COLUMN_AGGREGATE]?: string;
15
+ [ConsumptionBIFields.COLUMN_METRIC]?: string;
16
+ [ConsumptionBIFields.COLUMN_TOP]?: Array<TopType>;
17
17
  };
18
18
  export declare class ConsumptionBI extends AbstractEntity<ConsumptionBIType> {
19
19
  #private;
20
20
  constructor(consumptionResponse: ConsumptionBIType);
21
- get currency(): string;
22
- get period(): Period;
23
- get aggregate(): string;
24
- get metric(): string;
25
- get top(): Array<Top>;
21
+ get currency(): string | undefined;
22
+ get period(): Period | undefined;
23
+ get aggregate(): string | undefined;
24
+ get metric(): string | undefined;
25
+ get top(): Array<Top> | undefined;
26
26
  toJSON(): ConsumptionBIType;
27
27
  }
@@ -35,10 +35,14 @@ class ConsumptionBI extends abstractEntity_1.AbstractEntity {
35
35
  _metric.set(this, void 0);
36
36
  _top.set(this, void 0);
37
37
  __classPrivateFieldSet(this, _currency, consumptionResponse[ConsumptionBIFields.COLUMN_CURRENCY]);
38
- __classPrivateFieldSet(this, _period, new period_1.Period(consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD]));
38
+ __classPrivateFieldSet(this, _period, consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD]
39
+ ? new period_1.Period(consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD])
40
+ : undefined);
39
41
  __classPrivateFieldSet(this, _aggregate, consumptionResponse[ConsumptionBIFields.COLUMN_AGGREGATE]);
40
42
  __classPrivateFieldSet(this, _metric, consumptionResponse[ConsumptionBIFields.COLUMN_METRIC]);
41
- __classPrivateFieldSet(this, _top, consumptionResponse[ConsumptionBIFields.COLUMN_TOP].map((top) => new top_1.Top(top)));
43
+ __classPrivateFieldSet(this, _top, consumptionResponse[ConsumptionBIFields.COLUMN_TOP]
44
+ ? consumptionResponse[ConsumptionBIFields.COLUMN_TOP].map((top) => new top_1.Top(top))
45
+ : undefined);
42
46
  }
43
47
  get currency() {
44
48
  return __classPrivateFieldGet(this, _currency);
@@ -56,12 +60,13 @@ class ConsumptionBI extends abstractEntity_1.AbstractEntity {
56
60
  return __classPrivateFieldGet(this, _top);
57
61
  }
58
62
  toJSON() {
63
+ var _a, _b;
59
64
  return {
60
65
  [ConsumptionBIFields.COLUMN_CURRENCY]: this.currency,
61
- [ConsumptionBIFields.COLUMN_PERIOD]: this.period.toJSON(),
66
+ [ConsumptionBIFields.COLUMN_PERIOD]: (_a = this.period) === null || _a === void 0 ? void 0 : _a.toJSON(),
62
67
  [ConsumptionBIFields.COLUMN_AGGREGATE]: this.aggregate,
63
68
  [ConsumptionBIFields.COLUMN_METRIC]: this.metric,
64
- [ConsumptionBIFields.COLUMN_TOP]: this.top.map((top) => top.toJSON()),
69
+ [ConsumptionBIFields.COLUMN_TOP]: (_b = this.top) === null || _b === void 0 ? void 0 : _b.map((top) => top.toJSON()),
65
70
  };
66
71
  }
67
72
  }
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.9.0-rc.1",
7
+ "version": "3.9.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",