@arrowsphere/api-client 3.7.0 → 3.9.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.
- package/CHANGELOG.md +17 -0
- package/build/campaign/campaignClient.d.ts +12 -0
- package/build/campaign/campaignClient.js +26 -0
- package/build/campaign/entities/campaign/banners/banners.d.ts +28 -0
- package/build/campaign/entities/campaign/banners/banners.js +75 -0
- package/build/campaign/entities/campaign/campaign.d.ts +52 -0
- package/build/campaign/entities/campaign/campaign.js +130 -0
- package/build/campaign/entities/campaign/landingPage/landingPage.d.ts +25 -0
- package/build/campaign/entities/campaign/landingPage/landingPage.js +67 -0
- package/build/campaign/entities/campaign/landingPage/landingPageBody.d.ts +34 -0
- package/build/campaign/entities/campaign/landingPage/landingPageBody.js +90 -0
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.d.ts +29 -0
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +78 -0
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.d.ts +22 -0
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +61 -0
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.d.ts +28 -0
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +76 -0
- package/build/campaign/entities/campaign/rules/rules.d.ts +28 -0
- package/build/campaign/entities/campaign/rules/rules.js +75 -0
- package/build/campaign/entities/campaignAssets/assets/assets.d.ts +16 -0
- package/build/campaign/entities/campaignAssets/assets/assets.js +47 -0
- package/build/campaign/entities/campaignAssets/campaignAssets.d.ts +14 -0
- package/build/campaign/entities/campaignAssets/campaignAssets.js +41 -0
- package/build/campaign/index.d.ts +12 -0
- package/build/campaign/index.js +38 -0
- package/build/consumption/consumptionClient.d.ts +13 -0
- package/build/consumption/consumptionClient.js +30 -0
- package/build/consumption/entities/bi/consumptionBI.d.ts +27 -0
- package/build/consumption/entities/bi/consumptionBI.js +70 -0
- package/build/consumption/entities/bi/period/period.d.ts +16 -0
- package/build/consumption/entities/bi/period/period.js +47 -0
- package/build/consumption/entities/bi/top/top.d.ts +22 -0
- package/build/consumption/entities/bi/top/top.js +61 -0
- package/build/consumption/entities/consumption/consumption.d.ts +16 -0
- package/build/consumption/entities/consumption/consumption.js +47 -0
- package/build/consumption/index.d.ts +5 -0
- package/build/consumption/index.js +18 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/publicApiClient.d.ts +8 -0
- package/build/publicApiClient.js +16 -0
- package/package.json +2 -2
|
@@ -0,0 +1,70 @@
|
|
|
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 _currency, _period, _aggregate, _metric, _top;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ConsumptionBI = exports.ConsumptionBIFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
const period_1 = require("./period/period");
|
|
20
|
+
const top_1 = require("./top/top");
|
|
21
|
+
var ConsumptionBIFields;
|
|
22
|
+
(function (ConsumptionBIFields) {
|
|
23
|
+
ConsumptionBIFields["COLUMN_CURRENCY"] = "currency";
|
|
24
|
+
ConsumptionBIFields["COLUMN_PERIOD"] = "period";
|
|
25
|
+
ConsumptionBIFields["COLUMN_AGGREGATE"] = "aggregate";
|
|
26
|
+
ConsumptionBIFields["COLUMN_METRIC"] = "metric";
|
|
27
|
+
ConsumptionBIFields["COLUMN_TOP"] = "top";
|
|
28
|
+
})(ConsumptionBIFields = exports.ConsumptionBIFields || (exports.ConsumptionBIFields = {}));
|
|
29
|
+
class ConsumptionBI extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(consumptionResponse) {
|
|
31
|
+
super(consumptionResponse);
|
|
32
|
+
_currency.set(this, void 0);
|
|
33
|
+
_period.set(this, void 0);
|
|
34
|
+
_aggregate.set(this, void 0);
|
|
35
|
+
_metric.set(this, void 0);
|
|
36
|
+
_top.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _currency, consumptionResponse[ConsumptionBIFields.COLUMN_CURRENCY]);
|
|
38
|
+
__classPrivateFieldSet(this, _period, new period_1.Period(consumptionResponse[ConsumptionBIFields.COLUMN_PERIOD]));
|
|
39
|
+
__classPrivateFieldSet(this, _aggregate, consumptionResponse[ConsumptionBIFields.COLUMN_AGGREGATE]);
|
|
40
|
+
__classPrivateFieldSet(this, _metric, consumptionResponse[ConsumptionBIFields.COLUMN_METRIC]);
|
|
41
|
+
__classPrivateFieldSet(this, _top, consumptionResponse[ConsumptionBIFields.COLUMN_TOP].map((top) => new top_1.Top(top)));
|
|
42
|
+
}
|
|
43
|
+
get currency() {
|
|
44
|
+
return __classPrivateFieldGet(this, _currency);
|
|
45
|
+
}
|
|
46
|
+
get period() {
|
|
47
|
+
return __classPrivateFieldGet(this, _period);
|
|
48
|
+
}
|
|
49
|
+
get aggregate() {
|
|
50
|
+
return __classPrivateFieldGet(this, _aggregate);
|
|
51
|
+
}
|
|
52
|
+
get metric() {
|
|
53
|
+
return __classPrivateFieldGet(this, _metric);
|
|
54
|
+
}
|
|
55
|
+
get top() {
|
|
56
|
+
return __classPrivateFieldGet(this, _top);
|
|
57
|
+
}
|
|
58
|
+
toJSON() {
|
|
59
|
+
return {
|
|
60
|
+
[ConsumptionBIFields.COLUMN_CURRENCY]: this.currency,
|
|
61
|
+
[ConsumptionBIFields.COLUMN_PERIOD]: this.period.toJSON(),
|
|
62
|
+
[ConsumptionBIFields.COLUMN_AGGREGATE]: this.aggregate,
|
|
63
|
+
[ConsumptionBIFields.COLUMN_METRIC]: this.metric,
|
|
64
|
+
[ConsumptionBIFields.COLUMN_TOP]: this.top.map((top) => top.toJSON()),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.ConsumptionBI = ConsumptionBI;
|
|
69
|
+
_currency = new WeakMap(), _period = new WeakMap(), _aggregate = new WeakMap(), _metric = new WeakMap(), _top = new WeakMap();
|
|
70
|
+
//# sourceMappingURL=consumptionBI.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum PeriodFields {
|
|
3
|
+
COLUMN_FROM = "from",
|
|
4
|
+
COLUMN_TO = "to"
|
|
5
|
+
}
|
|
6
|
+
export declare type PeriodType = {
|
|
7
|
+
[PeriodFields.COLUMN_FROM]: string;
|
|
8
|
+
[PeriodFields.COLUMN_TO]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class Period extends AbstractEntity<PeriodType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(periodResponse: PeriodType);
|
|
13
|
+
get from(): string;
|
|
14
|
+
get to(): string;
|
|
15
|
+
toJSON(): PeriodType;
|
|
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 _from, _to;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Period = exports.PeriodFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
+
var PeriodFields;
|
|
20
|
+
(function (PeriodFields) {
|
|
21
|
+
PeriodFields["COLUMN_FROM"] = "from";
|
|
22
|
+
PeriodFields["COLUMN_TO"] = "to";
|
|
23
|
+
})(PeriodFields = exports.PeriodFields || (exports.PeriodFields = {}));
|
|
24
|
+
class Period extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(periodResponse) {
|
|
26
|
+
super(periodResponse);
|
|
27
|
+
_from.set(this, void 0);
|
|
28
|
+
_to.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _from, periodResponse[PeriodFields.COLUMN_FROM]);
|
|
30
|
+
__classPrivateFieldSet(this, _to, periodResponse[PeriodFields.COLUMN_TO]);
|
|
31
|
+
}
|
|
32
|
+
get from() {
|
|
33
|
+
return __classPrivateFieldGet(this, _from);
|
|
34
|
+
}
|
|
35
|
+
get to() {
|
|
36
|
+
return __classPrivateFieldGet(this, _to);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[PeriodFields.COLUMN_FROM]: this.from,
|
|
41
|
+
[PeriodFields.COLUMN_TO]: this.to,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Period = Period;
|
|
46
|
+
_from = new WeakMap(), _to = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=period.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum TopFields {
|
|
3
|
+
COLUMN_RANK = "rank",
|
|
4
|
+
COLUMN_METRIC = "metric",
|
|
5
|
+
COLUMN_NAME = "name",
|
|
6
|
+
COLUMN_REF = "ref"
|
|
7
|
+
}
|
|
8
|
+
export declare type TopType = {
|
|
9
|
+
[TopFields.COLUMN_RANK]: string;
|
|
10
|
+
[TopFields.COLUMN_METRIC]: number;
|
|
11
|
+
[TopFields.COLUMN_NAME]: string;
|
|
12
|
+
[TopFields.COLUMN_REF]: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class Top extends AbstractEntity<TopType> {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(topResponse: TopType);
|
|
17
|
+
get rank(): string;
|
|
18
|
+
get metric(): number;
|
|
19
|
+
get name(): string;
|
|
20
|
+
get ref(): string;
|
|
21
|
+
toJSON(): TopType;
|
|
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 _rank, _metric, _name, _ref;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Top = exports.TopFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
|
+
var TopFields;
|
|
20
|
+
(function (TopFields) {
|
|
21
|
+
TopFields["COLUMN_RANK"] = "rank";
|
|
22
|
+
TopFields["COLUMN_METRIC"] = "metric";
|
|
23
|
+
TopFields["COLUMN_NAME"] = "name";
|
|
24
|
+
TopFields["COLUMN_REF"] = "ref";
|
|
25
|
+
})(TopFields = exports.TopFields || (exports.TopFields = {}));
|
|
26
|
+
class Top extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(topResponse) {
|
|
28
|
+
super(topResponse);
|
|
29
|
+
_rank.set(this, void 0);
|
|
30
|
+
_metric.set(this, void 0);
|
|
31
|
+
_name.set(this, void 0);
|
|
32
|
+
_ref.set(this, void 0);
|
|
33
|
+
__classPrivateFieldSet(this, _rank, topResponse[TopFields.COLUMN_RANK]);
|
|
34
|
+
__classPrivateFieldSet(this, _metric, topResponse[TopFields.COLUMN_METRIC]);
|
|
35
|
+
__classPrivateFieldSet(this, _name, topResponse[TopFields.COLUMN_NAME]);
|
|
36
|
+
__classPrivateFieldSet(this, _ref, topResponse[TopFields.COLUMN_REF]);
|
|
37
|
+
}
|
|
38
|
+
get rank() {
|
|
39
|
+
return __classPrivateFieldGet(this, _rank);
|
|
40
|
+
}
|
|
41
|
+
get metric() {
|
|
42
|
+
return __classPrivateFieldGet(this, _metric);
|
|
43
|
+
}
|
|
44
|
+
get name() {
|
|
45
|
+
return __classPrivateFieldGet(this, _name);
|
|
46
|
+
}
|
|
47
|
+
get ref() {
|
|
48
|
+
return __classPrivateFieldGet(this, _ref);
|
|
49
|
+
}
|
|
50
|
+
toJSON() {
|
|
51
|
+
return {
|
|
52
|
+
[TopFields.COLUMN_RANK]: this.rank,
|
|
53
|
+
[TopFields.COLUMN_METRIC]: this.metric,
|
|
54
|
+
[TopFields.COLUMN_NAME]: this.name,
|
|
55
|
+
[TopFields.COLUMN_REF]: this.ref,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.Top = Top;
|
|
60
|
+
_rank = new WeakMap(), _metric = new WeakMap(), _name = new WeakMap(), _ref = new WeakMap();
|
|
61
|
+
//# sourceMappingURL=top.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum ConsumptionFields {
|
|
3
|
+
COLUMN_HEADERS = "headers",
|
|
4
|
+
COLUMN_LINES = "lines"
|
|
5
|
+
}
|
|
6
|
+
export declare type ConsumptionType = {
|
|
7
|
+
[ConsumptionFields.COLUMN_HEADERS]: Array<string>;
|
|
8
|
+
[ConsumptionFields.COLUMN_LINES]: Array<string | number>;
|
|
9
|
+
};
|
|
10
|
+
export declare class Consumption extends AbstractEntity<ConsumptionType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(consumptionResponse: ConsumptionType);
|
|
13
|
+
get headers(): Array<string>;
|
|
14
|
+
get lines(): Array<string | number>;
|
|
15
|
+
toJSON(): ConsumptionType;
|
|
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 _headers, _lines;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Consumption = exports.ConsumptionFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var ConsumptionFields;
|
|
20
|
+
(function (ConsumptionFields) {
|
|
21
|
+
ConsumptionFields["COLUMN_HEADERS"] = "headers";
|
|
22
|
+
ConsumptionFields["COLUMN_LINES"] = "lines";
|
|
23
|
+
})(ConsumptionFields = exports.ConsumptionFields || (exports.ConsumptionFields = {}));
|
|
24
|
+
class Consumption extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(consumptionResponse) {
|
|
26
|
+
super(consumptionResponse);
|
|
27
|
+
_headers.set(this, void 0);
|
|
28
|
+
_lines.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _headers, consumptionResponse[ConsumptionFields.COLUMN_HEADERS]);
|
|
30
|
+
__classPrivateFieldSet(this, _lines, consumptionResponse[ConsumptionFields.COLUMN_LINES]);
|
|
31
|
+
}
|
|
32
|
+
get headers() {
|
|
33
|
+
return __classPrivateFieldGet(this, _headers);
|
|
34
|
+
}
|
|
35
|
+
get lines() {
|
|
36
|
+
return __classPrivateFieldGet(this, _lines);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[ConsumptionFields.COLUMN_HEADERS]: this.headers,
|
|
41
|
+
[ConsumptionFields.COLUMN_LINES]: this.lines,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Consumption = Consumption;
|
|
46
|
+
_headers = new WeakMap(), _lines = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=consumption.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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/consumption/consumption"), exports);
|
|
14
|
+
__exportStar(require("./entities/bi/period/period"), exports);
|
|
15
|
+
__exportStar(require("./entities/bi/top/top"), exports);
|
|
16
|
+
__exportStar(require("./entities/bi/consumptionBI"), exports);
|
|
17
|
+
__exportStar(require("./consumptionClient"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export * from './publicGraphQLClient';
|
|
|
4
4
|
export * from './abstractEntity';
|
|
5
5
|
export * from './abstractClient';
|
|
6
6
|
export * from './abstractGraphQLClient';
|
|
7
|
+
export * from './campaign/';
|
|
7
8
|
export * from './catalog/';
|
|
9
|
+
export * from './consumption';
|
|
8
10
|
export { ContactInformation };
|
|
9
11
|
export * from './customers/';
|
|
10
12
|
export * from './general/';
|
package/build/index.js
CHANGED
|
@@ -30,7 +30,9 @@ __exportStar(require("./publicGraphQLClient"), exports);
|
|
|
30
30
|
__exportStar(require("./abstractEntity"), exports);
|
|
31
31
|
__exportStar(require("./abstractClient"), exports);
|
|
32
32
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
33
|
+
__exportStar(require("./campaign/"), exports);
|
|
33
34
|
__exportStar(require("./catalog/"), exports);
|
|
35
|
+
__exportStar(require("./consumption"), exports);
|
|
34
36
|
__exportStar(require("./customers/"), exports);
|
|
35
37
|
__exportStar(require("./general/"), exports);
|
|
36
38
|
__exportStar(require("./licenses/"), exports);
|
|
@@ -5,6 +5,8 @@ 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';
|
|
9
|
+
import { ConsumptionClient } from './consumption/consumptionClient';
|
|
8
10
|
/**
|
|
9
11
|
* Public API Client class, should be the main entry point for your calls
|
|
10
12
|
*/
|
|
@@ -45,5 +47,11 @@ export declare class PublicApiClient extends AbstractClient {
|
|
|
45
47
|
* @returns {@link ContactClient}
|
|
46
48
|
*/
|
|
47
49
|
getContactClient(): ContactClient;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new {@link ContactClient} instance and returns it
|
|
52
|
+
* @returns {@link ContactClient}
|
|
53
|
+
*/
|
|
54
|
+
getCampaignClient(): CampaignClient;
|
|
55
|
+
getConsumptionClient(): ConsumptionClient;
|
|
48
56
|
}
|
|
49
57
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -8,6 +8,8 @@ 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");
|
|
12
|
+
const consumptionClient_1 = require("./consumption/consumptionClient");
|
|
11
13
|
/**
|
|
12
14
|
* Public API Client class, should be the main entry point for your calls
|
|
13
15
|
*/
|
|
@@ -78,6 +80,20 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
78
80
|
.setUrl(this.url)
|
|
79
81
|
.setApiKey(this.apiKey);
|
|
80
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates a new {@link ContactClient} instance and returns it
|
|
85
|
+
* @returns {@link ContactClient}
|
|
86
|
+
*/
|
|
87
|
+
getCampaignClient() {
|
|
88
|
+
return new campaign_1.CampaignClient(this.client)
|
|
89
|
+
.setUrl(this.url)
|
|
90
|
+
.setApiKey(this.apiKey);
|
|
91
|
+
}
|
|
92
|
+
getConsumptionClient() {
|
|
93
|
+
return new consumptionClient_1.ConsumptionClient(this.client)
|
|
94
|
+
.setUrl(this.url)
|
|
95
|
+
.setApiKey(this.apiKey);
|
|
96
|
+
}
|
|
81
97
|
}
|
|
82
98
|
exports.PublicApiClient = PublicApiClient;
|
|
83
99
|
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
|
+
"version": "3.9.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": "
|
|
84
|
+
"graphql-request": "4.2.0",
|
|
85
85
|
"validatorjs": "3.22.1"
|
|
86
86
|
}
|
|
87
87
|
}
|