namirasoft-cost 1.4.39 → 1.4.41
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/.ns-sdkg-dir-deep +3 -3
- package/.ns-sdkg-file-keep +27 -27
- package/dist/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServerCost.d.ts +3 -0
- package/dist/NamirasoftCostServerCost.js +8 -0
- package/dist/NamirasoftCostServerCost.js.map +1 -1
- package/dist/command/CostCommand.js +2 -0
- package/dist/command/CostCommand.js.map +1 -1
- package/dist/command/CostGroupedCommand.d.ts +5 -0
- package/dist/command/CostGroupedCommand.js +38 -0
- package/dist/command/CostGroupedCommand.js.map +1 -0
- package/dist/enum/GranularityType.d.ts +6 -0
- package/dist/enum/GranularityType.js +11 -0
- package/dist/enum/GranularityType.js.map +1 -0
- package/dist/enum/GroupByType.d.ts +10 -0
- package/dist/enum/GroupByType.js +15 -0
- package/dist/enum/GroupByType.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/type/Bonus.d.ts +0 -2
- package/dist/type/Bonus.js.map +1 -1
- package/package.json +28 -28
- package/src/NamirasoftCostServer.ts +59 -59
- package/src/NamirasoftCostServerBase.ts +29 -29
- package/src/NamirasoftCostServerBillWatchAWS.ts +47 -47
- package/src/NamirasoftCostServerBillWatchAzure.ts +47 -47
- package/src/NamirasoftCostServerBillWatchGCP.ts +47 -47
- package/src/NamirasoftCostServerCost.ts +50 -41
- package/src/NamirasoftCostServerFieldCategory.ts +47 -47
- package/src/NamirasoftCostServerFieldField.ts +47 -47
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerMetrics.ts +35 -35
- package/src/NamirasoftCostServerSecretSecret.ts +61 -61
- package/src/NamirasoftCostServerValue.ts +36 -36
- package/src/bonus/BaseBonus.ts +13 -13
- package/src/bonus/DeactiveBonus.ts +14 -14
- package/src/bonus/FreeCountBonus.ts +14 -14
- package/src/bonus/FreeTotalValueBonus.ts +28 -28
- package/src/bonus/FreeValueBonus.ts +24 -24
- package/src/bonus/LowAmountBonus.ts +14 -14
- package/src/bonus/LowSecondsBonus.ts +14 -14
- package/src/bonus/LowTotalValueBonus.ts +14 -14
- package/src/bonus/LowValueBonus.ts +14 -14
- package/src/bonus/TrialBonus.ts +18 -18
- package/src/command/BillWatchAWSCommand.ts +33 -33
- package/src/command/BillWatchAWSEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchAWS_CreateForRecordCommand.ts +118 -118
- package/src/command/BillWatchAzureCommand.ts +33 -33
- package/src/command/BillWatchAzureEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchAzure_CreateForRecordCommand.ts +118 -118
- package/src/command/BillWatchGCPCommand.ts +33 -33
- package/src/command/BillWatchGCPEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchGCP_CreateForRecordCommand.ts +118 -118
- package/src/command/CostCommand.ts +33 -31
- package/src/command/CostGroupedCommand.ts +45 -0
- package/src/command/CostListCommand.ts +44 -44
- package/src/command/FieldCategoryCommand.ts +33 -33
- package/src/command/FieldCategoryEstimateRecordCommand.ts +109 -109
- package/src/command/FieldCategory_CreateForRecordCommand.ts +118 -118
- package/src/command/FieldFieldCommand.ts +33 -33
- package/src/command/FieldFieldEstimateRecordCommand.ts +109 -109
- package/src/command/FieldField_CreateForRecordCommand.ts +118 -118
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/MetricsCommand.ts +31 -31
- package/src/command/MetricsGetCommand.ts +44 -44
- package/src/command/SecretSecretCommand.ts +37 -37
- package/src/command/SecretSecretEstimateReadCommand.ts +109 -109
- package/src/command/SecretSecretEstimateRecordCommand.ts +109 -109
- package/src/command/SecretSecret_CreateForReadCommand.ts +118 -118
- package/src/command/SecretSecret_CreateForRecordCommand.ts +118 -118
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +50 -50
- package/src/enum/GranularityType.ts +27 -0
- package/src/enum/GroupByType.ts +31 -0
- package/src/index.ts +93 -90
- package/src/meta/CostMetaTable.ts +81 -81
- package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
- package/src/row/CostRow.ts +40 -40
- package/src/type/Bonus.ts +18 -20
- package/src/type/CalculationOption.ts +33 -33
- package/src/type/Estimation.ts +34 -34
- package/src/type/EstimationOption.ts +31 -31
- package/src/type/EstimationUsage.ts +22 -22
- package/src/type/Period.ts +108 -108
- package/src/type/SimulationOption.ts +29 -29
- package/src/type/Usage.ts +24 -24
package/.ns-sdkg-dir-deep
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/src
|
|
2
|
-
/src/bonus
|
|
3
|
-
/src/estimator
|
|
1
|
+
/src
|
|
2
|
+
/src/bonus
|
|
3
|
+
/src/estimator
|
|
4
4
|
/src/type
|
package/.ns-sdkg-file-keep
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
src/bonus/BaseBonus.ts
|
|
2
|
-
src/bonus/DeactiveBonus.ts
|
|
3
|
-
src/bonus/FreeCountBonus.ts
|
|
4
|
-
src/bonus/FreeTotalValueBonus.ts
|
|
5
|
-
src/bonus/FreeValueBonus.ts
|
|
6
|
-
src/bonus/LowAmountBonus.ts
|
|
7
|
-
src/bonus/LowSecondsBonus.ts
|
|
8
|
-
src/bonus/LowTotalValueBonus.ts
|
|
9
|
-
src/bonus/LowValueBonus.ts
|
|
10
|
-
src/bonus/TrialBonus.ts
|
|
11
|
-
src/estimator/BaseEstimator.ts
|
|
12
|
-
src/estimator/BillWatchAWSRecordEstimator.ts
|
|
13
|
-
src/estimator/BillWatchAzureRecordEstimator.ts
|
|
14
|
-
src/estimator/BillWatchBaseRecordEstimator.ts
|
|
15
|
-
src/estimator/BillWatchGCPRecordEstimator.ts
|
|
16
|
-
src/estimator/FieldBaseRecordEstimator.ts
|
|
17
|
-
src/estimator/FieldCategoryRecordEstimator.ts
|
|
18
|
-
src/estimator/FieldFieldRecordEstimator.ts
|
|
19
|
-
src/estimator/SecretSecretRecordEstimator.ts
|
|
20
|
-
src/estimator/SecretSecretReadEstimator.ts
|
|
21
|
-
src/type/Bonus.ts
|
|
22
|
-
src/type/CalculationOption.ts
|
|
23
|
-
src/type/Estimation.ts
|
|
24
|
-
src/type/EstimationOption.ts
|
|
25
|
-
src/type/EstimationUsage.ts
|
|
26
|
-
src/type/Period.ts
|
|
27
|
-
src/type/SimulationOption.ts
|
|
1
|
+
src/bonus/BaseBonus.ts
|
|
2
|
+
src/bonus/DeactiveBonus.ts
|
|
3
|
+
src/bonus/FreeCountBonus.ts
|
|
4
|
+
src/bonus/FreeTotalValueBonus.ts
|
|
5
|
+
src/bonus/FreeValueBonus.ts
|
|
6
|
+
src/bonus/LowAmountBonus.ts
|
|
7
|
+
src/bonus/LowSecondsBonus.ts
|
|
8
|
+
src/bonus/LowTotalValueBonus.ts
|
|
9
|
+
src/bonus/LowValueBonus.ts
|
|
10
|
+
src/bonus/TrialBonus.ts
|
|
11
|
+
src/estimator/BaseEstimator.ts
|
|
12
|
+
src/estimator/BillWatchAWSRecordEstimator.ts
|
|
13
|
+
src/estimator/BillWatchAzureRecordEstimator.ts
|
|
14
|
+
src/estimator/BillWatchBaseRecordEstimator.ts
|
|
15
|
+
src/estimator/BillWatchGCPRecordEstimator.ts
|
|
16
|
+
src/estimator/FieldBaseRecordEstimator.ts
|
|
17
|
+
src/estimator/FieldCategoryRecordEstimator.ts
|
|
18
|
+
src/estimator/FieldFieldRecordEstimator.ts
|
|
19
|
+
src/estimator/SecretSecretRecordEstimator.ts
|
|
20
|
+
src/estimator/SecretSecretReadEstimator.ts
|
|
21
|
+
src/type/Bonus.ts
|
|
22
|
+
src/type/CalculationOption.ts
|
|
23
|
+
src/type/Estimation.ts
|
|
24
|
+
src/type/EstimationOption.ts
|
|
25
|
+
src/type/EstimationUsage.ts
|
|
26
|
+
src/type/Period.ts
|
|
27
|
+
src/type/SimulationOption.ts
|
|
28
28
|
src/type/Usage.ts
|
|
@@ -14,7 +14,7 @@ const NamirasoftCostServerSecretSecret_1 = require("./NamirasoftCostServerSecret
|
|
|
14
14
|
const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
|
|
15
15
|
class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
|
16
16
|
constructor(base_url, manager, onError) {
|
|
17
|
-
super(base_url, `1.4.
|
|
17
|
+
super(base_url, `1.4.41`, manager, onError);
|
|
18
18
|
this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
|
|
19
19
|
this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
|
|
20
20
|
this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CostRow } from "./row/CostRow";
|
|
2
2
|
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { GranularityType } from "./enum/GranularityType";
|
|
4
|
+
import { GroupByType } from "./enum/GroupByType";
|
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
7
|
import { SortItem } from "namirasoft-core";
|
|
@@ -9,4 +11,5 @@ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
|
|
|
9
11
|
rows: CostRow[];
|
|
10
12
|
count: number;
|
|
11
13
|
}>;
|
|
14
|
+
Grouped(start_date: Date, end_date: Date, granularity: GranularityType, group_by: GroupByType, filter_workspace_ids: string[], filter_product_ids: string[], filter_sales_item_ids: string[], filter_offer_ids: string[], filter_offer_item_ids: string[], filter_resource_entities: string[], filter_resource_ids: string[], filter_usage_names: string[]): Promise<any[]>;
|
|
12
15
|
}
|
|
@@ -17,6 +17,7 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
|
|
|
17
17
|
constructor(server) {
|
|
18
18
|
super(server);
|
|
19
19
|
this.List = this.List.bind(this);
|
|
20
|
+
this.Grouped = this.Grouped.bind(this);
|
|
20
21
|
}
|
|
21
22
|
List(filters, page, size, sorts) {
|
|
22
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -27,6 +28,13 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
|
|
|
27
28
|
return data;
|
|
28
29
|
});
|
|
29
30
|
}
|
|
31
|
+
Grouped(start_date, end_date, granularity, group_by, filter_workspace_ids, filter_product_ids, filter_sales_item_ids, filter_offer_ids, filter_offer_item_ids, filter_resource_entities, filter_resource_ids, filter_usage_names) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
let path = `/cost/grouped`;
|
|
34
|
+
let { data } = yield this.server._get(path, { start_date, end_date, granularity, group_by, filter_workspace_ids, filter_product_ids, filter_sales_item_ids, filter_offer_ids, filter_offer_item_ids, filter_resource_entities, filter_resource_ids, filter_usage_names });
|
|
35
|
+
return data;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
exports.NamirasoftCostServerCost = NamirasoftCostServerCost;
|
|
32
40
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;
|
|
1
|
+
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAI7C,yEAAsE;AACtE,qDAA2C;AAE3C,MAAa,wBAAyB,SAAQ,mDAAwB;IAElE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,YAAY,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC1J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,OAAO,CAAC,UAAgB,EAAE,QAAc,EAAE,WAA4B,EAAE,QAAqB,EAAE,oBAA8B,EAAE,kBAA4B,EAAE,qBAA+B,EAAE,gBAA0B,EAAE,qBAA+B,EAAE,wBAAkC,EAAE,mBAA6B,EAAE,kBAA4B;;YAE5V,IAAI,IAAI,GAAG,eAAe,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAQ,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC,CAAC;YACjR,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,4DAsBC;AAAA,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CostCommand = void 0;
|
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const CostGroupedCommand_1 = require("./CostGroupedCommand");
|
|
5
6
|
const CostListCommand_1 = require("./CostListCommand");
|
|
6
7
|
class CostCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
8
|
constructor(argv) {
|
|
8
9
|
super(argv, {
|
|
9
10
|
"list": CostListCommand_1.CostListCommand,
|
|
11
|
+
"grouped": CostGroupedCommand_1.CostGroupedCommand,
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CostCommand.js","sourceRoot":"","sources":["../../src/command/CostCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uDAAoD;AAEpD,MAAa,WAAY,SAAQ,0CAAoB;IAEjD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,iCAAe;
|
|
1
|
+
{"version":3,"file":"CostCommand.js","sourceRoot":"","sources":["../../src/command/CostCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,6DAA0D;AAC1D,uDAAoD;AAEpD,MAAa,WAAY,SAAQ,0CAAoB;IAEjD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,iCAAe;YACvB,SAAS,EAAE,uCAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kCASC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CostGroupedCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["start_date", "end_date", "granularity", "group_by", "filter_workspace_ids", "filter_product_ids", "filter_sales_item_ids", "filter_offer_ids", "filter_offer_item_ids", "filter_resource_entities", "filter_resource_ids", "filter_usage_names"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
|
30
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.cost.Grouped(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4], this.arg_values[5], this.arg_values[6], this.arg_values[7], this.arg_values[8], this.arg_values[9], this.arg_values[10], this.arg_values[11]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CostGroupedCommand = CostGroupedCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=CostGroupedCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CostGroupedCommand.js","sourceRoot":"","sources":["../../src/command/CostGroupedCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;IACxQ,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,yGAAyG,CAAC,CAAC;YAC/H,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;YACtR,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,gDAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GranularityType = void 0;
|
|
4
|
+
var GranularityType;
|
|
5
|
+
(function (GranularityType) {
|
|
6
|
+
GranularityType["Hour"] = "Hour";
|
|
7
|
+
GranularityType["Day"] = "Day";
|
|
8
|
+
GranularityType["Week"] = "Week";
|
|
9
|
+
GranularityType["Month"] = "Month";
|
|
10
|
+
})(GranularityType || (exports.GranularityType = GranularityType = {}));
|
|
11
|
+
//# sourceMappingURL=GranularityType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GranularityType.js","sourceRoot":"","sources":["../../src/enum/GranularityType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,eAMX;AAND,WAAY,eAAe;IAEvB,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,kCAAe,CAAA;AACnB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum GroupByType {
|
|
2
|
+
WORKSPACE = "WORKSPACE",
|
|
3
|
+
PRODUCT = "PRODUCT",
|
|
4
|
+
SALES_ITEM = "SALES_ITEM",
|
|
5
|
+
OFFER = "OFFER",
|
|
6
|
+
OFFER_ITEM = "OFFER_ITEM",
|
|
7
|
+
RESOURCE_ENTITY = "RESOURCE_ENTITY",
|
|
8
|
+
RESOURCE_ID = "RESOURCE_ID",
|
|
9
|
+
USAGE_NAME = "USAGE_NAME"
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GroupByType = void 0;
|
|
4
|
+
var GroupByType;
|
|
5
|
+
(function (GroupByType) {
|
|
6
|
+
GroupByType["WORKSPACE"] = "WORKSPACE";
|
|
7
|
+
GroupByType["PRODUCT"] = "PRODUCT";
|
|
8
|
+
GroupByType["SALES_ITEM"] = "SALES_ITEM";
|
|
9
|
+
GroupByType["OFFER"] = "OFFER";
|
|
10
|
+
GroupByType["OFFER_ITEM"] = "OFFER_ITEM";
|
|
11
|
+
GroupByType["RESOURCE_ENTITY"] = "RESOURCE_ENTITY";
|
|
12
|
+
GroupByType["RESOURCE_ID"] = "RESOURCE_ID";
|
|
13
|
+
GroupByType["USAGE_NAME"] = "USAGE_NAME";
|
|
14
|
+
})(GroupByType || (exports.GroupByType = GroupByType = {}));
|
|
15
|
+
//# sourceMappingURL=GroupByType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupByType.js","sourceRoot":"","sources":["../../src/enum/GroupByType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,WAUX;AAVD,WAAY,WAAW;IAEnB,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;AAC7B,CAAC,EAVW,WAAW,2BAAX,WAAW,QAUtB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from "./command/BillWatchGCPCommand";
|
|
|
30
30
|
export * from "./command/BillWatchGCPEstimateRecordCommand";
|
|
31
31
|
export * from "./command/BillWatchGCP_CreateForRecordCommand";
|
|
32
32
|
export * from "./command/CostCommand";
|
|
33
|
+
export * from "./command/CostGroupedCommand";
|
|
33
34
|
export * from "./command/CostListCommand";
|
|
34
35
|
export * from "./command/FieldCategoryCommand";
|
|
35
36
|
export * from "./command/FieldCategoryEstimateRecordCommand";
|
|
@@ -48,6 +49,8 @@ export * from "./command/SecretSecret_CreateForReadCommand";
|
|
|
48
49
|
export * from "./command/SecretSecret_CreateForRecordCommand";
|
|
49
50
|
export * from "./command/ValueCommand";
|
|
50
51
|
export * from "./command/ValueListCommand";
|
|
52
|
+
export * from "./enum/GranularityType";
|
|
53
|
+
export * from "./enum/GroupByType";
|
|
51
54
|
export * from "./estimator/BaseEstimator";
|
|
52
55
|
export * from "./estimator/BillWatchAWSRecordEstimator";
|
|
53
56
|
export * from "./estimator/BillWatchAzureRecordEstimator";
|
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./command/BillWatchGCPCommand"), exports);
|
|
|
46
46
|
__exportStar(require("./command/BillWatchGCPEstimateRecordCommand"), exports);
|
|
47
47
|
__exportStar(require("./command/BillWatchGCP_CreateForRecordCommand"), exports);
|
|
48
48
|
__exportStar(require("./command/CostCommand"), exports);
|
|
49
|
+
__exportStar(require("./command/CostGroupedCommand"), exports);
|
|
49
50
|
__exportStar(require("./command/CostListCommand"), exports);
|
|
50
51
|
__exportStar(require("./command/FieldCategoryCommand"), exports);
|
|
51
52
|
__exportStar(require("./command/FieldCategoryEstimateRecordCommand"), exports);
|
|
@@ -64,6 +65,8 @@ __exportStar(require("./command/SecretSecret_CreateForReadCommand"), exports);
|
|
|
64
65
|
__exportStar(require("./command/SecretSecret_CreateForRecordCommand"), exports);
|
|
65
66
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
66
67
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
68
|
+
__exportStar(require("./enum/GranularityType"), exports);
|
|
69
|
+
__exportStar(require("./enum/GroupByType"), exports);
|
|
67
70
|
__exportStar(require("./estimator/BaseEstimator"), exports);
|
|
68
71
|
__exportStar(require("./estimator/BillWatchAWSRecordEstimator"), exports);
|
|
69
72
|
__exportStar(require("./estimator/BillWatchAzureRecordEstimator"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,yDAAuC;AACvC,qDAAmC;AACnC,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
package/dist/type/Bonus.d.ts
CHANGED
package/dist/type/Bonus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../src/type/Bonus.ts"],"names":[],"mappings":";;;AAAA,yDAAmF;
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../src/type/Bonus.ts"],"names":[],"mappings":";;;AAAA,yDAAmF;AAOnF,MAAa,WAAY,SAAQ,gCAAY;IAEzC,YAAY,QAAiB;QAEzB,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE;YACrB,IAAI,sCAAkB,CAAC,MAAM,EAAE,IAAI,gCAAY,CAAC,IAAI,CAAC,CAAC;SACzD,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG;YACZ,OAAO,EAAE,cAAc;SAC1B,CAAC;IACN,CAAC;CACJ;AAXD,kCAWC"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "namirasoft-cost",
|
|
3
|
-
"title": "Namirasoft Cost NPM Package",
|
|
4
|
-
"description": "Namira Software Corporation Cost NPM Package",
|
|
5
|
-
"icon": "logo.png",
|
|
6
|
-
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
|
7
|
-
"language": "ts",
|
|
8
|
-
"framework": "npm",
|
|
9
|
-
"application": "package",
|
|
10
|
-
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
12
|
-
"author": "Amir Abolhasani",
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"main": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": ""
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"namirasoft-core": "^1.4.80",
|
|
21
|
-
"namirasoft-site": "^1.4.39",
|
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
-
"namirasoft-account": "^1.4.85",
|
|
24
|
-
"namirasoft-schema": "^1.4.25"
|
|
25
|
-
},
|
|
26
|
-
"bin": {
|
|
27
|
-
"ns-cost": "./dist/command/cli.js"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-cost",
|
|
3
|
+
"title": "Namirasoft Cost NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation Cost NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.4.41",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": ""
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"namirasoft-core": "^1.4.80",
|
|
21
|
+
"namirasoft-site": "^1.4.39",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
+
"namirasoft-account": "^1.4.85",
|
|
24
|
+
"namirasoft-schema": "^1.4.25"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"ns-cost": "./dist/command/cli.js"
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
-
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
|
23
|
-
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
|
24
|
-
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
|
25
|
-
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
|
26
|
-
import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
|
27
|
-
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
|
28
|
-
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
|
29
|
-
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
|
30
|
-
import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
|
|
31
|
-
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
|
32
|
-
import { TokenManager } from "namirasoft-account";
|
|
33
|
-
|
|
34
|
-
export class NamirasoftCostServer extends NSABaseServer
|
|
35
|
-
{
|
|
36
|
-
healthz: NamirasoftCostServerHealthz;
|
|
37
|
-
metrics: NamirasoftCostServerMetrics;
|
|
38
|
-
value: NamirasoftCostServerValue;
|
|
39
|
-
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
|
40
|
-
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
|
41
|
-
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
|
42
|
-
field_category: NamirasoftCostServerFieldCategory;
|
|
43
|
-
field_field: NamirasoftCostServerFieldField;
|
|
44
|
-
secret_secret: NamirasoftCostServerSecretSecret;
|
|
45
|
-
cost: NamirasoftCostServerCost;
|
|
46
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
|
-
{
|
|
48
|
-
super(base_url, `1.4.
|
|
49
|
-
this.healthz = new NamirasoftCostServerHealthz(this);
|
|
50
|
-
this.metrics = new NamirasoftCostServerMetrics(this);
|
|
51
|
-
this.value = new NamirasoftCostServerValue(this);
|
|
52
|
-
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
|
53
|
-
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
|
54
|
-
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
|
55
|
-
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
|
56
|
-
this.field_field = new NamirasoftCostServerFieldField(this);
|
|
57
|
-
this.secret_secret = new NamirasoftCostServerSecretSecret(this);
|
|
58
|
-
this.cost = new NamirasoftCostServerCost(this);
|
|
59
|
-
}
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
+
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
|
23
|
+
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
|
24
|
+
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
|
25
|
+
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
|
26
|
+
import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
|
27
|
+
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
|
28
|
+
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
|
29
|
+
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
|
30
|
+
import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
|
|
31
|
+
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
|
32
|
+
import { TokenManager } from "namirasoft-account";
|
|
33
|
+
|
|
34
|
+
export class NamirasoftCostServer extends NSABaseServer
|
|
35
|
+
{
|
|
36
|
+
healthz: NamirasoftCostServerHealthz;
|
|
37
|
+
metrics: NamirasoftCostServerMetrics;
|
|
38
|
+
value: NamirasoftCostServerValue;
|
|
39
|
+
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
|
40
|
+
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
|
41
|
+
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
|
42
|
+
field_category: NamirasoftCostServerFieldCategory;
|
|
43
|
+
field_field: NamirasoftCostServerFieldField;
|
|
44
|
+
secret_secret: NamirasoftCostServerSecretSecret;
|
|
45
|
+
cost: NamirasoftCostServerCost;
|
|
46
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
|
+
{
|
|
48
|
+
super(base_url, `1.4.41`, manager, onError);
|
|
49
|
+
this.healthz = new NamirasoftCostServerHealthz(this);
|
|
50
|
+
this.metrics = new NamirasoftCostServerMetrics(this);
|
|
51
|
+
this.value = new NamirasoftCostServerValue(this);
|
|
52
|
+
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
|
53
|
+
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
|
54
|
+
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
|
55
|
+
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
|
56
|
+
this.field_field = new NamirasoftCostServerFieldField(this);
|
|
57
|
+
this.secret_secret = new NamirasoftCostServerSecretSecret(this);
|
|
58
|
+
this.cost = new NamirasoftCostServerCost(this);
|
|
59
|
+
}
|
|
60
60
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
22
|
-
|
|
23
|
-
export class NamirasoftCostServerBase
|
|
24
|
-
{
|
|
25
|
-
public server: NamirasoftCostServer;
|
|
26
|
-
constructor(server: NamirasoftCostServer)
|
|
27
|
-
{
|
|
28
|
-
this.server = server;
|
|
29
|
-
}
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
22
|
+
|
|
23
|
+
export class NamirasoftCostServerBase
|
|
24
|
+
{
|
|
25
|
+
public server: NamirasoftCostServer;
|
|
26
|
+
constructor(server: NamirasoftCostServer)
|
|
27
|
+
{
|
|
28
|
+
this.server = server;
|
|
29
|
+
}
|
|
30
30
|
};
|