@arrowsphere/api-client 3.378.0-rc-cpe-1 → 3.378.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 +8 -0
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +9 -4
- package/build/catalog/types/catalogGraphQLTypes.d.ts +1 -0
- package/build/customers/customersClient.d.ts +1 -1
- package/build/customers/customersClient.js +1 -1
- package/build/monitoring/index.d.ts +0 -3
- package/build/monitoring/index.js +0 -3
- package/build/monitoring/monitoringClient.d.ts +1 -23
- package/build/monitoring/monitoringClient.js +0 -25
- package/package.json +1 -1
- package/build/monitoring/entities/alert/alert.d.ts +0 -69
- package/build/monitoring/entities/alert/alert.js +0 -112
- package/build/monitoring/entities/alert/createAlert.d.ts +0 -13
- package/build/monitoring/entities/alert/createAlert.js +0 -38
- package/build/monitoring/entities/alert/listAlert.d.ts +0 -9
- package/build/monitoring/entities/alert/listAlert.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.378.1] - 2026.06.23
|
|
7
|
+
### Updated
|
|
8
|
+
- [customer] fix GDAP relationship export payload
|
|
9
|
+
|
|
10
|
+
## [3.378.0] - 2026.06.22
|
|
11
|
+
### Added
|
|
12
|
+
- [catalog] Add `bundleBaseProducts` field to `ProductType` GraphQL type
|
|
13
|
+
|
|
6
14
|
## [3.377.0] - 2026.06.19
|
|
7
15
|
### Added
|
|
8
16
|
- [whoami] Add the preferredCurrency field to the whoami endpoint response
|
|
@@ -14,15 +14,20 @@ declare type MissingFieldsOfProductSchema = {
|
|
|
14
14
|
addonPrimaries?: IdentifiersSchema;
|
|
15
15
|
attributesParameters?: AttributesParametersSchema;
|
|
16
16
|
baseOfferPrimaries?: IdentifiersSchema;
|
|
17
|
-
bundleBillingRules?: BundleBillingRuleSchema;
|
|
18
|
-
bundledOfferPrimaries?: IdentifiersSchema;
|
|
19
17
|
conversionOfferPrimaries?: IdentifiersSchema;
|
|
20
18
|
defaultPriceBand?: PriceBandSchema;
|
|
21
19
|
relatedOffers?: RelatedOfferSchema;
|
|
22
|
-
priceBand?: PriceBandSchema;
|
|
23
20
|
promotions?: PromotionSchema;
|
|
24
21
|
};
|
|
25
|
-
export declare type
|
|
22
|
+
export declare type MissingFieldsOfBundleProductSchema = {
|
|
23
|
+
bundleBaseProducts?: ProductSchemaBundleItem;
|
|
24
|
+
bundleBillingRules?: BundleBillingRuleSchema;
|
|
25
|
+
bundledOfferPrimaries?: IdentifiersSchema;
|
|
26
|
+
};
|
|
27
|
+
export declare type ProductSchemaBundleItem = Merge<Schema<ProductType, boolean>, MissingFieldsOfProductSchema>;
|
|
28
|
+
export declare type ProductSchema = Merge<Schema<ProductType, boolean>, MissingFieldsOfProductSchema & MissingFieldsOfBundleProductSchema & {
|
|
29
|
+
priceBand?: PriceBandSchema;
|
|
30
|
+
}>;
|
|
26
31
|
declare type AttributeSchema = Schema<AttributeType, boolean>;
|
|
27
32
|
declare type PromotionPricesFullSchema = Merge<Schema<PromotionPricesFull, boolean>, {
|
|
28
33
|
attributes?: AttributeSchema;
|
|
@@ -96,6 +96,7 @@ export declare type ProductType = {
|
|
|
96
96
|
weightTopSales?: number;
|
|
97
97
|
xspUrl?: string;
|
|
98
98
|
isBundleOrderQuantityLinked?: boolean;
|
|
99
|
+
bundleBaseProducts?: Array<ProductType>;
|
|
99
100
|
};
|
|
100
101
|
export declare type IdentifiersType = {
|
|
101
102
|
arrowsphere?: ArrowsphereIdentifierType;
|
|
@@ -145,7 +145,7 @@ export declare type BulkActionInputType = {
|
|
|
145
145
|
[UploadAttachmentInputFields.COLUMN_FILE_ENCODED]: string;
|
|
146
146
|
};
|
|
147
147
|
export declare enum ExportGdapRelationshipInputFields {
|
|
148
|
-
COLUMN_CUSTOMERS_REF = "
|
|
148
|
+
COLUMN_CUSTOMERS_REF = "customerRefs"
|
|
149
149
|
}
|
|
150
150
|
export declare type PostExportGdapListType = {
|
|
151
151
|
[ExportGdapRelationshipInputFields.COLUMN_CUSTOMERS_REF]: string[];
|
|
@@ -69,7 +69,7 @@ var UploadAttachmentInputFields;
|
|
|
69
69
|
})(UploadAttachmentInputFields = exports.UploadAttachmentInputFields || (exports.UploadAttachmentInputFields = {}));
|
|
70
70
|
var ExportGdapRelationshipInputFields;
|
|
71
71
|
(function (ExportGdapRelationshipInputFields) {
|
|
72
|
-
ExportGdapRelationshipInputFields["COLUMN_CUSTOMERS_REF"] = "
|
|
72
|
+
ExportGdapRelationshipInputFields["COLUMN_CUSTOMERS_REF"] = "customerRefs";
|
|
73
73
|
})(ExportGdapRelationshipInputFields = exports.ExportGdapRelationshipInputFields || (exports.ExportGdapRelationshipInputFields = {}));
|
|
74
74
|
class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
75
75
|
constructor() {
|
|
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./monitoringClient"), exports);
|
|
18
|
-
__exportStar(require("./entities/alert/alert"), exports);
|
|
19
|
-
__exportStar(require("./entities/alert/createAlert"), exports);
|
|
20
|
-
__exportStar(require("./entities/alert/listAlert"), exports);
|
|
21
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { AbstractRestfulClient
|
|
2
|
-
import { Alert, AlertFields, AlertFilters, AlertFormatEnum, AlertFrequencyEnum } from './entities/alert/alert';
|
|
3
|
-
import { CreateAlert } from './entities/alert/createAlert';
|
|
4
|
-
import { GetResult } from '../getResult';
|
|
5
|
-
import { AlertList } from './entities/alert/listAlert';
|
|
1
|
+
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
6
2
|
export declare type ReportMonitoringType = {
|
|
7
3
|
body: {
|
|
8
4
|
[keys in string]: string | number | null;
|
|
@@ -11,15 +7,6 @@ export declare type ReportMonitoringType = {
|
|
|
11
7
|
userAgent: string;
|
|
12
8
|
type: string;
|
|
13
9
|
};
|
|
14
|
-
export declare type CreateAlertPayload = {
|
|
15
|
-
[AlertFields.COLUMN_CATEGORY_ID]: number;
|
|
16
|
-
[AlertFields.COLUMN_NAME]: string;
|
|
17
|
-
[AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
|
|
18
|
-
[AlertFields.COLUMN_RECIPIENT]: string;
|
|
19
|
-
[AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
|
|
20
|
-
[AlertFields.COLUMN_FILTERS]: AlertFilters;
|
|
21
|
-
};
|
|
22
|
-
export declare type UpdateAlertPayload = Partial<Omit<CreateAlertPayload, AlertFields.COLUMN_CATEGORY_ID>>;
|
|
23
10
|
export declare class MonitoringClient extends AbstractRestfulClient {
|
|
24
11
|
/**
|
|
25
12
|
* The base path of the API
|
|
@@ -29,14 +16,5 @@ export declare class MonitoringClient extends AbstractRestfulClient {
|
|
|
29
16
|
* The path of the report endpoint
|
|
30
17
|
*/
|
|
31
18
|
private REPORT_PATH;
|
|
32
|
-
/**
|
|
33
|
-
* The path of the alert endpoint
|
|
34
|
-
*/
|
|
35
|
-
private ALERT_PATH;
|
|
36
19
|
sendReport(report: ReportMonitoringType): Promise<void>;
|
|
37
|
-
createAlert(payload: CreateAlertPayload): Promise<GetResult<CreateAlert>>;
|
|
38
|
-
listAlerts(parameters?: Parameters): Promise<GetResult<AlertList>>;
|
|
39
|
-
getAlert(alertId: number): Promise<GetResult<Alert>>;
|
|
40
|
-
updateAlert(alertId: number, payload: UpdateAlertPayload): Promise<GetResult<Alert>>;
|
|
41
|
-
deleteAlert(alertId: number): Promise<void>;
|
|
42
20
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MonitoringClient = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
-
const alert_1 = require("./entities/alert/alert");
|
|
6
5
|
class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -14,35 +13,11 @@ class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
14
13
|
* The path of the report endpoint
|
|
15
14
|
*/
|
|
16
15
|
this.REPORT_PATH = '/report';
|
|
17
|
-
/**
|
|
18
|
-
* The path of the alert endpoint
|
|
19
|
-
*/
|
|
20
|
-
this.ALERT_PATH = '/alerts';
|
|
21
16
|
}
|
|
22
17
|
sendReport(report) {
|
|
23
18
|
this.path = this.REPORT_PATH;
|
|
24
19
|
return this.post(report);
|
|
25
20
|
}
|
|
26
|
-
createAlert(payload) {
|
|
27
|
-
this.path = this.ALERT_PATH;
|
|
28
|
-
return this.post(payload);
|
|
29
|
-
}
|
|
30
|
-
listAlerts(parameters = {}) {
|
|
31
|
-
this.path = this.ALERT_PATH;
|
|
32
|
-
return this.get(parameters);
|
|
33
|
-
}
|
|
34
|
-
getAlert(alertId) {
|
|
35
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
36
|
-
return this.get();
|
|
37
|
-
}
|
|
38
|
-
updateAlert(alertId, payload) {
|
|
39
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
40
|
-
return this.patch(payload);
|
|
41
|
-
}
|
|
42
|
-
deleteAlert(alertId) {
|
|
43
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
44
|
-
return this.delete();
|
|
45
|
-
}
|
|
46
21
|
}
|
|
47
22
|
exports.MonitoringClient = MonitoringClient;
|
|
48
23
|
//# sourceMappingURL=monitoringClient.js.map
|
package/package.json
CHANGED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum AlertFrequencyEnum {
|
|
3
|
-
DAILY = "Daily",
|
|
4
|
-
MONTHLY = "Monthly",
|
|
5
|
-
WEEKLY = "Weekly",
|
|
6
|
-
ONE_TIME = "One time"
|
|
7
|
-
}
|
|
8
|
-
export declare enum AlertFormatEnum {
|
|
9
|
-
CSV = "csv",
|
|
10
|
-
XLSX = "xlsx"
|
|
11
|
-
}
|
|
12
|
-
export declare enum RenewalAlertWhenEnum {
|
|
13
|
-
END_OF_MONTH = "End of the month",
|
|
14
|
-
IN_TWO_MONTH = "In 2 Months",
|
|
15
|
-
IN_A_YEAR = "In a Year",
|
|
16
|
-
EXPIRED = "Expired"
|
|
17
|
-
}
|
|
18
|
-
export declare enum AlertFields {
|
|
19
|
-
COLUMN_ID = "id",
|
|
20
|
-
COLUMN_CATEGORY_ID = "categoryId",
|
|
21
|
-
COLUMN_NAME = "name",
|
|
22
|
-
COLUMN_FREQUENCY = "frequency",
|
|
23
|
-
COLUMN_RECIPIENT = "recipient",
|
|
24
|
-
COLUMN_FORMAT = "format",
|
|
25
|
-
COLUMN_FILTERS = "filters"
|
|
26
|
-
}
|
|
27
|
-
export declare type AlertType = {
|
|
28
|
-
[AlertFields.COLUMN_ID]: number;
|
|
29
|
-
[AlertFields.COLUMN_CATEGORY_ID]: number;
|
|
30
|
-
[AlertFields.COLUMN_NAME]: string;
|
|
31
|
-
[AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
|
|
32
|
-
[AlertFields.COLUMN_RECIPIENT]: string;
|
|
33
|
-
[AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
|
|
34
|
-
[AlertFields.COLUMN_FILTERS]: AlertFilters;
|
|
35
|
-
};
|
|
36
|
-
export declare enum AlertFiltersFields {
|
|
37
|
-
COLUMN_RENEWAL = "renewal"
|
|
38
|
-
}
|
|
39
|
-
export declare type AlertFilters = {
|
|
40
|
-
[AlertFiltersFields.COLUMN_RENEWAL]: RenewalFilters;
|
|
41
|
-
};
|
|
42
|
-
export declare enum FiltersFields {
|
|
43
|
-
COLUMN_END_CUSTOMERS = "endCustomers",
|
|
44
|
-
COLUMN_VENDOR = "vendor",
|
|
45
|
-
COLUMN_WHEN = "when",
|
|
46
|
-
COLUMN_CLASSIFICATION = "classification",
|
|
47
|
-
COLUMN_ONLY_AUTO_RENEWAL = "onlyAutoRenewal",
|
|
48
|
-
COLUMN_ONLY_PRICE_CHANGE = "onlyPriceChange"
|
|
49
|
-
}
|
|
50
|
-
export declare type RenewalFilters = {
|
|
51
|
-
[FiltersFields.COLUMN_END_CUSTOMERS]?: string[];
|
|
52
|
-
[FiltersFields.COLUMN_VENDOR]?: string;
|
|
53
|
-
[FiltersFields.COLUMN_WHEN]?: RenewalAlertWhenEnum;
|
|
54
|
-
[FiltersFields.COLUMN_CLASSIFICATION]?: string;
|
|
55
|
-
[FiltersFields.COLUMN_ONLY_AUTO_RENEWAL]?: boolean;
|
|
56
|
-
[FiltersFields.COLUMN_ONLY_PRICE_CHANGE]?: boolean;
|
|
57
|
-
};
|
|
58
|
-
export declare class Alert extends AbstractEntity<AlertType> {
|
|
59
|
-
#private;
|
|
60
|
-
constructor(data: AlertType);
|
|
61
|
-
get id(): number;
|
|
62
|
-
get categoryId(): number;
|
|
63
|
-
get name(): string;
|
|
64
|
-
get frequency(): AlertFrequencyEnum;
|
|
65
|
-
get recipient(): string;
|
|
66
|
-
get format(): AlertFormatEnum;
|
|
67
|
-
get filters(): AlertFilters;
|
|
68
|
-
toJSON(): AlertType;
|
|
69
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _Alert_id, _Alert_categoryId, _Alert_name, _Alert_frequency, _Alert_recipient, _Alert_format, _Alert_filters;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.Alert = exports.FiltersFields = exports.AlertFiltersFields = exports.AlertFields = exports.RenewalAlertWhenEnum = exports.AlertFormatEnum = exports.AlertFrequencyEnum = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var AlertFrequencyEnum;
|
|
18
|
-
(function (AlertFrequencyEnum) {
|
|
19
|
-
AlertFrequencyEnum["DAILY"] = "Daily";
|
|
20
|
-
AlertFrequencyEnum["MONTHLY"] = "Monthly";
|
|
21
|
-
AlertFrequencyEnum["WEEKLY"] = "Weekly";
|
|
22
|
-
AlertFrequencyEnum["ONE_TIME"] = "One time";
|
|
23
|
-
})(AlertFrequencyEnum = exports.AlertFrequencyEnum || (exports.AlertFrequencyEnum = {}));
|
|
24
|
-
var AlertFormatEnum;
|
|
25
|
-
(function (AlertFormatEnum) {
|
|
26
|
-
AlertFormatEnum["CSV"] = "csv";
|
|
27
|
-
AlertFormatEnum["XLSX"] = "xlsx";
|
|
28
|
-
})(AlertFormatEnum = exports.AlertFormatEnum || (exports.AlertFormatEnum = {}));
|
|
29
|
-
var RenewalAlertWhenEnum;
|
|
30
|
-
(function (RenewalAlertWhenEnum) {
|
|
31
|
-
RenewalAlertWhenEnum["END_OF_MONTH"] = "End of the month";
|
|
32
|
-
RenewalAlertWhenEnum["IN_TWO_MONTH"] = "In 2 Months";
|
|
33
|
-
RenewalAlertWhenEnum["IN_A_YEAR"] = "In a Year";
|
|
34
|
-
RenewalAlertWhenEnum["EXPIRED"] = "Expired";
|
|
35
|
-
})(RenewalAlertWhenEnum = exports.RenewalAlertWhenEnum || (exports.RenewalAlertWhenEnum = {}));
|
|
36
|
-
var AlertFields;
|
|
37
|
-
(function (AlertFields) {
|
|
38
|
-
AlertFields["COLUMN_ID"] = "id";
|
|
39
|
-
AlertFields["COLUMN_CATEGORY_ID"] = "categoryId";
|
|
40
|
-
AlertFields["COLUMN_NAME"] = "name";
|
|
41
|
-
AlertFields["COLUMN_FREQUENCY"] = "frequency";
|
|
42
|
-
AlertFields["COLUMN_RECIPIENT"] = "recipient";
|
|
43
|
-
AlertFields["COLUMN_FORMAT"] = "format";
|
|
44
|
-
AlertFields["COLUMN_FILTERS"] = "filters";
|
|
45
|
-
})(AlertFields = exports.AlertFields || (exports.AlertFields = {}));
|
|
46
|
-
var AlertFiltersFields;
|
|
47
|
-
(function (AlertFiltersFields) {
|
|
48
|
-
AlertFiltersFields["COLUMN_RENEWAL"] = "renewal";
|
|
49
|
-
})(AlertFiltersFields = exports.AlertFiltersFields || (exports.AlertFiltersFields = {}));
|
|
50
|
-
var FiltersFields;
|
|
51
|
-
(function (FiltersFields) {
|
|
52
|
-
FiltersFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
|
|
53
|
-
FiltersFields["COLUMN_VENDOR"] = "vendor";
|
|
54
|
-
FiltersFields["COLUMN_WHEN"] = "when";
|
|
55
|
-
FiltersFields["COLUMN_CLASSIFICATION"] = "classification";
|
|
56
|
-
FiltersFields["COLUMN_ONLY_AUTO_RENEWAL"] = "onlyAutoRenewal";
|
|
57
|
-
FiltersFields["COLUMN_ONLY_PRICE_CHANGE"] = "onlyPriceChange";
|
|
58
|
-
})(FiltersFields = exports.FiltersFields || (exports.FiltersFields = {}));
|
|
59
|
-
class Alert extends abstractEntity_1.AbstractEntity {
|
|
60
|
-
constructor(data) {
|
|
61
|
-
super(data);
|
|
62
|
-
_Alert_id.set(this, void 0);
|
|
63
|
-
_Alert_categoryId.set(this, void 0);
|
|
64
|
-
_Alert_name.set(this, void 0);
|
|
65
|
-
_Alert_frequency.set(this, void 0);
|
|
66
|
-
_Alert_recipient.set(this, void 0);
|
|
67
|
-
_Alert_format.set(this, void 0);
|
|
68
|
-
_Alert_filters.set(this, void 0);
|
|
69
|
-
__classPrivateFieldSet(this, _Alert_id, data.id, "f");
|
|
70
|
-
__classPrivateFieldSet(this, _Alert_categoryId, data.categoryId, "f");
|
|
71
|
-
__classPrivateFieldSet(this, _Alert_name, data.name, "f");
|
|
72
|
-
__classPrivateFieldSet(this, _Alert_frequency, data.frequency, "f");
|
|
73
|
-
__classPrivateFieldSet(this, _Alert_recipient, data.recipient, "f");
|
|
74
|
-
__classPrivateFieldSet(this, _Alert_format, data.format, "f");
|
|
75
|
-
__classPrivateFieldSet(this, _Alert_filters, data.filters, "f");
|
|
76
|
-
}
|
|
77
|
-
get id() {
|
|
78
|
-
return __classPrivateFieldGet(this, _Alert_id, "f");
|
|
79
|
-
}
|
|
80
|
-
get categoryId() {
|
|
81
|
-
return __classPrivateFieldGet(this, _Alert_categoryId, "f");
|
|
82
|
-
}
|
|
83
|
-
get name() {
|
|
84
|
-
return __classPrivateFieldGet(this, _Alert_name, "f");
|
|
85
|
-
}
|
|
86
|
-
get frequency() {
|
|
87
|
-
return __classPrivateFieldGet(this, _Alert_frequency, "f");
|
|
88
|
-
}
|
|
89
|
-
get recipient() {
|
|
90
|
-
return __classPrivateFieldGet(this, _Alert_recipient, "f");
|
|
91
|
-
}
|
|
92
|
-
get format() {
|
|
93
|
-
return __classPrivateFieldGet(this, _Alert_format, "f");
|
|
94
|
-
}
|
|
95
|
-
get filters() {
|
|
96
|
-
return __classPrivateFieldGet(this, _Alert_filters, "f");
|
|
97
|
-
}
|
|
98
|
-
toJSON() {
|
|
99
|
-
return {
|
|
100
|
-
[AlertFields.COLUMN_ID]: this.id,
|
|
101
|
-
[AlertFields.COLUMN_CATEGORY_ID]: this.categoryId,
|
|
102
|
-
[AlertFields.COLUMN_NAME]: this.name,
|
|
103
|
-
[AlertFields.COLUMN_FREQUENCY]: this.frequency,
|
|
104
|
-
[AlertFields.COLUMN_RECIPIENT]: this.recipient,
|
|
105
|
-
[AlertFields.COLUMN_FORMAT]: this.format,
|
|
106
|
-
[AlertFields.COLUMN_FILTERS]: this.filters,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
exports.Alert = Alert;
|
|
111
|
-
_Alert_id = new WeakMap(), _Alert_categoryId = new WeakMap(), _Alert_name = new WeakMap(), _Alert_frequency = new WeakMap(), _Alert_recipient = new WeakMap(), _Alert_format = new WeakMap(), _Alert_filters = new WeakMap();
|
|
112
|
-
//# sourceMappingURL=alert.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum CreateAlertFields {
|
|
3
|
-
COLUMN_ALERT_ID = "alertId"
|
|
4
|
-
}
|
|
5
|
-
export declare type CreateAlertType = {
|
|
6
|
-
[CreateAlertFields.COLUMN_ALERT_ID]: number;
|
|
7
|
-
};
|
|
8
|
-
export declare class CreateAlert extends AbstractEntity<CreateAlertType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(data: CreateAlertType);
|
|
11
|
-
get alertId(): number;
|
|
12
|
-
toJSON(): CreateAlertType;
|
|
13
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _CreateAlert_alertId;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateAlert = exports.CreateAlertFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var CreateAlertFields;
|
|
18
|
-
(function (CreateAlertFields) {
|
|
19
|
-
CreateAlertFields["COLUMN_ALERT_ID"] = "alertId";
|
|
20
|
-
})(CreateAlertFields = exports.CreateAlertFields || (exports.CreateAlertFields = {}));
|
|
21
|
-
class CreateAlert extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(data) {
|
|
23
|
-
super(data);
|
|
24
|
-
_CreateAlert_alertId.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _CreateAlert_alertId, data.alertId, "f");
|
|
26
|
-
}
|
|
27
|
-
get alertId() {
|
|
28
|
-
return __classPrivateFieldGet(this, _CreateAlert_alertId, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[CreateAlertFields.COLUMN_ALERT_ID]: this.alertId,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.CreateAlert = CreateAlert;
|
|
37
|
-
_CreateAlert_alertId = new WeakMap();
|
|
38
|
-
//# sourceMappingURL=createAlert.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
import { Alert, AlertType } from './alert';
|
|
3
|
-
export declare type AlertListType = Array<AlertType>;
|
|
4
|
-
export declare class AlertList extends AbstractEntity<AlertListType> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(data: Array<AlertType>);
|
|
7
|
-
get alertList(): Array<Alert>;
|
|
8
|
-
toJSON(): AlertListType;
|
|
9
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _AlertList_alertList;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AlertList = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
const alert_1 = require("./alert");
|
|
18
|
-
class AlertList extends abstractEntity_1.AbstractEntity {
|
|
19
|
-
constructor(data) {
|
|
20
|
-
super(data);
|
|
21
|
-
_AlertList_alertList.set(this, void 0);
|
|
22
|
-
__classPrivateFieldSet(this, _AlertList_alertList, data.map((alert) => new alert_1.Alert(alert)), "f");
|
|
23
|
-
}
|
|
24
|
-
get alertList() {
|
|
25
|
-
return __classPrivateFieldGet(this, _AlertList_alertList, "f");
|
|
26
|
-
}
|
|
27
|
-
toJSON() {
|
|
28
|
-
return this.alertList.map((alert) => alert.toJSON());
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.AlertList = AlertList;
|
|
32
|
-
_AlertList_alertList = new WeakMap();
|
|
33
|
-
//# sourceMappingURL=listAlert.js.map
|