@arrowsphere/api-client 3.6.0 → 3.8.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 (32) hide show
  1. package/CHANGELOG.md +15 -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 +12 -0
  25. package/build/campaign/index.js +38 -0
  26. package/build/customers/customersClient.d.ts +4 -2
  27. package/build/customers/customersClient.js +10 -4
  28. package/build/index.d.ts +1 -0
  29. package/build/index.js +1 -0
  30. package/build/publicApiClient.d.ts +6 -0
  31. package/build/publicApiClient.js +10 -0
  32. package/package.json +2 -2
@@ -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,12 @@
1
+ import * as AssetsCampaignAssets from './entities/campaignAssets/assets/assets';
2
+ export * from './entities/campaign/banners/banners';
3
+ export * from './entities/campaign/landingPage/landingPageFooter/landingPageFooter';
4
+ export * from './entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature';
5
+ export * from './entities/campaign/landingPage/landingPage';
6
+ export * from './entities/campaign/landingPage/landingPageBody';
7
+ export * from './entities/campaign/landingPage/landingPageHeader';
8
+ export * from './entities/campaign/rules/rules';
9
+ export * from './entities/campaign/campaign';
10
+ export { AssetsCampaignAssets };
11
+ export * from './entities/campaignAssets/campaignAssets';
12
+ export * from './campaignClient';
@@ -0,0 +1,38 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.AssetsCampaignAssets = void 0;
26
+ const AssetsCampaignAssets = __importStar(require("./entities/campaignAssets/assets/assets"));
27
+ exports.AssetsCampaignAssets = AssetsCampaignAssets;
28
+ __exportStar(require("./entities/campaign/banners/banners"), exports);
29
+ __exportStar(require("./entities/campaign/landingPage/landingPageFooter/landingPageFooter"), exports);
30
+ __exportStar(require("./entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature"), exports);
31
+ __exportStar(require("./entities/campaign/landingPage/landingPage"), exports);
32
+ __exportStar(require("./entities/campaign/landingPage/landingPageBody"), exports);
33
+ __exportStar(require("./entities/campaign/landingPage/landingPageHeader"), exports);
34
+ __exportStar(require("./entities/campaign/rules/rules"), exports);
35
+ __exportStar(require("./entities/campaign/campaign"), exports);
36
+ __exportStar(require("./entities/campaignAssets/campaignAssets"), exports);
37
+ __exportStar(require("./campaignClient"), exports);
38
+ //# sourceMappingURL=index.js.map
@@ -2,11 +2,13 @@ import { AbstractClient, Parameters } from '../abstractClient';
2
2
  import { GetResult } from '../getResult';
3
3
  import { DataCustomers } from './entities/dataCustomers';
4
4
  import { DataInvitation } from './entities/dataInvitation';
5
+ import { DataListOrders } from '../orders';
5
6
  export declare class CustomersClient extends AbstractClient {
6
7
  /**
7
- * The base path of the Customers API
8
+ * The base path of the API
8
9
  */
9
- private ROOT_PATH;
10
+ protected basePath: string;
10
11
  getCustomers(parameters?: Parameters): Promise<GetResult<DataCustomers>>;
12
+ getCustomerOrders(customerRef: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
11
13
  getCustomerInvitation(codeInvitation: string, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
12
14
  }
@@ -5,20 +5,26 @@ const abstractClient_1 = require("../abstractClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataCustomers_1 = require("./entities/dataCustomers");
7
7
  const dataInvitation_1 = require("./entities/dataInvitation");
8
+ const orders_1 = require("../orders");
8
9
  class CustomersClient extends abstractClient_1.AbstractClient {
9
10
  constructor() {
10
11
  super(...arguments);
11
12
  /**
12
- * The base path of the Customers API
13
+ * The base path of the API
13
14
  */
14
- this.ROOT_PATH = '/customers';
15
+ this.basePath = '/customers';
15
16
  }
16
17
  async getCustomers(parameters = {}) {
17
- this.path = this.ROOT_PATH;
18
18
  return new getResult_1.GetResult(dataCustomers_1.DataCustomers, await this.get(parameters));
19
19
  }
20
+ async getCustomerOrders(customerRef, perPage = 25, page = 1, parameters = {}) {
21
+ this.setPerPage(perPage);
22
+ this.setPage(page);
23
+ this.path = `/${customerRef}/orders`;
24
+ return new getResult_1.GetResult(orders_1.DataListOrders, await this.get(parameters));
25
+ }
20
26
  async getCustomerInvitation(codeInvitation, parameters = {}) {
21
- this.path = `${this.ROOT_PATH}/invitations/${codeInvitation}`;
27
+ this.path = `/invitations/${codeInvitation}`;
22
28
  return new getResult_1.GetResult(dataInvitation_1.DataInvitation, await this.get(parameters));
23
29
  }
24
30
  }
package/build/index.d.ts CHANGED
@@ -4,6 +4,7 @@ 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/';
8
9
  export { ContactInformation };
9
10
  export * from './customers/';
package/build/index.js CHANGED
@@ -30,6 +30,7 @@ __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);
34
35
  __exportStar(require("./customers/"), exports);
35
36
  __exportStar(require("./general/"), exports);
@@ -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;