namirasoft-cost 1.4.25 → 1.4.27
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 +11 -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/index.d.ts +3 -29
- package/dist/index.js +3 -29
- 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/CalculationOption.d.ts +15 -0
- package/dist/type/CalculationOption.js +25 -0
- package/dist/type/CalculationOption.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/dist/type/SimulationOption.d.ts +13 -0
- package/dist/type/SimulationOption.js +23 -0
- package/dist/type/SimulationOption.js.map +1 -0
- 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/index.ts +3 -29
- package/src/type/Bonus.ts +21 -0
- package/src/type/CalculationOption.ts +34 -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/src/type/SimulationOption.ts +30 -0
- 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/BillWatchBaseHourlyEstimator.d.ts +0 -14
- package/dist/estimator/BillWatchBaseHourlyEstimator.js +0 -26
- package/dist/estimator/BillWatchBaseHourlyEstimator.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/FieldBaseHourlyEstimator.d.ts +0 -9
- package/dist/estimator/FieldBaseHourlyEstimator.js +0 -22
- package/dist/estimator/FieldBaseHourlyEstimator.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/FieldCategoryHourlyEstimator.js.map +0 -1
- 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/FieldFieldHourlyEstimator.js.map +0 -1
- package/dist/estimator/SecretSecretEstimator.d.ts +0 -14
- package/dist/estimator/SecretSecretEstimator.js +0 -25
- package/dist/estimator/SecretSecretEstimator.js.map +0 -1
- package/dist/estimator/SecretSecretHourlyEstimator.d.ts +0 -14
- package/dist/estimator/SecretSecretHourlyEstimator.js +0 -25
- package/dist/estimator/SecretSecretHourlyEstimator.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
@@ -1,94 +0,0 @@
|
|
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.SecretSecret_CreateForReadCommand = 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 SecretSecret_CreateForReadCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
-
constructor(argv) {
|
19
|
-
super(argv, ["user_id"], [
|
20
|
-
{
|
21
|
-
name: "first_entity_created_at",
|
22
|
-
short: "",
|
23
|
-
description: "Provides the value of 'first_entity_created_at' in body",
|
24
|
-
optional: true,
|
25
|
-
args: ["first_entity_created_at"],
|
26
|
-
defaults: [""]
|
27
|
-
},
|
28
|
-
{
|
29
|
-
name: "period",
|
30
|
-
short: "",
|
31
|
-
description: "Provides the value of 'period' in body",
|
32
|
-
optional: false,
|
33
|
-
args: ["period"],
|
34
|
-
defaults: [""]
|
35
|
-
},
|
36
|
-
{
|
37
|
-
name: "total",
|
38
|
-
short: "",
|
39
|
-
description: "Provides the value of 'total' in body",
|
40
|
-
optional: false,
|
41
|
-
args: ["total"],
|
42
|
-
defaults: [""]
|
43
|
-
},
|
44
|
-
{
|
45
|
-
name: "count",
|
46
|
-
short: "",
|
47
|
-
description: "Provides the value of 'count' in body",
|
48
|
-
optional: false,
|
49
|
-
args: ["count"],
|
50
|
-
defaults: [""]
|
51
|
-
},
|
52
|
-
{
|
53
|
-
name: "workspace_id",
|
54
|
-
short: "",
|
55
|
-
description: "Provides the value of 'workspace_id' in body",
|
56
|
-
optional: false,
|
57
|
-
args: ["workspace_id"],
|
58
|
-
defaults: [""]
|
59
|
-
},
|
60
|
-
{
|
61
|
-
name: "resource_id",
|
62
|
-
short: "",
|
63
|
-
description: "Provides the value of 'resource_id' in body",
|
64
|
-
optional: false,
|
65
|
-
args: ["resource_id"],
|
66
|
-
defaults: [""]
|
67
|
-
}
|
68
|
-
]);
|
69
|
-
}
|
70
|
-
exec() {
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
72
|
-
let token = this.app.storage.getNSAToken();
|
73
|
-
if (token == null)
|
74
|
-
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
75
|
-
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
76
|
-
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
77
|
-
manager.setValue(token, false);
|
78
|
-
let url = this.app.storage.getItem("ns-cost-server-url");
|
79
|
-
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
80
|
-
let ans = yield server.secret_secret._CreateForRead(this.arg_values[0], {
|
81
|
-
first_entity_created_at: this.option_values.first_entity_created_at,
|
82
|
-
period: this.option_values.period,
|
83
|
-
total: this.option_values.total,
|
84
|
-
count: this.option_values.count,
|
85
|
-
workspace_id: this.option_values.workspace_id,
|
86
|
-
resource_id: this.option_values.resource_id
|
87
|
-
});
|
88
|
-
this.app.logger.success(JSON.stringify(ans));
|
89
|
-
});
|
90
|
-
}
|
91
|
-
}
|
92
|
-
exports.SecretSecret_CreateForReadCommand = SecretSecret_CreateForReadCommand;
|
93
|
-
;
|
94
|
-
//# sourceMappingURL=SecretSecret_CreateForReadCommand.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SecretSecret_CreateForReadCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForReadCommand.ts"],"names":[],"mappings":"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"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ValueCommand = void 0;
|
4
|
-
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
5
|
-
const ValueListCommand_1 = require("./ValueListCommand");
|
6
|
-
class ValueCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
7
|
-
constructor(argv) {
|
8
|
-
super(argv, {
|
9
|
-
"list": ValueListCommand_1.ValueListCommand,
|
10
|
-
});
|
11
|
-
}
|
12
|
-
}
|
13
|
-
exports.ValueCommand = ValueCommand;
|
14
|
-
;
|
15
|
-
//# sourceMappingURL=ValueCommand.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ValueCommand.js","sourceRoot":"","sources":["../../src/command/ValueCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,yDAAsD;AAEtD,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mCAAgB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,oCAQC;AAAA,CAAC"}
|
@@ -1,38 +0,0 @@
|
|
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.ValueListCommand = 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 ValueListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
-
constructor(argv) {
|
19
|
-
super(argv, ["table", "column", "search", "field_id", "limit"], []);
|
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.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
|
32
|
-
this.app.logger.success(JSON.stringify(ans));
|
33
|
-
});
|
34
|
-
}
|
35
|
-
}
|
36
|
-
exports.ValueListCommand = ValueListCommand;
|
37
|
-
;
|
38
|
-
//# sourceMappingURL=ValueListCommand.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ValueListCommand.js","sourceRoot":"","sources":["../../src/command/ValueListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,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,KAAK,CAAC,IAAI,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,CAAC,CAAC;YACtI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4CAmBC;AAAA,CAAC"}
|
package/dist/command/cli.d.ts
DELETED
package/dist/command/cli.js
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
const namirasoft_account_1 = require("namirasoft-account");
|
5
|
-
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
6
|
-
const BillWatchAWSCommand_1 = require("./BillWatchAWSCommand");
|
7
|
-
const BillWatchAzureCommand_1 = require("./BillWatchAzureCommand");
|
8
|
-
const BillWatchGCPCommand_1 = require("./BillWatchGCPCommand");
|
9
|
-
const namirasoft_node_cli_2 = require("namirasoft-node-cli");
|
10
|
-
const CostCommand_1 = require("./CostCommand");
|
11
|
-
const FieldCategoryCommand_1 = require("./FieldCategoryCommand");
|
12
|
-
const FieldFieldCommand_1 = require("./FieldFieldCommand");
|
13
|
-
const HealthzCommand_1 = require("./HealthzCommand");
|
14
|
-
const MetricsCommand_1 = require("./MetricsCommand");
|
15
|
-
const SecretSecretCommand_1 = require("./SecretSecretCommand");
|
16
|
-
const ValueCommand_1 = require("./ValueCommand");
|
17
|
-
let app = new namirasoft_node_cli_1.Application("ns-cost", new namirasoft_node_cli_1.BaseStorage(), {
|
18
|
-
"healthz": HealthzCommand_1.HealthzCommand,
|
19
|
-
"metrics": MetricsCommand_1.MetricsCommand,
|
20
|
-
"value": ValueCommand_1.ValueCommand,
|
21
|
-
"billwatchaws": BillWatchAWSCommand_1.BillWatchAWSCommand,
|
22
|
-
"billwatchazure": BillWatchAzureCommand_1.BillWatchAzureCommand,
|
23
|
-
"billwatchgcp": BillWatchGCPCommand_1.BillWatchGCPCommand,
|
24
|
-
"fieldcategory": FieldCategoryCommand_1.FieldCategoryCommand,
|
25
|
-
"fieldfield": FieldFieldCommand_1.FieldFieldCommand,
|
26
|
-
"secretsecret": SecretSecretCommand_1.SecretSecretCommand,
|
27
|
-
"cost": CostCommand_1.CostCommand,
|
28
|
-
"account": namirasoft_account_1.AccountCommand,
|
29
|
-
"config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-cost-server-url"])
|
30
|
-
});
|
31
|
-
app.run();
|
32
|
-
//# sourceMappingURL=cli.js.map
|
package/dist/command/cli.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,+DAA4D;AAC5D,mEAAgE;AAChE,+DAA4D;AAC5D,6DAAoD;AACpD,+CAA4C;AAC5C,iEAA8D;AAC9D,2DAAwD;AACxD,qDAAkD;AAClD,qDAAkD;AAClD,+DAA4D;AAC5D,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,SAAS,EAAE,IAAI,iCAAW,EAAE,EAClD;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,cAAc,EAAE,yCAAmB;IACnC,gBAAgB,EAAE,6CAAqB;IACvC,cAAc,EAAE,yCAAmB;IACnC,eAAe,EAAE,2CAAoB;IACrC,YAAY,EAAE,qCAAiB;IAC/B,cAAc,EAAE,yCAAmB;IACnC,MAAM,EAAE,yBAAW;IACnB,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,CAAC;CAChF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchAWSEstimator = void 0;
|
4
|
-
const BillWatchBaseEstimator_1 = require("./BillWatchBaseEstimator");
|
5
|
-
class BillWatchAWSEstimator extends BillWatchBaseEstimator_1.BillWatchBaseEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchAWSEstimator = BillWatchAWSEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchAWSEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchAWSEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAWSEstimator.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAElE,MAAa,qBAAsB,SAAQ,+CAAsB;CAEhE;AAFD,sDAEC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchAWSHourlyEstimator = void 0;
|
4
|
-
const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
|
5
|
-
class BillWatchAWSHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchAWSHourlyEstimator = BillWatchAWSHourlyEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchAWSHourlyEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchAWSHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAWSHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,2BAA4B,SAAQ,2DAA4B;CAE5E;AAFD,kEAEC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchAzureEstimator = void 0;
|
4
|
-
const BillWatchBaseEstimator_1 = require("./BillWatchBaseEstimator");
|
5
|
-
class BillWatchAzureEstimator extends BillWatchBaseEstimator_1.BillWatchBaseEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchAzureEstimator = BillWatchAzureEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchAzureEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchAzureEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAzureEstimator.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAElE,MAAa,uBAAwB,SAAQ,+CAAsB;CAElE;AAFD,0DAEC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchAzureHourlyEstimator = void 0;
|
4
|
-
const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
|
5
|
-
class BillWatchAzureHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchAzureHourlyEstimator = BillWatchAzureHourlyEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchAzureHourlyEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchAzureHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAzureHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,6BAA8B,SAAQ,2DAA4B;CAE9E;AAFD,sEAEC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { BaseEstimator } from "./BaseEstimator";
|
2
|
-
import { TrialBonus } from "../bonus/TrialBonus";
|
3
|
-
export declare abstract class BillWatchBaseEstimator extends BaseEstimator {
|
4
|
-
static WATCH_PER_HOUR_ACTIVE: number;
|
5
|
-
getFee(): {
|
6
|
-
active: number;
|
7
|
-
deactive: number;
|
8
|
-
};
|
9
|
-
getUsage(): {
|
10
|
-
name: string;
|
11
|
-
unit: string;
|
12
|
-
};
|
13
|
-
getBonues(): TrialBonus[];
|
14
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchBaseEstimator = void 0;
|
4
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
5
|
-
const BaseEstimator_1 = require("./BaseEstimator");
|
6
|
-
const Usage_1 = require("../type/Usage");
|
7
|
-
const TrialBonus_1 = require("../bonus/TrialBonus");
|
8
|
-
class BillWatchBaseEstimator extends BaseEstimator_1.BaseEstimator {
|
9
|
-
getFee() {
|
10
|
-
return { active: BillWatchBaseEstimator.WATCH_PER_HOUR_ACTIVE, deactive: 0 };
|
11
|
-
}
|
12
|
-
getUsage() {
|
13
|
-
return {
|
14
|
-
name: Usage_1.Usage.Time.name,
|
15
|
-
unit: Usage_1.Usage.Time.units.Hour.name
|
16
|
-
};
|
17
|
-
}
|
18
|
-
getBonues() {
|
19
|
-
return [
|
20
|
-
new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
|
21
|
-
];
|
22
|
-
}
|
23
|
-
}
|
24
|
-
exports.BillWatchBaseEstimator = BillWatchBaseEstimator;
|
25
|
-
BillWatchBaseEstimator.WATCH_PER_HOUR_ACTIVE = namirasoft_core_1.PriceOperation.cent_to_millicent(3);
|
26
|
-
//# sourceMappingURL=BillWatchBaseEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchBaseEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchBaseEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAC/D,mDAAgD;AAChD,yCAAsC;AACtC,oDAAiD;AAEjD,MAAsB,sBAAuB,SAAQ,6BAAa;IAGrD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,sBAAsB,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACjF,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,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,CAAC;;AAnBL,wDAoBC;AAlBU,4CAAqB,GAAG,gCAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { BaseEstimator } from "./BaseEstimator";
|
2
|
-
import { TrialBonus } from "../bonus/TrialBonus";
|
3
|
-
export declare abstract class BillWatchBaseHourlyEstimator extends BaseEstimator {
|
4
|
-
static WATCH_PER_HOUR_ACTIVE: number;
|
5
|
-
getFee(): {
|
6
|
-
active: number;
|
7
|
-
deactive: number;
|
8
|
-
};
|
9
|
-
getUsage(): {
|
10
|
-
name: string;
|
11
|
-
unit: string;
|
12
|
-
};
|
13
|
-
getBonues(): TrialBonus[];
|
14
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchBaseHourlyEstimator = void 0;
|
4
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
5
|
-
const BaseEstimator_1 = require("./BaseEstimator");
|
6
|
-
const Usage_1 = require("../type/Usage");
|
7
|
-
const TrialBonus_1 = require("../bonus/TrialBonus");
|
8
|
-
class BillWatchBaseHourlyEstimator extends BaseEstimator_1.BaseEstimator {
|
9
|
-
getFee() {
|
10
|
-
return { active: BillWatchBaseHourlyEstimator.WATCH_PER_HOUR_ACTIVE, deactive: 0 };
|
11
|
-
}
|
12
|
-
getUsage() {
|
13
|
-
return {
|
14
|
-
name: Usage_1.Usage.Time.name,
|
15
|
-
unit: Usage_1.Usage.Time.units.Hour.name
|
16
|
-
};
|
17
|
-
}
|
18
|
-
getBonues() {
|
19
|
-
return [
|
20
|
-
new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
|
21
|
-
];
|
22
|
-
}
|
23
|
-
}
|
24
|
-
exports.BillWatchBaseHourlyEstimator = BillWatchBaseHourlyEstimator;
|
25
|
-
BillWatchBaseHourlyEstimator.WATCH_PER_HOUR_ACTIVE = namirasoft_core_1.PriceOperation.cent_to_millicent(3);
|
26
|
-
//# sourceMappingURL=BillWatchBaseHourlyEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchBaseHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchBaseHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAC/D,mDAAgD;AAChD,yCAAsC;AACtC,oDAAiD;AAEjD,MAAsB,4BAA6B,SAAQ,6BAAa;IAG3D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvF,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,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,CAAC;;AAnBL,oEAoBC;AAlBU,kDAAqB,GAAG,gCAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchGCPEstimator = void 0;
|
4
|
-
const BillWatchBaseEstimator_1 = require("./BillWatchBaseEstimator");
|
5
|
-
class BillWatchGCPEstimator extends BillWatchBaseEstimator_1.BillWatchBaseEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchGCPEstimator = BillWatchGCPEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchGCPEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchGCPEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchGCPEstimator.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAElE,MAAa,qBAAsB,SAAQ,+CAAsB;CAEhE;AAFD,sDAEC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BillWatchGCPHourlyEstimator = void 0;
|
4
|
-
const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
|
5
|
-
class BillWatchGCPHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
|
6
|
-
}
|
7
|
-
exports.BillWatchGCPHourlyEstimator = BillWatchGCPHourlyEstimator;
|
8
|
-
//# sourceMappingURL=BillWatchGCPHourlyEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BillWatchGCPHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchGCPHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,2BAA4B,SAAQ,2DAA4B;CAE5E;AAFD,kEAEC"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldBaseEstimator = void 0;
|
4
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
5
|
-
const TrialBonus_1 = require("../bonus/TrialBonus");
|
6
|
-
const BaseEstimator_1 = require("./BaseEstimator");
|
7
|
-
const Usage_1 = require("../type/Usage");
|
8
|
-
class FieldBaseEstimator extends BaseEstimator_1.BaseEstimator {
|
9
|
-
getBonues() {
|
10
|
-
return [
|
11
|
-
new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
|
12
|
-
];
|
13
|
-
}
|
14
|
-
getUsage() {
|
15
|
-
return {
|
16
|
-
name: Usage_1.Usage.Time.name,
|
17
|
-
unit: Usage_1.Usage.Time.units.Hour.name
|
18
|
-
};
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.FieldBaseEstimator = FieldBaseEstimator;
|
22
|
-
//# sourceMappingURL=FieldBaseEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldBaseEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldBaseEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,oDAAiD;AACjD,mDAAgD;AAChD,yCAAsC;AAEtC,MAAsB,kBAAmB,SAAQ,6BAAa;IAEjD,SAAS;QAEd,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,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;CACJ;AAfD,gDAeC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { TrialBonus } from "../bonus/TrialBonus";
|
2
|
-
import { BaseEstimator } from "./BaseEstimator";
|
3
|
-
export declare abstract class FieldBaseHourlyEstimator extends BaseEstimator {
|
4
|
-
getBonues(): TrialBonus[];
|
5
|
-
getUsage(): {
|
6
|
-
name: string;
|
7
|
-
unit: string;
|
8
|
-
};
|
9
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FieldBaseHourlyEstimator = void 0;
|
4
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
5
|
-
const TrialBonus_1 = require("../bonus/TrialBonus");
|
6
|
-
const BaseEstimator_1 = require("./BaseEstimator");
|
7
|
-
const Usage_1 = require("../type/Usage");
|
8
|
-
class FieldBaseHourlyEstimator extends BaseEstimator_1.BaseEstimator {
|
9
|
-
getBonues() {
|
10
|
-
return [
|
11
|
-
new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
|
12
|
-
];
|
13
|
-
}
|
14
|
-
getUsage() {
|
15
|
-
return {
|
16
|
-
name: Usage_1.Usage.Time.name,
|
17
|
-
unit: Usage_1.Usage.Time.units.Hour.name
|
18
|
-
};
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.FieldBaseHourlyEstimator = FieldBaseHourlyEstimator;
|
22
|
-
//# sourceMappingURL=FieldBaseHourlyEstimator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldBaseHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldBaseHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,oDAAiD;AACjD,mDAAgD;AAChD,yCAAsC;AAEtC,MAAsB,wBAAyB,SAAQ,6BAAa;IAEvD,SAAS;QAEd,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,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;CACJ;AAfD,4DAeC"}
|
@@ -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 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldCategoryHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldCategoryHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAEtE,MAAa,4BAA6B,SAAQ,mDAAwB;IAG7D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,eAAe,EAAE,QAAQ,EAAE,4BAA4B,CAAC,eAAe,EAAE,CAAC;IAC5H,CAAC;;AANL,oEAOC;AALU,4CAAe,GAAG,GAAG,CAAC"}
|
@@ -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 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FieldFieldHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldFieldHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAEtE,MAAa,yBAA0B,SAAQ,mDAAwB;IAG1D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,eAAe,EAAE,QAAQ,EAAE,yBAAyB,CAAC,eAAe,EAAE,CAAC;IACtH,CAAC;;AANL,8DAOC;AALU,yCAAe,GAAG,GAAG,CAAC"}
|