namirasoft-cost 1.4.24 → 1.4.26
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-file-keep +9 -8
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAWS.js +4 -4
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchAzure.js +4 -4
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +2 -2
- package/dist/NamirasoftCostServerBillWatchGCP.js +4 -4
- package/dist/NamirasoftCostServerFieldCategory.d.ts +2 -2
- package/dist/NamirasoftCostServerFieldCategory.js +4 -4
- package/dist/NamirasoftCostServerFieldField.d.ts +2 -2
- package/dist/NamirasoftCostServerFieldField.js +4 -4
- package/dist/NamirasoftCostServerSecretSecret.d.ts +2 -2
- package/dist/NamirasoftCostServerSecretSecret.js +4 -4
- package/dist/estimator/BillWatchAWSRecordEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchAWSRecordEstimator.js +8 -0
- package/dist/estimator/BillWatchAWSRecordEstimator.js.map +1 -0
- package/dist/estimator/BillWatchAzureRecordEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchAzureRecordEstimator.js +8 -0
- package/dist/estimator/BillWatchAzureRecordEstimator.js.map +1 -0
- package/dist/estimator/{BillWatchBaseHourlyEstimator.d.ts → BillWatchBaseRecordEstimator.d.ts} +1 -1
- package/dist/estimator/{BillWatchBaseHourlyEstimator.js → BillWatchBaseRecordEstimator.js} +6 -6
- package/dist/estimator/{BillWatchBaseHourlyEstimator.js.map → BillWatchBaseRecordEstimator.js.map} +1 -1
- package/dist/estimator/BillWatchGCPRecordEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchGCPRecordEstimator.js +8 -0
- package/dist/estimator/BillWatchGCPRecordEstimator.js.map +1 -0
- package/dist/estimator/{FieldBaseHourlyEstimator.d.ts → FieldBaseRecordEstimator.d.ts} +1 -1
- package/dist/estimator/{FieldBaseHourlyEstimator.js → FieldBaseRecordEstimator.js} +4 -4
- package/dist/estimator/{FieldBaseHourlyEstimator.js.map → FieldBaseRecordEstimator.js.map} +1 -1
- package/dist/estimator/FieldCategoryRecordEstimator.d.ts +8 -0
- package/dist/estimator/FieldCategoryRecordEstimator.js +12 -0
- package/dist/estimator/{FieldCategoryHourlyEstimator.js.map → FieldCategoryRecordEstimator.js.map} +1 -1
- package/dist/estimator/FieldFieldRecordEstimator.d.ts +8 -0
- package/dist/estimator/FieldFieldRecordEstimator.js +12 -0
- package/dist/estimator/{FieldFieldHourlyEstimator.js.map → FieldFieldRecordEstimator.js.map} +1 -1
- package/dist/estimator/{SecretSecretHourlyEstimator.d.ts → SecretSecretRecordEstimator.d.ts} +1 -1
- package/dist/estimator/{SecretSecretHourlyEstimator.js → SecretSecretRecordEstimator.js} +6 -6
- package/dist/estimator/{SecretSecretHourlyEstimator.js.map → SecretSecretRecordEstimator.js.map} +1 -1
- package/dist/index.d.ts +9 -37
- package/dist/index.js +9 -37
- package/dist/index.js.map +1 -1
- package/dist/type/Bonus.d.ts +9 -0
- package/dist/type/Bonus.js +16 -0
- package/dist/type/Bonus.js.map +1 -0
- package/dist/type/Estimation.d.ts +4 -0
- package/dist/type/Estimation.js +22 -0
- package/dist/type/Estimation.js.map +1 -1
- package/dist/type/EstimationOption.d.ts +4 -0
- package/dist/type/EstimationOption.js +20 -0
- package/dist/type/EstimationOption.js.map +1 -1
- package/dist/type/EstimationUsage.d.ts +4 -0
- package/dist/type/EstimationUsage.js +15 -0
- package/dist/type/EstimationUsage.js.map +1 -1
- package/dist/type/Period.d.ts +4 -0
- package/dist/type/Period.js +27 -4
- package/dist/type/Period.js.map +1 -1
- package/package.json +4 -3
- package/src/NamirasoftCostServerBillWatchAWS.ts +4 -4
- package/src/NamirasoftCostServerBillWatchAzure.ts +4 -4
- package/src/NamirasoftCostServerBillWatchGCP.ts +4 -4
- package/src/NamirasoftCostServerFieldCategory.ts +4 -4
- package/src/NamirasoftCostServerFieldField.ts +4 -4
- package/src/NamirasoftCostServerSecretSecret.ts +4 -4
- package/src/estimator/BillWatchAWSRecordEstimator.ts +5 -0
- package/src/estimator/BillWatchAzureRecordEstimator.ts +5 -0
- package/src/estimator/{BillWatchBaseEstimator.ts → BillWatchBaseRecordEstimator.ts} +2 -2
- package/src/estimator/BillWatchGCPRecordEstimator.ts +5 -0
- package/src/estimator/{FieldBaseEstimator.ts → FieldBaseRecordEstimator.ts} +1 -1
- package/src/estimator/FieldCategoryRecordEstimator.ts +10 -0
- package/src/estimator/FieldFieldRecordEstimator.ts +10 -0
- package/src/estimator/{SecretSecretEstimator.ts → SecretSecretRecordEstimator.ts} +2 -2
- package/src/index.ts +9 -37
- package/src/type/Bonus.ts +21 -0
- package/src/type/Estimation.ts +24 -3
- package/src/type/EstimationOption.ts +22 -2
- package/src/type/EstimationUsage.ts +18 -1
- package/src/type/Period.ts +27 -3
- package/dist/command/BillWatchAWSCommand.d.ts +0 -4
- package/dist/command/BillWatchAWSCommand.js +0 -17
- package/dist/command/BillWatchAWSCommand.js.map +0 -1
- package/dist/command/BillWatchAWSEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAzureCommand.d.ts +0 -4
- package/dist/command/BillWatchAzureCommand.js +0 -17
- package/dist/command/BillWatchAzureCommand.js.map +0 -1
- package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchGCPCommand.d.ts +0 -4
- package/dist/command/BillWatchGCPCommand.js +0 -17
- package/dist/command/BillWatchGCPCommand.js.map +0 -1
- package/dist/command/BillWatchGCPEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js +0 -76
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +0 -1
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js +0 -94
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/CostCommand.d.ts +0 -4
- package/dist/command/CostCommand.js +0 -17
- package/dist/command/CostCommand.js.map +0 -1
- package/dist/command/CostListCommand.d.ts +0 -5
- package/dist/command/CostListCommand.js +0 -38
- package/dist/command/CostListCommand.js.map +0 -1
- package/dist/command/Cost_CreateForCommand.d.ts +0 -5
- package/dist/command/Cost_CreateForCommand.js +0 -175
- package/dist/command/Cost_CreateForCommand.js.map +0 -1
- package/dist/command/FieldCategoryCommand.d.ts +0 -4
- package/dist/command/FieldCategoryCommand.js +0 -17
- package/dist/command/FieldCategoryCommand.js.map +0 -1
- package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/FieldCategoryEstimateHourlyCommand.js +0 -76
- package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +0 -1
- package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/FieldCategory_CreateForHourlyCommand.js +0 -94
- package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/FieldFieldCommand.d.ts +0 -4
- package/dist/command/FieldFieldCommand.js +0 -17
- package/dist/command/FieldFieldCommand.js.map +0 -1
- package/dist/command/FieldFieldEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/FieldFieldEstimateHourlyCommand.js +0 -76
- package/dist/command/FieldFieldEstimateHourlyCommand.js.map +0 -1
- package/dist/command/FieldField_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/FieldField_CreateForHourlyCommand.js +0 -94
- package/dist/command/FieldField_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/HealthzCommand.d.ts +0 -4
- package/dist/command/HealthzCommand.js +0 -15
- package/dist/command/HealthzCommand.js.map +0 -1
- package/dist/command/HealthzGetCommand.d.ts +0 -5
- package/dist/command/HealthzGetCommand.js +0 -38
- package/dist/command/HealthzGetCommand.js.map +0 -1
- package/dist/command/MetricsCommand.d.ts +0 -4
- package/dist/command/MetricsCommand.js +0 -15
- package/dist/command/MetricsCommand.js.map +0 -1
- package/dist/command/MetricsGetCommand.d.ts +0 -5
- package/dist/command/MetricsGetCommand.js +0 -38
- package/dist/command/MetricsGetCommand.js.map +0 -1
- package/dist/command/SecretSecretCommand.d.ts +0 -4
- package/dist/command/SecretSecretCommand.js +0 -21
- package/dist/command/SecretSecretCommand.js.map +0 -1
- package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +0 -5
- package/dist/command/SecretSecretEstimateHourlyCommand.js +0 -76
- package/dist/command/SecretSecretEstimateHourlyCommand.js.map +0 -1
- package/dist/command/SecretSecretEstimateReadCommand.d.ts +0 -5
- package/dist/command/SecretSecretEstimateReadCommand.js +0 -76
- package/dist/command/SecretSecretEstimateReadCommand.js.map +0 -1
- package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +0 -5
- package/dist/command/SecretSecret_CreateForHourlyCommand.js +0 -94
- package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +0 -1
- package/dist/command/SecretSecret_CreateForReadCommand.d.ts +0 -5
- package/dist/command/SecretSecret_CreateForReadCommand.js +0 -94
- package/dist/command/SecretSecret_CreateForReadCommand.js.map +0 -1
- package/dist/command/ValueCommand.d.ts +0 -4
- package/dist/command/ValueCommand.js +0 -15
- package/dist/command/ValueCommand.js.map +0 -1
- package/dist/command/ValueListCommand.d.ts +0 -5
- package/dist/command/ValueListCommand.js +0 -38
- package/dist/command/ValueListCommand.js.map +0 -1
- package/dist/command/cli.d.ts +0 -2
- package/dist/command/cli.js +0 -32
- package/dist/command/cli.js.map +0 -1
- package/dist/estimator/BillWatchAWSEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAWSEstimator.js +0 -8
- package/dist/estimator/BillWatchAWSEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAWSHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAWSHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchAWSHourlyEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAzureEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAzureEstimator.js +0 -8
- package/dist/estimator/BillWatchAzureEstimator.js.map +0 -1
- package/dist/estimator/BillWatchAzureHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchAzureHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchAzureHourlyEstimator.js.map +0 -1
- package/dist/estimator/BillWatchBaseEstimator.d.ts +0 -14
- package/dist/estimator/BillWatchBaseEstimator.js +0 -26
- package/dist/estimator/BillWatchBaseEstimator.js.map +0 -1
- package/dist/estimator/BillWatchGCPEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchGCPEstimator.js +0 -8
- package/dist/estimator/BillWatchGCPEstimator.js.map +0 -1
- package/dist/estimator/BillWatchGCPHourlyEstimator.d.ts +0 -3
- package/dist/estimator/BillWatchGCPHourlyEstimator.js +0 -8
- package/dist/estimator/BillWatchGCPHourlyEstimator.js.map +0 -1
- package/dist/estimator/FieldBaseEstimator.d.ts +0 -9
- package/dist/estimator/FieldBaseEstimator.js +0 -22
- package/dist/estimator/FieldBaseEstimator.js.map +0 -1
- package/dist/estimator/FieldCategoryEstimator.d.ts +0 -8
- package/dist/estimator/FieldCategoryEstimator.js +0 -12
- package/dist/estimator/FieldCategoryEstimator.js.map +0 -1
- package/dist/estimator/FieldCategoryHourlyEstimator.d.ts +0 -8
- package/dist/estimator/FieldCategoryHourlyEstimator.js +0 -12
- package/dist/estimator/FieldFieldEstimator.d.ts +0 -8
- package/dist/estimator/FieldFieldEstimator.js +0 -12
- package/dist/estimator/FieldFieldEstimator.js.map +0 -1
- package/dist/estimator/FieldFieldHourlyEstimator.d.ts +0 -8
- package/dist/estimator/FieldFieldHourlyEstimator.js +0 -12
- package/dist/estimator/SecretSecretEstimator.d.ts +0 -14
- package/dist/estimator/SecretSecretEstimator.js +0 -25
- package/dist/estimator/SecretSecretEstimator.js.map +0 -1
- package/src/command/BillWatchAWSCommand.ts +0 -34
- package/src/command/BillWatchAWSEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchAWS_CreateForHourlyCommand.ts +0 -101
- package/src/command/BillWatchAzureCommand.ts +0 -34
- package/src/command/BillWatchAzureEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +0 -101
- package/src/command/BillWatchGCPCommand.ts +0 -34
- package/src/command/BillWatchGCPEstimateHourlyCommand.ts +0 -83
- package/src/command/BillWatchGCP_CreateForHourlyCommand.ts +0 -101
- package/src/command/CostCommand.ts +0 -34
- package/src/command/CostListCommand.ts +0 -45
- package/src/command/Cost_CreateForCommand.ts +0 -182
- package/src/command/FieldCategoryCommand.ts +0 -34
- package/src/command/FieldCategoryEstimateHourlyCommand.ts +0 -83
- package/src/command/FieldCategory_CreateForHourlyCommand.ts +0 -101
- package/src/command/FieldFieldCommand.ts +0 -34
- package/src/command/FieldFieldEstimateHourlyCommand.ts +0 -83
- package/src/command/FieldField_CreateForHourlyCommand.ts +0 -101
- package/src/command/HealthzCommand.ts +0 -32
- package/src/command/HealthzGetCommand.ts +0 -45
- package/src/command/MetricsCommand.ts +0 -32
- package/src/command/MetricsGetCommand.ts +0 -45
- package/src/command/SecretSecretCommand.ts +0 -38
- package/src/command/SecretSecretEstimateHourlyCommand.ts +0 -83
- package/src/command/SecretSecretEstimateReadCommand.ts +0 -83
- package/src/command/SecretSecret_CreateForHourlyCommand.ts +0 -101
- package/src/command/SecretSecret_CreateForReadCommand.ts +0 -101
- package/src/command/ValueCommand.ts +0 -32
- package/src/command/ValueListCommand.ts +0 -45
- package/src/command/cli.ts +0 -51
- package/src/estimator/BillWatchAWSEstimator.ts +0 -5
- package/src/estimator/BillWatchAzureEstimator.ts +0 -5
- package/src/estimator/BillWatchGCPEstimator.ts +0 -5
- package/src/estimator/FieldCategoryEstimator.ts +0 -10
- package/src/estimator/FieldFieldEstimator.ts +0 -10
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldCategoryEstimator = void 0;
|
4
|
-
const FieldBaseEstimator_1 = require("./FieldBaseEstimator");
|
5
|
-
class FieldCategoryEstimator extends FieldBaseEstimator_1.FieldBaseEstimator {
|
6
|
-
getFee() {
|
7
|
-
return { active: FieldCategoryEstimator.PER_HOUR_ACTIVE, deactive: FieldCategoryEstimator.PER_HOUR_ACTIVE };
|
8
|
-
}
|
9
|
-
}
|
10
|
-
exports.FieldCategoryEstimator = FieldCategoryEstimator;
|
11
|
-
FieldCategoryEstimator.PER_HOUR_ACTIVE = 200;
|
12
|
-
//# sourceMappingURL=FieldCategoryEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldCategoryEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldCategoryEstimator.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,MAAa,sBAAuB,SAAQ,uCAAkB;IAGjD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,sBAAsB,CAAC,eAAe,EAAE,QAAQ,EAAE,sBAAsB,CAAC,eAAe,EAAE,CAAC;IAChH,CAAC;;AANL,wDAOC;AALU,sCAAe,GAAG,GAAG,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldCategoryHourlyEstimator = void 0;
|
4
|
-
const FieldBaseHourlyEstimator_1 = require("./FieldBaseHourlyEstimator");
|
5
|
-
class FieldCategoryHourlyEstimator extends FieldBaseHourlyEstimator_1.FieldBaseHourlyEstimator {
|
6
|
-
getFee() {
|
7
|
-
return { active: FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE, deactive: FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE };
|
8
|
-
}
|
9
|
-
}
|
10
|
-
exports.FieldCategoryHourlyEstimator = FieldCategoryHourlyEstimator;
|
11
|
-
FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE = 200;
|
12
|
-
//# sourceMappingURL=FieldCategoryHourlyEstimator.js.map
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldFieldEstimator = void 0;
|
4
|
-
const FieldBaseEstimator_1 = require("./FieldBaseEstimator");
|
5
|
-
class FieldFieldEstimator extends FieldBaseEstimator_1.FieldBaseEstimator {
|
6
|
-
getFee() {
|
7
|
-
return { active: FieldFieldEstimator.PER_HOUR_ACTIVE, deactive: FieldFieldEstimator.PER_HOUR_ACTIVE };
|
8
|
-
}
|
9
|
-
}
|
10
|
-
exports.FieldFieldEstimator = FieldFieldEstimator;
|
11
|
-
FieldFieldEstimator.PER_HOUR_ACTIVE = 250;
|
12
|
-
//# sourceMappingURL=FieldFieldEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldFieldEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldFieldEstimator.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,MAAa,mBAAoB,SAAQ,uCAAkB;IAG9C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,mBAAmB,CAAC,eAAe,EAAE,QAAQ,EAAE,mBAAmB,CAAC,eAAe,EAAE,CAAC;IAC1G,CAAC;;AANL,kDAOC;AALU,mCAAe,GAAG,GAAG,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldFieldHourlyEstimator = void 0;
|
4
|
-
const FieldBaseHourlyEstimator_1 = require("./FieldBaseHourlyEstimator");
|
5
|
-
class FieldFieldHourlyEstimator extends FieldBaseHourlyEstimator_1.FieldBaseHourlyEstimator {
|
6
|
-
getFee() {
|
7
|
-
return { active: FieldFieldHourlyEstimator.PER_HOUR_ACTIVE, deactive: FieldFieldHourlyEstimator.PER_HOUR_ACTIVE };
|
8
|
-
}
|
9
|
-
}
|
10
|
-
exports.FieldFieldHourlyEstimator = FieldFieldHourlyEstimator;
|
11
|
-
FieldFieldHourlyEstimator.PER_HOUR_ACTIVE = 250;
|
12
|
-
//# sourceMappingURL=FieldFieldHourlyEstimator.js.map
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { FreeCountBonus } from "../bonus/FreeCountBonus";
|
2
|
-
import { BaseEstimator } from "./BaseEstimator";
|
3
|
-
export declare class SecretSecretEstimator extends BaseEstimator {
|
4
|
-
static PER_HOUR_ACTIVE: number;
|
5
|
-
getFee(): {
|
6
|
-
active: number;
|
7
|
-
deactive: number;
|
8
|
-
};
|
9
|
-
getUsage(): {
|
10
|
-
name: string;
|
11
|
-
unit: string;
|
12
|
-
};
|
13
|
-
getBonues(): FreeCountBonus[];
|
14
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SecretSecretEstimator = void 0;
|
4
|
-
const FreeCountBonus_1 = require("../bonus/FreeCountBonus");
|
5
|
-
const Usage_1 = require("../type/Usage");
|
6
|
-
const BaseEstimator_1 = require("./BaseEstimator");
|
7
|
-
class SecretSecretEstimator extends BaseEstimator_1.BaseEstimator {
|
8
|
-
getFee() {
|
9
|
-
return { active: SecretSecretEstimator.PER_HOUR_ACTIVE, deactive: SecretSecretEstimator.PER_HOUR_ACTIVE };
|
10
|
-
}
|
11
|
-
getUsage() {
|
12
|
-
return {
|
13
|
-
name: Usage_1.Usage.Time.name,
|
14
|
-
unit: Usage_1.Usage.Time.units.Hour.name
|
15
|
-
};
|
16
|
-
}
|
17
|
-
getBonues() {
|
18
|
-
return [
|
19
|
-
new FreeCountBonus_1.FreeCountBonus(100)
|
20
|
-
];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.SecretSecretEstimator = SecretSecretEstimator;
|
24
|
-
SecretSecretEstimator.PER_HOUR_ACTIVE = 2;
|
25
|
-
//# sourceMappingURL=SecretSecretEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SecretSecretEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretEstimator.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,qBAAsB,SAAQ,6BAAa;IAG3C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,qBAAqB,CAAC,eAAe,EAAE,QAAQ,EAAE,qBAAqB,CAAC,eAAe,EAAE,CAAC;IAC9G,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,SAAS;QAEd,OAAO;YACH,IAAI,+BAAc,CAAC,GAAG,CAAC;SAC1B,CAAC;IACN,CAAC;;AAnBL,sDAoBC;AAlBU,qCAAe,GAAG,CAAC,CAAC"}
|
@@ -1,34 +0,0 @@
|
|
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import { BillWatchAWSEstimateHourlyCommand } from "./BillWatchAWSEstimateHourlyCommand";
|
23
|
-
import { BillWatchAWS_CreateForHourlyCommand } from "./BillWatchAWS_CreateForHourlyCommand";
|
24
|
-
|
25
|
-
export class BillWatchAWSCommand extends BaseNavigatorCommand
|
26
|
-
{
|
27
|
-
constructor(argv: string[])
|
28
|
-
{
|
29
|
-
super(argv, {
|
30
|
-
"estimatehourly": BillWatchAWSEstimateHourlyCommand,
|
31
|
-
"_createforhourly": BillWatchAWS_CreateForHourlyCommand,
|
32
|
-
});
|
33
|
-
}
|
34
|
-
};
|
@@ -1,83 +0,0 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
-
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
-
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
25
|
-
|
26
|
-
export class BillWatchAWSEstimateHourlyCommand extends BaseFinalCommand
|
27
|
-
{
|
28
|
-
constructor(argv: string[])
|
29
|
-
{
|
30
|
-
super(argv, [], [
|
31
|
-
{
|
32
|
-
name: "first_entity_created_at",
|
33
|
-
short: "",
|
34
|
-
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
-
optional: true,
|
36
|
-
args: ["first_entity_created_at"],
|
37
|
-
defaults: [""]
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: "period",
|
41
|
-
short: "",
|
42
|
-
description: "Provides the value of 'period' in body",
|
43
|
-
optional: false,
|
44
|
-
args: ["period"],
|
45
|
-
defaults: [""]
|
46
|
-
},
|
47
|
-
{
|
48
|
-
name: "row_number",
|
49
|
-
short: "",
|
50
|
-
description: "Provides the value of 'row_number' in body",
|
51
|
-
optional: false,
|
52
|
-
args: ["row_number"],
|
53
|
-
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "active",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'active' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["active"],
|
61
|
-
defaults: [""]
|
62
|
-
}
|
63
|
-
]);
|
64
|
-
}
|
65
|
-
override async exec()
|
66
|
-
{
|
67
|
-
let token = this.app.storage.getNSAToken();
|
68
|
-
if (token == null)
|
69
|
-
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
70
|
-
let storage = new IStorageMemoryDedicated();
|
71
|
-
let manager = new TokenManager(storage, () => { });
|
72
|
-
manager.setValue(token, false);
|
73
|
-
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
|
-
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
-
let ans = await server.bill_watch_aws.EstimateHourly({
|
76
|
-
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
-
period: this.option_values.period,
|
78
|
-
row_number: this.option_values.row_number,
|
79
|
-
active: this.option_values.active
|
80
|
-
});
|
81
|
-
this.app.logger.success(JSON.stringify(ans));
|
82
|
-
}
|
83
|
-
};
|
@@ -1,101 +0,0 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
-
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
-
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
25
|
-
|
26
|
-
export class BillWatchAWS_CreateForHourlyCommand extends BaseFinalCommand
|
27
|
-
{
|
28
|
-
constructor(argv: string[])
|
29
|
-
{
|
30
|
-
super(argv, ["user_id"], [
|
31
|
-
{
|
32
|
-
name: "first_entity_created_at",
|
33
|
-
short: "",
|
34
|
-
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
-
optional: true,
|
36
|
-
args: ["first_entity_created_at"],
|
37
|
-
defaults: [""]
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: "period",
|
41
|
-
short: "",
|
42
|
-
description: "Provides the value of 'period' in body",
|
43
|
-
optional: false,
|
44
|
-
args: ["period"],
|
45
|
-
defaults: [""]
|
46
|
-
},
|
47
|
-
{
|
48
|
-
name: "row_number",
|
49
|
-
short: "",
|
50
|
-
description: "Provides the value of 'row_number' in body",
|
51
|
-
optional: false,
|
52
|
-
args: ["row_number"],
|
53
|
-
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "active",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'active' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["active"],
|
61
|
-
defaults: [""]
|
62
|
-
},
|
63
|
-
{
|
64
|
-
name: "workspace_id",
|
65
|
-
short: "",
|
66
|
-
description: "Provides the value of 'workspace_id' in body",
|
67
|
-
optional: false,
|
68
|
-
args: ["workspace_id"],
|
69
|
-
defaults: [""]
|
70
|
-
},
|
71
|
-
{
|
72
|
-
name: "resource_id",
|
73
|
-
short: "",
|
74
|
-
description: "Provides the value of 'resource_id' in body",
|
75
|
-
optional: false,
|
76
|
-
args: ["resource_id"],
|
77
|
-
defaults: [""]
|
78
|
-
}
|
79
|
-
]);
|
80
|
-
}
|
81
|
-
override async exec()
|
82
|
-
{
|
83
|
-
let token = this.app.storage.getNSAToken();
|
84
|
-
if (token == null)
|
85
|
-
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
86
|
-
let storage = new IStorageMemoryDedicated();
|
87
|
-
let manager = new TokenManager(storage, () => { });
|
88
|
-
manager.setValue(token, false);
|
89
|
-
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
|
-
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
-
let ans = await server.bill_watch_aws._CreateForHourly(this.arg_values[0], {
|
92
|
-
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
-
period: this.option_values.period,
|
94
|
-
row_number: this.option_values.row_number,
|
95
|
-
active: this.option_values.active,
|
96
|
-
workspace_id: this.option_values.workspace_id,
|
97
|
-
resource_id: this.option_values.resource_id
|
98
|
-
});
|
99
|
-
this.app.logger.success(JSON.stringify(ans));
|
100
|
-
}
|
101
|
-
};
|
@@ -1,34 +0,0 @@
|
|
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import { BillWatchAzureEstimateHourlyCommand } from "./BillWatchAzureEstimateHourlyCommand";
|
23
|
-
import { BillWatchAzure_CreateForHourlyCommand } from "./BillWatchAzure_CreateForHourlyCommand";
|
24
|
-
|
25
|
-
export class BillWatchAzureCommand extends BaseNavigatorCommand
|
26
|
-
{
|
27
|
-
constructor(argv: string[])
|
28
|
-
{
|
29
|
-
super(argv, {
|
30
|
-
"estimatehourly": BillWatchAzureEstimateHourlyCommand,
|
31
|
-
"_createforhourly": BillWatchAzure_CreateForHourlyCommand,
|
32
|
-
});
|
33
|
-
}
|
34
|
-
};
|
@@ -1,83 +0,0 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
-
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
-
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
25
|
-
|
26
|
-
export class BillWatchAzureEstimateHourlyCommand extends BaseFinalCommand
|
27
|
-
{
|
28
|
-
constructor(argv: string[])
|
29
|
-
{
|
30
|
-
super(argv, [], [
|
31
|
-
{
|
32
|
-
name: "first_entity_created_at",
|
33
|
-
short: "",
|
34
|
-
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
-
optional: true,
|
36
|
-
args: ["first_entity_created_at"],
|
37
|
-
defaults: [""]
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: "period",
|
41
|
-
short: "",
|
42
|
-
description: "Provides the value of 'period' in body",
|
43
|
-
optional: false,
|
44
|
-
args: ["period"],
|
45
|
-
defaults: [""]
|
46
|
-
},
|
47
|
-
{
|
48
|
-
name: "row_number",
|
49
|
-
short: "",
|
50
|
-
description: "Provides the value of 'row_number' in body",
|
51
|
-
optional: false,
|
52
|
-
args: ["row_number"],
|
53
|
-
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "active",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'active' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["active"],
|
61
|
-
defaults: [""]
|
62
|
-
}
|
63
|
-
]);
|
64
|
-
}
|
65
|
-
override async exec()
|
66
|
-
{
|
67
|
-
let token = this.app.storage.getNSAToken();
|
68
|
-
if (token == null)
|
69
|
-
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
70
|
-
let storage = new IStorageMemoryDedicated();
|
71
|
-
let manager = new TokenManager(storage, () => { });
|
72
|
-
manager.setValue(token, false);
|
73
|
-
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
|
-
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
-
let ans = await server.bill_watch_azure.EstimateHourly({
|
76
|
-
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
-
period: this.option_values.period,
|
78
|
-
row_number: this.option_values.row_number,
|
79
|
-
active: this.option_values.active
|
80
|
-
});
|
81
|
-
this.app.logger.success(JSON.stringify(ans));
|
82
|
-
}
|
83
|
-
};
|
@@ -1,101 +0,0 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
-
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
-
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
25
|
-
|
26
|
-
export class BillWatchAzure_CreateForHourlyCommand extends BaseFinalCommand
|
27
|
-
{
|
28
|
-
constructor(argv: string[])
|
29
|
-
{
|
30
|
-
super(argv, ["user_id"], [
|
31
|
-
{
|
32
|
-
name: "first_entity_created_at",
|
33
|
-
short: "",
|
34
|
-
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
-
optional: true,
|
36
|
-
args: ["first_entity_created_at"],
|
37
|
-
defaults: [""]
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: "period",
|
41
|
-
short: "",
|
42
|
-
description: "Provides the value of 'period' in body",
|
43
|
-
optional: false,
|
44
|
-
args: ["period"],
|
45
|
-
defaults: [""]
|
46
|
-
},
|
47
|
-
{
|
48
|
-
name: "row_number",
|
49
|
-
short: "",
|
50
|
-
description: "Provides the value of 'row_number' in body",
|
51
|
-
optional: false,
|
52
|
-
args: ["row_number"],
|
53
|
-
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "active",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'active' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["active"],
|
61
|
-
defaults: [""]
|
62
|
-
},
|
63
|
-
{
|
64
|
-
name: "workspace_id",
|
65
|
-
short: "",
|
66
|
-
description: "Provides the value of 'workspace_id' in body",
|
67
|
-
optional: false,
|
68
|
-
args: ["workspace_id"],
|
69
|
-
defaults: [""]
|
70
|
-
},
|
71
|
-
{
|
72
|
-
name: "resource_id",
|
73
|
-
short: "",
|
74
|
-
description: "Provides the value of 'resource_id' in body",
|
75
|
-
optional: false,
|
76
|
-
args: ["resource_id"],
|
77
|
-
defaults: [""]
|
78
|
-
}
|
79
|
-
]);
|
80
|
-
}
|
81
|
-
override async exec()
|
82
|
-
{
|
83
|
-
let token = this.app.storage.getNSAToken();
|
84
|
-
if (token == null)
|
85
|
-
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
86
|
-
let storage = new IStorageMemoryDedicated();
|
87
|
-
let manager = new TokenManager(storage, () => { });
|
88
|
-
manager.setValue(token, false);
|
89
|
-
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
|
-
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
-
let ans = await server.bill_watch_azure._CreateForHourly(this.arg_values[0], {
|
92
|
-
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
-
period: this.option_values.period,
|
94
|
-
row_number: this.option_values.row_number,
|
95
|
-
active: this.option_values.active,
|
96
|
-
workspace_id: this.option_values.workspace_id,
|
97
|
-
resource_id: this.option_values.resource_id
|
98
|
-
});
|
99
|
-
this.app.logger.success(JSON.stringify(ans));
|
100
|
-
}
|
101
|
-
};
|
@@ -1,34 +0,0 @@
|
|
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import { BillWatchGCPEstimateHourlyCommand } from "./BillWatchGCPEstimateHourlyCommand";
|
23
|
-
import { BillWatchGCP_CreateForHourlyCommand } from "./BillWatchGCP_CreateForHourlyCommand";
|
24
|
-
|
25
|
-
export class BillWatchGCPCommand extends BaseNavigatorCommand
|
26
|
-
{
|
27
|
-
constructor(argv: string[])
|
28
|
-
{
|
29
|
-
super(argv, {
|
30
|
-
"estimatehourly": BillWatchGCPEstimateHourlyCommand,
|
31
|
-
"_createforhourly": BillWatchGCP_CreateForHourlyCommand,
|
32
|
-
});
|
33
|
-
}
|
34
|
-
};
|