@arrowsphere/api-client 3.28.0-rc.fdi.1 → 3.29.0-rc.bdj.2
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 +2 -4
- package/README.md +12 -0
- package/build/AbstractHttpClient.d.ts +47 -0
- package/build/AbstractHttpClient.js +80 -0
- package/build/abstractClient.d.ts +3 -24
- package/build/abstractClient.js +9 -33
- package/build/abstractEntity.js +14 -16
- package/build/abstractGraphQLClient.d.ts +4 -14
- package/build/abstractGraphQLClient.js +32 -24
- package/build/axiosSingleton.js +2 -2
- package/build/campaign/entities/campaign/banners/banners.js +32 -34
- package/build/campaign/entities/campaign/campaign.js +51 -53
- package/build/campaign/entities/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/campaign/landingPage/landingPageBody.js +35 -37
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +29 -31
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +23 -25
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +29 -31
- package/build/campaign/entities/campaign/rules/rules.js +29 -31
- package/build/campaign/entities/campaignAssets/assets/assets.js +17 -19
- package/build/campaign/entities/campaignAssets/campaignAssets.js +14 -16
- package/build/campaign/entities/v2/campaign/banner/banner.js +32 -34
- package/build/campaign/entities/v2/campaign/campaign.js +48 -50
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +34 -36
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +20 -22
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +32 -34
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +32 -34
- package/build/campaign/entities/v2/campaignList.js +14 -16
- package/build/campaign/index.d.ts +0 -1
- package/build/campaign/index.js +5 -2
- package/build/cart/entities/index.js +5 -1
- package/build/cart/entities/item.js +26 -28
- package/build/cart/entities/itemList.js +14 -16
- package/build/cart/index.js +5 -1
- package/build/catalog/catalogClient.d.ts +12 -0
- package/build/catalog/catalogClient.js +26 -0
- package/build/catalog/catalogGraphQLClient.d.ts +2 -0
- package/build/catalog/catalogGraphQLClient.js +14 -1
- package/build/catalog/entities/program.d.ts +66 -0
- package/build/catalog/entities/program.js +100 -0
- package/build/catalog/entities/programs.d.ts +9 -0
- package/build/catalog/entities/programs.js +33 -0
- package/build/catalog/index.d.ts +5 -0
- package/build/catalog/index.js +10 -1
- package/build/catalog/types/catalogGraphQLQueries.d.ts +12 -0
- package/build/catalog/types/catalogGraphQLQueries.js +3 -0
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +30 -0
- package/build/catalog/types/catalogGraphQLSchemas.js +4 -0
- package/build/catalog/types/catalogGraphQLTypes.d.ts +2 -2
- package/build/catalog/types/catalogGraphQLTypes.js +1 -0
- package/build/catalog/types/queryArguments.d.ts +41 -0
- package/build/catalog/types/queryArguments.js +10 -0
- package/build/consumption/entities/bi/consumptionBI.js +28 -30
- package/build/consumption/entities/bi/period/period.js +17 -19
- package/build/consumption/entities/bi/top/top.js +23 -25
- package/build/consumption/entities/consumption/consumption.js +17 -19
- package/build/consumption/index.js +5 -1
- package/build/contact/entities/contact.js +44 -46
- package/build/contact/entities/contactCreate.js +14 -16
- package/build/contact/entities/contactList.js +14 -16
- package/build/contact/index.js +5 -1
- package/build/customers/entities/customers/contact/contact.js +29 -31
- package/build/customers/entities/customers/customer.js +71 -73
- package/build/customers/entities/customers/customerContact/customerContact.js +38 -40
- package/build/customers/entities/customers/customerContact/customerContactList.js +14 -16
- package/build/customers/entities/customers/details/details.js +29 -31
- package/build/customers/entities/dataCustomers.js +14 -16
- package/build/customers/entities/dataInvitation.js +29 -31
- package/build/customers/entities/invitations/company/company.js +14 -16
- package/build/customers/entities/invitations/contact/invitationContact.js +26 -28
- package/build/customers/index.js +5 -1
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.d.ts +3 -0
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.js +3 -0
- package/build/exception/exception-handlers/Hooks.d.ts +3 -0
- package/build/exception/exception-handlers/Hooks.js +3 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.d.ts +10 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.js +3 -0
- package/build/exception/exception-handlers/index.d.ts +3 -0
- package/build/{notifications → exception/exception-handlers}/index.js +8 -6
- package/build/exception/index.js +5 -1
- package/build/exception/publicApiClientException.d.ts +2 -1
- package/build/exception/publicApiClientException.js +2 -1
- package/build/general/entities/whoAmI.js +59 -61
- package/build/general/index.js +5 -1
- package/build/getResult.js +21 -23
- package/build/index.d.ts +1 -1
- package/build/index.js +6 -2
- package/build/licenses/entities/filterFindResult.js +17 -19
- package/build/licenses/entities/findResult.d.ts +1 -1
- package/build/licenses/entities/findResult.js +37 -39
- package/build/licenses/entities/getLicense/actionMessagesGetResult.js +26 -28
- package/build/licenses/entities/getLicense/actionsGetResult.js +41 -43
- package/build/licenses/entities/getLicense/buySellFindResult.js +17 -19
- package/build/licenses/entities/getLicense/licenseGetResult.js +105 -107
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +20 -22
- package/build/licenses/entities/getLicense/orderGetResult.js +17 -19
- package/build/licenses/entities/getResult/getLicenseResult.js +14 -16
- package/build/licenses/entities/history/actionHistoryResult.js +23 -25
- package/build/licenses/entities/history/licenceHistoryResult.js +14 -16
- package/build/licenses/entities/license/activeSeatsFindResult.js +17 -19
- package/build/licenses/entities/license/configFindResult.js +20 -22
- package/build/licenses/entities/license/licenseFindResult.js +134 -136
- package/build/licenses/entities/license/priceFindResult.js +26 -28
- package/build/licenses/entities/license/warningFindResult.js +17 -19
- package/build/licenses/entities/offer/actionFlagsFindResult.js +20 -22
- package/build/licenses/entities/offer/offerFindResult.js +32 -34
- package/build/licenses/entities/offer/priceBandFindResult.js +35 -37
- package/build/licenses/entities/offer/priceband/billingFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +26 -28
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +17 -19
- package/build/licenses/index.js +5 -1
- package/build/orders/entities/dataListOrders.js +14 -16
- package/build/orders/entities/orders/order.js +39 -41
- package/build/orders/entities/orders/partner/partner.js +17 -19
- package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +14 -16
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +14 -16
- package/build/orders/entities/orders/products/prices/productPrices.js +32 -34
- package/build/orders/entities/orders/products/products.js +56 -58
- package/build/orders/entities/orders/products/program/productProgram.js +14 -16
- package/build/orders/entities/referenceLink.js +17 -19
- package/build/orders/index.js +5 -1
- package/build/pagination.js +29 -31
- package/build/publicApiClient.d.ts +2 -2
- package/build/publicApiClient.js +4 -4
- package/build/security/index.js +5 -1
- package/build/security/register/entity/registrationLink.js +14 -16
- package/build/security/register/index.js +5 -1
- package/build/security/standards/entities/checks/checks.js +17 -19
- package/build/security/standards/entities/checks/securityChecks.js +38 -40
- package/build/security/standards/entities/resources/resources.js +26 -28
- package/build/security/standards/entities/resources/securityResources.js +17 -19
- package/build/security/standards/entities/standards/securityStandards.js +29 -31
- package/build/security/standards/entities/standards/standards.js +17 -19
- package/build/security/standards/index.js +5 -1
- package/build/securityScore/entities/getCustomerAccountData.d.ts +48 -0
- package/build/securityScore/entities/getCustomerAccountData.js +111 -0
- package/build/securityScore/entities/getCustomerData.d.ts +51 -0
- package/build/securityScore/entities/getCustomerData.js +117 -0
- package/build/securityScore/entities/getPartnerData.d.ts +45 -0
- package/build/securityScore/entities/getPartnerData.js +102 -0
- package/build/securityScore/index.d.ts +7 -0
- package/build/securityScore/index.js +24 -0
- package/build/securityScore/securityScoreGraphQLClient.d.ts +19 -0
- package/build/securityScore/securityScoreGraphQLClient.js +61 -0
- package/build/securityScore/types/queryArguments.d.ts +108 -0
- package/build/securityScore/types/queryArguments.js +93 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +62 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.js +7 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +78 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.js +3 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +190 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.js +3 -0
- package/build/shared/index.js +5 -1
- package/build/subscriptions/entities/subscription.js +56 -58
- package/build/subscriptions/entities/subscriptionsListResult.js +39 -41
- package/build/subscriptions/index.js +5 -1
- package/build/supportCenter/entities/issue/attachment.js +27 -29
- package/build/supportCenter/entities/issue/comment.js +29 -31
- package/build/supportCenter/entities/issue/issue.js +106 -108
- package/build/supportCenter/entities/topic.js +30 -32
- package/build/supportCenter/index.js +5 -1
- package/package.json +5 -3
- package/build/notifications/entities/details/notificationDetails.d.ts +0 -31
- package/build/notifications/entities/details/notificationDetails.js +0 -82
- package/build/notifications/entities/notification.d.ts +0 -14
- package/build/notifications/entities/notification.js +0 -41
- package/build/notifications/entities/notifications.d.ts +0 -14
- package/build/notifications/entities/notifications.js +0 -41
- package/build/notifications/entities/total.d.ts +0 -13
- package/build/notifications/entities/total.js +0 -40
- package/build/notifications/index.d.ts +0 -5
- package/build/notifications/notificationsClient.d.ts +0 -39
- package/build/notifications/notificationsClient.js +0 -60
|
@@ -1,41 +0,0 @@
|
|
|
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 _notification;
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Notification = exports.NotificationFields = void 0;
|
|
18
|
-
const notificationDetails_1 = require("./details/notificationDetails");
|
|
19
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
20
|
-
var NotificationFields;
|
|
21
|
-
(function (NotificationFields) {
|
|
22
|
-
NotificationFields["COLUMN_NOTIFICATION"] = "notification";
|
|
23
|
-
})(NotificationFields = exports.NotificationFields || (exports.NotificationFields = {}));
|
|
24
|
-
class Notification extends abstractEntity_1.AbstractEntity {
|
|
25
|
-
constructor(notification) {
|
|
26
|
-
super(notification);
|
|
27
|
-
_notification.set(this, void 0);
|
|
28
|
-
__classPrivateFieldSet(this, _notification, new notificationDetails_1.NotificationDetails(notification[NotificationFields.COLUMN_NOTIFICATION]));
|
|
29
|
-
}
|
|
30
|
-
get notification() {
|
|
31
|
-
return __classPrivateFieldGet(this, _notification);
|
|
32
|
-
}
|
|
33
|
-
toJSON() {
|
|
34
|
-
return {
|
|
35
|
-
[NotificationFields.COLUMN_NOTIFICATION]: this.notification.toJSON(),
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Notification = Notification;
|
|
40
|
-
_notification = new WeakMap();
|
|
41
|
-
//# sourceMappingURL=notification.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NotificationDetails, NotificationDetailsType } from './details/notificationDetails';
|
|
2
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
3
|
-
export declare enum NotificationsFields {
|
|
4
|
-
COLUMN_NOTIFICATIONS = "notifications"
|
|
5
|
-
}
|
|
6
|
-
export declare type NotificationsType = {
|
|
7
|
-
[NotificationsFields.COLUMN_NOTIFICATIONS]: NotificationDetailsType[];
|
|
8
|
-
};
|
|
9
|
-
export declare class Notifications extends AbstractEntity<NotificationsType> {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(notification: NotificationsType);
|
|
12
|
-
get notifications(): NotificationDetails[];
|
|
13
|
-
toJSON(): NotificationsType;
|
|
14
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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 _notifications;
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Notifications = exports.NotificationsFields = void 0;
|
|
18
|
-
const notificationDetails_1 = require("./details/notificationDetails");
|
|
19
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
20
|
-
var NotificationsFields;
|
|
21
|
-
(function (NotificationsFields) {
|
|
22
|
-
NotificationsFields["COLUMN_NOTIFICATIONS"] = "notifications";
|
|
23
|
-
})(NotificationsFields = exports.NotificationsFields || (exports.NotificationsFields = {}));
|
|
24
|
-
class Notifications extends abstractEntity_1.AbstractEntity {
|
|
25
|
-
constructor(notification) {
|
|
26
|
-
super(notification);
|
|
27
|
-
_notifications.set(this, void 0);
|
|
28
|
-
__classPrivateFieldSet(this, _notifications, notification[NotificationsFields.COLUMN_NOTIFICATIONS].map((notification) => new notificationDetails_1.NotificationDetails(notification)));
|
|
29
|
-
}
|
|
30
|
-
get notifications() {
|
|
31
|
-
return __classPrivateFieldGet(this, _notifications);
|
|
32
|
-
}
|
|
33
|
-
toJSON() {
|
|
34
|
-
return {
|
|
35
|
-
[NotificationsFields.COLUMN_NOTIFICATIONS]: this.notifications.map((notification) => notification.toJSON()),
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Notifications = Notifications;
|
|
40
|
-
_notifications = new WeakMap();
|
|
41
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
export declare enum TotalFields {
|
|
3
|
-
COLUMN_TOTAL = "total"
|
|
4
|
-
}
|
|
5
|
-
export declare type TotalType = {
|
|
6
|
-
[TotalFields.COLUMN_TOTAL]: number;
|
|
7
|
-
};
|
|
8
|
-
export declare class Total extends AbstractEntity<TotalType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(total: TotalType);
|
|
11
|
-
get total(): number;
|
|
12
|
-
toJSON(): TotalType;
|
|
13
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 _total;
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Total = exports.TotalFields = void 0;
|
|
18
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
|
-
var TotalFields;
|
|
20
|
-
(function (TotalFields) {
|
|
21
|
-
TotalFields["COLUMN_TOTAL"] = "total";
|
|
22
|
-
})(TotalFields = exports.TotalFields || (exports.TotalFields = {}));
|
|
23
|
-
class Total extends abstractEntity_1.AbstractEntity {
|
|
24
|
-
constructor(total) {
|
|
25
|
-
super(total);
|
|
26
|
-
_total.set(this, void 0);
|
|
27
|
-
__classPrivateFieldSet(this, _total, total[TotalFields.COLUMN_TOTAL]);
|
|
28
|
-
}
|
|
29
|
-
get total() {
|
|
30
|
-
return __classPrivateFieldGet(this, _total);
|
|
31
|
-
}
|
|
32
|
-
toJSON() {
|
|
33
|
-
return {
|
|
34
|
-
[TotalFields.COLUMN_TOTAL]: this.total,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.Total = Total;
|
|
39
|
-
_total = new WeakMap();
|
|
40
|
-
//# sourceMappingURL=total.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AbstractClient, Parameters, ParametersWithPaginationType, Payload } from '../abstractClient';
|
|
2
|
-
import { GetResult } from '../getResult';
|
|
3
|
-
import { Notifications } from './entities/notifications';
|
|
4
|
-
import { Notification } from './entities/notification';
|
|
5
|
-
import { Total } from './entities/total';
|
|
6
|
-
export declare enum ListParametersFields {
|
|
7
|
-
COLUMN_CREATED = "created",
|
|
8
|
-
COLUMN_HAS_BEEN_READ = "hasBeenRead",
|
|
9
|
-
COLUMN_SEARCH_AFTER = "searchAfter"
|
|
10
|
-
}
|
|
11
|
-
export declare type ListParametersType = ParametersWithPaginationType & {
|
|
12
|
-
[ListParametersFields.COLUMN_CREATED]?: string;
|
|
13
|
-
[ListParametersFields.COLUMN_HAS_BEEN_READ]?: string;
|
|
14
|
-
[ListParametersFields.COLUMN_SEARCH_AFTER]?: string;
|
|
15
|
-
};
|
|
16
|
-
export declare enum CreatePayloadFields {
|
|
17
|
-
COLUMN_USERNAME = "username",
|
|
18
|
-
COLUMN_SUBJECT = "subject",
|
|
19
|
-
COLUMN_CONTENT = "content"
|
|
20
|
-
}
|
|
21
|
-
export declare type CreatePayloadType = {
|
|
22
|
-
[CreatePayloadFields.COLUMN_USERNAME]: string;
|
|
23
|
-
[CreatePayloadFields.COLUMN_SUBJECT]: string;
|
|
24
|
-
[CreatePayloadFields.COLUMN_CONTENT]: string;
|
|
25
|
-
};
|
|
26
|
-
export declare class NotificationsClient extends AbstractClient {
|
|
27
|
-
/**
|
|
28
|
-
* The base path of the API
|
|
29
|
-
*/
|
|
30
|
-
protected basePath: string;
|
|
31
|
-
list(parameters?: ListParametersType): Promise<GetResult<Notifications>>;
|
|
32
|
-
create(payload: CreatePayloadType, parameters?: Parameters): Promise<GetResult<Notification>>;
|
|
33
|
-
deleteAll(parameters?: Parameters): Promise<void>;
|
|
34
|
-
getNotification(notificationId: string, parameters?: Parameters): Promise<GetResult<Notification>>;
|
|
35
|
-
deleteNotification(notificationId: string, parameters?: Parameters): Promise<void>;
|
|
36
|
-
readAll(payload?: Payload, parameters?: Parameters): Promise<void>;
|
|
37
|
-
read(notificationId: string, payload?: Payload, parameters?: Parameters): Promise<void>;
|
|
38
|
-
count(parameters?: Parameters): Promise<GetResult<Total>>;
|
|
39
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationsClient = exports.CreatePayloadFields = exports.ListParametersFields = void 0;
|
|
4
|
-
const abstractClient_1 = require("../abstractClient");
|
|
5
|
-
const getResult_1 = require("../getResult");
|
|
6
|
-
const notifications_1 = require("./entities/notifications");
|
|
7
|
-
const notification_1 = require("./entities/notification");
|
|
8
|
-
const total_1 = require("./entities/total");
|
|
9
|
-
var ListParametersFields;
|
|
10
|
-
(function (ListParametersFields) {
|
|
11
|
-
ListParametersFields["COLUMN_CREATED"] = "created";
|
|
12
|
-
ListParametersFields["COLUMN_HAS_BEEN_READ"] = "hasBeenRead";
|
|
13
|
-
ListParametersFields["COLUMN_SEARCH_AFTER"] = "searchAfter";
|
|
14
|
-
})(ListParametersFields = exports.ListParametersFields || (exports.ListParametersFields = {}));
|
|
15
|
-
var CreatePayloadFields;
|
|
16
|
-
(function (CreatePayloadFields) {
|
|
17
|
-
CreatePayloadFields["COLUMN_USERNAME"] = "username";
|
|
18
|
-
CreatePayloadFields["COLUMN_SUBJECT"] = "subject";
|
|
19
|
-
CreatePayloadFields["COLUMN_CONTENT"] = "content";
|
|
20
|
-
})(CreatePayloadFields = exports.CreatePayloadFields || (exports.CreatePayloadFields = {}));
|
|
21
|
-
class NotificationsClient extends abstractClient_1.AbstractClient {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
/**
|
|
25
|
-
* The base path of the API
|
|
26
|
-
*/
|
|
27
|
-
this.basePath = '/notification';
|
|
28
|
-
}
|
|
29
|
-
async list(parameters = {}) {
|
|
30
|
-
return new getResult_1.GetResult(notifications_1.Notifications, await this.get(parameters));
|
|
31
|
-
}
|
|
32
|
-
async create(payload, parameters = {}) {
|
|
33
|
-
return new getResult_1.GetResult(notification_1.Notification, await this.post(payload, parameters));
|
|
34
|
-
}
|
|
35
|
-
async deleteAll(parameters = {}) {
|
|
36
|
-
return await this.delete(parameters);
|
|
37
|
-
}
|
|
38
|
-
async getNotification(notificationId, parameters = {}) {
|
|
39
|
-
this.path = `${notificationId}`;
|
|
40
|
-
return new getResult_1.GetResult(notification_1.Notification, await this.get(parameters));
|
|
41
|
-
}
|
|
42
|
-
async deleteNotification(notificationId, parameters = {}) {
|
|
43
|
-
this.path = `${notificationId}`;
|
|
44
|
-
return await this.delete(parameters);
|
|
45
|
-
}
|
|
46
|
-
async readAll(payload = {}, parameters = {}) {
|
|
47
|
-
this.path = '/read';
|
|
48
|
-
return await this.patch(payload, parameters);
|
|
49
|
-
}
|
|
50
|
-
async read(notificationId, payload = {}, parameters = {}) {
|
|
51
|
-
this.path = `/${notificationId}/read`;
|
|
52
|
-
return await this.patch(payload, parameters);
|
|
53
|
-
}
|
|
54
|
-
async count(parameters = {}) {
|
|
55
|
-
this.path = '/count';
|
|
56
|
-
return new getResult_1.GetResult(total_1.Total, await this.get(parameters));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.NotificationsClient = NotificationsClient;
|
|
60
|
-
//# sourceMappingURL=notificationsClient.js.map
|