@arrowsphere/api-client 3.100.0-rc.bdj.2 → 3.100.0-rc.bdj.3
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.
|
@@ -21,6 +21,6 @@ export declare class ConsumptionClient extends AbstractRestfulClient {
|
|
|
21
21
|
getDailyConsumption(licenseReference: string, parameters: Parameters): Promise<GetResult<Consumption>>;
|
|
22
22
|
getBIConsumption(parameters: Parameters): Promise<GetResult<ConsumptionBI>>;
|
|
23
23
|
consumptionDownloadRequest(payload: ConsumptionDownloadRequestPayload): Promise<ConsumptionDownloadRequest>;
|
|
24
|
-
updateBudgetSettings(licenseReference: string, payload: ConsumptionBudgetType, parameters?: Parameters): Promise<
|
|
24
|
+
updateBudgetSettings(licenseReference: string, payload: ConsumptionBudgetType, parameters?: Parameters): Promise<undefined | ConsumptionBudget>;
|
|
25
25
|
getBudgetSettings(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionBudget>>;
|
|
26
26
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum BudgetTypeEnum {
|
|
3
|
+
CONSUMED = "CONSUMED"
|
|
4
|
+
}
|
|
2
5
|
export declare enum ConsumptionBudgetFields {
|
|
3
6
|
COLUMN_BUDGET_TYPE = "budgetType",
|
|
4
7
|
COLUMN_NOTIFICATIONS = "notifications",
|
|
@@ -6,17 +9,17 @@ export declare enum ConsumptionBudgetFields {
|
|
|
6
9
|
COLUMN_THRESHOLD = "threshold"
|
|
7
10
|
}
|
|
8
11
|
export declare type ConsumptionBudgetType = {
|
|
9
|
-
[ConsumptionBudgetFields.COLUMN_BUDGET_TYPE]
|
|
12
|
+
[ConsumptionBudgetFields.COLUMN_BUDGET_TYPE]?: string;
|
|
10
13
|
[ConsumptionBudgetFields.COLUMN_NOTIFICATIONS]?: number[];
|
|
11
|
-
[ConsumptionBudgetFields.COLUMN_SEND_NOTIFICATION]
|
|
12
|
-
[ConsumptionBudgetFields.COLUMN_THRESHOLD]
|
|
14
|
+
[ConsumptionBudgetFields.COLUMN_SEND_NOTIFICATION]?: boolean;
|
|
15
|
+
[ConsumptionBudgetFields.COLUMN_THRESHOLD]?: number;
|
|
13
16
|
};
|
|
14
17
|
export declare class ConsumptionBudget extends AbstractEntity<ConsumptionBudgetType> {
|
|
15
18
|
#private;
|
|
16
19
|
constructor(consumptionBudgetResponse: ConsumptionBudgetType);
|
|
17
|
-
get budgetType(): string;
|
|
18
|
-
get threshold(): number;
|
|
19
|
-
get sendNotification(): boolean;
|
|
20
|
+
get budgetType(): string | undefined;
|
|
21
|
+
get threshold(): number | undefined;
|
|
22
|
+
get sendNotification(): boolean | undefined;
|
|
20
23
|
get notifications(): number[] | undefined;
|
|
21
24
|
toJSON(): ConsumptionBudgetType;
|
|
22
25
|
}
|
|
@@ -12,8 +12,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
};
|
|
13
13
|
var _ConsumptionBudget_budgetType, _ConsumptionBudget_notifications, _ConsumptionBudget_sendNotification, _ConsumptionBudget_threshold;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ConsumptionBudget = exports.ConsumptionBudgetFields = void 0;
|
|
15
|
+
exports.ConsumptionBudget = exports.ConsumptionBudgetFields = exports.BudgetTypeEnum = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var BudgetTypeEnum;
|
|
18
|
+
(function (BudgetTypeEnum) {
|
|
19
|
+
BudgetTypeEnum["CONSUMED"] = "CONSUMED";
|
|
20
|
+
})(BudgetTypeEnum = exports.BudgetTypeEnum || (exports.BudgetTypeEnum = {}));
|
|
17
21
|
var ConsumptionBudgetFields;
|
|
18
22
|
(function (ConsumptionBudgetFields) {
|
|
19
23
|
ConsumptionBudgetFields["COLUMN_BUDGET_TYPE"] = "budgetType";
|
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.100.0-rc.bdj.
|
|
7
|
+
"version": "3.100.0-rc.bdj.3",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|