namirasoft-cost 1.4.27 → 1.4.30
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 +36 -26
- package/dist/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -15
- package/dist/NamirasoftCostServerBillWatchAWS.js +2 -2
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -15
- package/dist/NamirasoftCostServerBillWatchAzure.js +2 -2
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -15
- package/dist/NamirasoftCostServerBillWatchGCP.js +2 -2
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/NamirasoftCostServerCost.d.ts +0 -2
- package/dist/NamirasoftCostServerCost.js +0 -8
- package/dist/NamirasoftCostServerCost.js.map +1 -1
- package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -15
- package/dist/NamirasoftCostServerFieldCategory.js +2 -2
- package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
- package/dist/NamirasoftCostServerFieldField.d.ts +4 -15
- package/dist/NamirasoftCostServerFieldField.js +2 -2
- package/dist/NamirasoftCostServerFieldField.js.map +1 -1
- package/dist/NamirasoftCostServerSecretSecret.d.ts +6 -29
- package/dist/NamirasoftCostServerSecretSecret.js +2 -2
- package/dist/NamirasoftCostServerSecretSecret.js.map +1 -1
- package/dist/command/BillWatchAWSCommand.d.ts +4 -0
- package/dist/command/BillWatchAWSCommand.js +17 -0
- package/dist/command/BillWatchAWSCommand.js.map +1 -0
- package/dist/command/BillWatchAWSEstimateRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchAWSEstimateRecordCommand.js +103 -0
- package/dist/command/BillWatchAWSEstimateRecordCommand.js.map +1 -0
- package/dist/command/BillWatchAWS_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchAWS_CreateForRecordCommand.js +112 -0
- package/dist/command/BillWatchAWS_CreateForRecordCommand.js.map +1 -0
- package/dist/command/BillWatchAzureCommand.d.ts +4 -0
- package/dist/command/BillWatchAzureCommand.js +17 -0
- package/dist/command/BillWatchAzureCommand.js.map +1 -0
- package/dist/command/BillWatchAzureEstimateRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchAzureEstimateRecordCommand.js +103 -0
- package/dist/command/BillWatchAzureEstimateRecordCommand.js.map +1 -0
- package/dist/command/BillWatchAzure_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchAzure_CreateForRecordCommand.js +112 -0
- package/dist/command/BillWatchAzure_CreateForRecordCommand.js.map +1 -0
- package/dist/command/BillWatchGCPCommand.d.ts +4 -0
- package/dist/command/BillWatchGCPCommand.js +17 -0
- package/dist/command/BillWatchGCPCommand.js.map +1 -0
- package/dist/command/BillWatchGCPEstimateRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchGCPEstimateRecordCommand.js +103 -0
- package/dist/command/BillWatchGCPEstimateRecordCommand.js.map +1 -0
- package/dist/command/BillWatchGCP_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/BillWatchGCP_CreateForRecordCommand.js +112 -0
- package/dist/command/BillWatchGCP_CreateForRecordCommand.js.map +1 -0
- package/dist/command/CostCommand.d.ts +4 -0
- package/dist/command/CostCommand.js +15 -0
- package/dist/command/CostCommand.js.map +1 -0
- package/dist/command/CostListCommand.d.ts +5 -0
- package/dist/command/CostListCommand.js +38 -0
- package/dist/command/CostListCommand.js.map +1 -0
- package/dist/command/FieldCategoryCommand.d.ts +4 -0
- package/dist/command/FieldCategoryCommand.js +17 -0
- package/dist/command/FieldCategoryCommand.js.map +1 -0
- package/dist/command/FieldCategoryEstimateRecordCommand.d.ts +5 -0
- package/dist/command/FieldCategoryEstimateRecordCommand.js +103 -0
- package/dist/command/FieldCategoryEstimateRecordCommand.js.map +1 -0
- package/dist/command/FieldCategory_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/FieldCategory_CreateForRecordCommand.js +112 -0
- package/dist/command/FieldCategory_CreateForRecordCommand.js.map +1 -0
- package/dist/command/FieldFieldCommand.d.ts +4 -0
- package/dist/command/FieldFieldCommand.js +17 -0
- package/dist/command/FieldFieldCommand.js.map +1 -0
- package/dist/command/FieldFieldEstimateRecordCommand.d.ts +5 -0
- package/dist/command/FieldFieldEstimateRecordCommand.js +103 -0
- package/dist/command/FieldFieldEstimateRecordCommand.js.map +1 -0
- package/dist/command/FieldField_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/FieldField_CreateForRecordCommand.js +112 -0
- package/dist/command/FieldField_CreateForRecordCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/SecretSecretCommand.d.ts +4 -0
- package/dist/command/SecretSecretCommand.js +21 -0
- package/dist/command/SecretSecretCommand.js.map +1 -0
- package/dist/command/SecretSecretEstimateReadCommand.d.ts +5 -0
- package/dist/command/SecretSecretEstimateReadCommand.js +103 -0
- package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
- package/dist/command/SecretSecretEstimateRecordCommand.d.ts +5 -0
- package/dist/command/SecretSecretEstimateRecordCommand.js +103 -0
- package/dist/command/SecretSecretEstimateRecordCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
- package/dist/command/SecretSecret_CreateForReadCommand.js +112 -0
- package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForRecordCommand.d.ts +5 -0
- package/dist/command/SecretSecret_CreateForRecordCommand.js +112 -0
- package/dist/command/SecretSecret_CreateForRecordCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +32 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/index.d.ts +47 -12
- package/dist/index.js +47 -12
- package/dist/index.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 -46
- package/src/NamirasoftCostServerBillWatchAzure.ts +47 -46
- package/src/NamirasoftCostServerBillWatchGCP.ts +47 -46
- package/src/NamirasoftCostServerCost.ts +41 -49
- package/src/NamirasoftCostServerFieldCategory.ts +47 -46
- package/src/NamirasoftCostServerFieldField.ts +47 -46
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerMetrics.ts +35 -35
- package/src/NamirasoftCostServerSecretSecret.ts +61 -60
- 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/LowAmountBonus.ts +14 -14
- package/src/bonus/LowSecondsBonus.ts +14 -14
- package/src/bonus/LowTotalCountBonus.ts +14 -14
- package/src/bonus/LowTotalValueBonus.ts +14 -14
- package/src/bonus/TrialBonus.ts +18 -18
- package/src/command/BillWatchAWSCommand.ts +34 -0
- package/src/command/BillWatchAWSEstimateRecordCommand.ts +110 -0
- package/src/command/BillWatchAWS_CreateForRecordCommand.ts +119 -0
- package/src/command/BillWatchAzureCommand.ts +34 -0
- package/src/command/BillWatchAzureEstimateRecordCommand.ts +110 -0
- package/src/command/BillWatchAzure_CreateForRecordCommand.ts +119 -0
- package/src/command/BillWatchGCPCommand.ts +34 -0
- package/src/command/BillWatchGCPEstimateRecordCommand.ts +110 -0
- package/src/command/BillWatchGCP_CreateForRecordCommand.ts +119 -0
- package/src/{row/CostCreateRow.ts → command/CostCommand.ts} +32 -38
- package/src/command/CostListCommand.ts +45 -0
- package/src/command/FieldCategoryCommand.ts +34 -0
- package/src/command/FieldCategoryEstimateRecordCommand.ts +110 -0
- package/src/command/FieldCategory_CreateForRecordCommand.ts +119 -0
- package/src/command/FieldFieldCommand.ts +34 -0
- package/src/command/FieldFieldEstimateRecordCommand.ts +110 -0
- package/src/command/FieldField_CreateForRecordCommand.ts +119 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/SecretSecretCommand.ts +38 -0
- package/src/command/SecretSecretEstimateReadCommand.ts +110 -0
- package/src/command/SecretSecretEstimateRecordCommand.ts +110 -0
- package/src/command/SecretSecret_CreateForReadCommand.ts +119 -0
- package/src/command/SecretSecret_CreateForRecordCommand.ts +119 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +51 -0
- package/src/estimator/BaseEstimator.ts +62 -62
- package/src/estimator/BillWatchAWSRecordEstimator.ts +4 -4
- package/src/estimator/BillWatchAzureRecordEstimator.ts +4 -4
- package/src/estimator/BillWatchBaseRecordEstimator.ts +25 -25
- package/src/estimator/BillWatchGCPRecordEstimator.ts +4 -4
- package/src/estimator/FieldBaseRecordEstimator.ts +20 -20
- package/src/estimator/FieldCategoryRecordEstimator.ts +9 -9
- package/src/estimator/FieldFieldRecordEstimator.ts +9 -9
- package/src/estimator/SecretSecretReadEstimator.ts +25 -25
- package/src/estimator/SecretSecretRecordEstimator.ts +24 -24
- package/src/index.ts +89 -54
- 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 +20 -20
- package/src/type/CalculationOption.ts +34 -34
- package/src/type/Estimation.ts +35 -35
- package/src/type/EstimationOption.ts +31 -31
- package/src/type/EstimationUsage.ts +22 -22
- package/src/type/Period.ts +101 -101
- package/src/type/SimulationOption.ts +29 -29
- package/src/type/Usage.ts +24 -24
- package/dist/row/CostCreateRow.d.ts +0 -17
- package/dist/row/CostCreateRow.js +0 -3
- package/dist/row/CostCreateRow.js.map +0 -1
@@ -0,0 +1,112 @@
|
|
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: "period",
|
22
|
+
short: "",
|
23
|
+
description: "Provides the value of 'period' in body",
|
24
|
+
optional: false,
|
25
|
+
args: ["period"],
|
26
|
+
defaults: [""]
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: "total_count",
|
30
|
+
short: "",
|
31
|
+
description: "Provides the value of 'total_count' in body",
|
32
|
+
optional: false,
|
33
|
+
args: ["total_count"],
|
34
|
+
defaults: [""]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: "number",
|
38
|
+
short: "",
|
39
|
+
description: "Provides the value of 'number' in body",
|
40
|
+
optional: false,
|
41
|
+
args: ["number"],
|
42
|
+
defaults: [""]
|
43
|
+
},
|
44
|
+
{
|
45
|
+
name: "total_value",
|
46
|
+
short: "",
|
47
|
+
description: "Provides the value of 'total_value' in body",
|
48
|
+
optional: false,
|
49
|
+
args: ["total_value"],
|
50
|
+
defaults: [""]
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: "value",
|
54
|
+
short: "",
|
55
|
+
description: "Provides the value of 'value' in body",
|
56
|
+
optional: false,
|
57
|
+
args: ["value"],
|
58
|
+
defaults: [""]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: "active",
|
62
|
+
short: "",
|
63
|
+
description: "Provides the value of 'active' in body",
|
64
|
+
optional: false,
|
65
|
+
args: ["active"],
|
66
|
+
defaults: [""]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: "workspace_id",
|
70
|
+
short: "",
|
71
|
+
description: "Provides the value of 'workspace_id' in body",
|
72
|
+
optional: true,
|
73
|
+
args: ["workspace_id"],
|
74
|
+
defaults: [""]
|
75
|
+
},
|
76
|
+
{
|
77
|
+
name: "resource_id",
|
78
|
+
short: "",
|
79
|
+
description: "Provides the value of 'resource_id' in body",
|
80
|
+
optional: true,
|
81
|
+
args: ["resource_id"],
|
82
|
+
defaults: [""]
|
83
|
+
}
|
84
|
+
]);
|
85
|
+
}
|
86
|
+
exec() {
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
88
|
+
let token = this.app.storage.getNSAToken();
|
89
|
+
if (token == null)
|
90
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
91
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
92
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
93
|
+
manager.setValue(token, false);
|
94
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
95
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
96
|
+
let ans = yield server.secret_secret._CreateForRead(this.arg_values[0], {
|
97
|
+
period: this.option_values.period,
|
98
|
+
total_count: this.option_values.total_count,
|
99
|
+
number: this.option_values.number,
|
100
|
+
total_value: this.option_values.total_value,
|
101
|
+
value: this.option_values.value,
|
102
|
+
active: this.option_values.active,
|
103
|
+
workspace_id: this.option_values.workspace_id,
|
104
|
+
resource_id: this.option_values.resource_id
|
105
|
+
});
|
106
|
+
this.app.logger.success(JSON.stringify(ans));
|
107
|
+
});
|
108
|
+
}
|
109
|
+
}
|
110
|
+
exports.SecretSecret_CreateForReadCommand = SecretSecret_CreateForReadCommand;
|
111
|
+
;
|
112
|
+
//# sourceMappingURL=SecretSecret_CreateForReadCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecret_CreateForReadCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForReadCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,iCAAkC,SAAQ,sCAAgB;IAEnE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,QAAQ;gBACd,KA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AK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7FD,8EA6FC;AAAA,CAAC"}
|
@@ -0,0 +1,112 @@
|
|
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_CreateForRecordCommand = 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_CreateForRecordCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
+
constructor(argv) {
|
19
|
+
super(argv, ["user_id"], [
|
20
|
+
{
|
21
|
+
name: "period",
|
22
|
+
short: "",
|
23
|
+
description: "Provides the value of 'period' in body",
|
24
|
+
optional: false,
|
25
|
+
args: ["period"],
|
26
|
+
defaults: [""]
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: "total_count",
|
30
|
+
short: "",
|
31
|
+
description: "Provides the value of 'total_count' in body",
|
32
|
+
optional: false,
|
33
|
+
args: ["total_count"],
|
34
|
+
defaults: [""]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: "number",
|
38
|
+
short: "",
|
39
|
+
description: "Provides the value of 'number' in body",
|
40
|
+
optional: false,
|
41
|
+
args: ["number"],
|
42
|
+
defaults: [""]
|
43
|
+
},
|
44
|
+
{
|
45
|
+
name: "total_value",
|
46
|
+
short: "",
|
47
|
+
description: "Provides the value of 'total_value' in body",
|
48
|
+
optional: false,
|
49
|
+
args: ["total_value"],
|
50
|
+
defaults: [""]
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: "value",
|
54
|
+
short: "",
|
55
|
+
description: "Provides the value of 'value' in body",
|
56
|
+
optional: false,
|
57
|
+
args: ["value"],
|
58
|
+
defaults: [""]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: "active",
|
62
|
+
short: "",
|
63
|
+
description: "Provides the value of 'active' in body",
|
64
|
+
optional: false,
|
65
|
+
args: ["active"],
|
66
|
+
defaults: [""]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: "workspace_id",
|
70
|
+
short: "",
|
71
|
+
description: "Provides the value of 'workspace_id' in body",
|
72
|
+
optional: true,
|
73
|
+
args: ["workspace_id"],
|
74
|
+
defaults: [""]
|
75
|
+
},
|
76
|
+
{
|
77
|
+
name: "resource_id",
|
78
|
+
short: "",
|
79
|
+
description: "Provides the value of 'resource_id' in body",
|
80
|
+
optional: true,
|
81
|
+
args: ["resource_id"],
|
82
|
+
defaults: [""]
|
83
|
+
}
|
84
|
+
]);
|
85
|
+
}
|
86
|
+
exec() {
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
88
|
+
let token = this.app.storage.getNSAToken();
|
89
|
+
if (token == null)
|
90
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
91
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
92
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
93
|
+
manager.setValue(token, false);
|
94
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
95
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
96
|
+
let ans = yield server.secret_secret._CreateForRecord(this.arg_values[0], {
|
97
|
+
period: this.option_values.period,
|
98
|
+
total_count: this.option_values.total_count,
|
99
|
+
number: this.option_values.number,
|
100
|
+
total_value: this.option_values.total_value,
|
101
|
+
value: this.option_values.value,
|
102
|
+
active: this.option_values.active,
|
103
|
+
workspace_id: this.option_values.workspace_id,
|
104
|
+
resource_id: this.option_values.resource_id
|
105
|
+
});
|
106
|
+
this.app.logger.success(JSON.stringify(ans));
|
107
|
+
});
|
108
|
+
}
|
109
|
+
}
|
110
|
+
exports.SecretSecret_CreateForRecordCommand = SecretSecret_CreateForRecordCommand;
|
111
|
+
;
|
112
|
+
//# sourceMappingURL=SecretSecret_CreateForRecordCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecret_CreateForRecordCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForRecordCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,mCAAoC,SAAQ,sCAAgB;IAErE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gB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AAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7FD,kFA6FC;AAAA,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -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.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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueListCommand.js","sourceRoot":"","sources":["../../src/command/ValueListCommand.ts"],"names":[],"mappings":";;;;;;;;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AAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4CAmBC;AAAA,CAAC"}
|
@@ -0,0 +1,32 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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"}
|
package/dist/index.d.ts
CHANGED
@@ -1,14 +1,3 @@
|
|
1
|
-
export * from "./bonus/BaseBonus";
|
2
|
-
export * from "./estimator/BaseEstimator";
|
3
|
-
export * from "./estimator/BillWatchAWSRecordEstimator";
|
4
|
-
export * from "./estimator/BillWatchAzureRecordEstimator";
|
5
|
-
export * from "./estimator/BillWatchBaseRecordEstimator";
|
6
|
-
export * from "./estimator/BillWatchGCPRecordEstimator";
|
7
|
-
export * from "./estimator/FieldBaseRecordEstimator";
|
8
|
-
export * from "./estimator/FieldCategoryRecordEstimator";
|
9
|
-
export * from "./estimator/FieldFieldRecordEstimator";
|
10
|
-
export * from "./estimator/SecretSecretRecordEstimator";
|
11
|
-
export * from "./estimator/SecretSecretReadEstimator";
|
12
1
|
export * from "./NamirasoftCostServer";
|
13
2
|
export * from "./NamirasoftCostServerBase";
|
14
3
|
export * from "./NamirasoftCostServerBillWatchAWS";
|
@@ -21,9 +10,55 @@ export * from "./NamirasoftCostServerHealthz";
|
|
21
10
|
export * from "./NamirasoftCostServerMetrics";
|
22
11
|
export * from "./NamirasoftCostServerSecretSecret";
|
23
12
|
export * from "./NamirasoftCostServerValue";
|
13
|
+
export * from "./bonus/BaseBonus";
|
14
|
+
export * from "./bonus/DeactiveBonus";
|
15
|
+
export * from "./bonus/FreeCountBonus";
|
16
|
+
export * from "./bonus/FreeTotalValueBonus";
|
17
|
+
export * from "./bonus/LowAmountBonus";
|
18
|
+
export * from "./bonus/LowSecondsBonus";
|
19
|
+
export * from "./bonus/LowTotalCountBonus";
|
20
|
+
export * from "./bonus/LowTotalValueBonus";
|
21
|
+
export * from "./bonus/TrialBonus";
|
22
|
+
export * from "./command/BillWatchAWSCommand";
|
23
|
+
export * from "./command/BillWatchAWSEstimateRecordCommand";
|
24
|
+
export * from "./command/BillWatchAWS_CreateForRecordCommand";
|
25
|
+
export * from "./command/BillWatchAzureCommand";
|
26
|
+
export * from "./command/BillWatchAzureEstimateRecordCommand";
|
27
|
+
export * from "./command/BillWatchAzure_CreateForRecordCommand";
|
28
|
+
export * from "./command/BillWatchGCPCommand";
|
29
|
+
export * from "./command/BillWatchGCPEstimateRecordCommand";
|
30
|
+
export * from "./command/BillWatchGCP_CreateForRecordCommand";
|
31
|
+
export * from "./command/CostCommand";
|
32
|
+
export * from "./command/CostListCommand";
|
33
|
+
export * from "./command/FieldCategoryCommand";
|
34
|
+
export * from "./command/FieldCategoryEstimateRecordCommand";
|
35
|
+
export * from "./command/FieldCategory_CreateForRecordCommand";
|
36
|
+
export * from "./command/FieldFieldCommand";
|
37
|
+
export * from "./command/FieldFieldEstimateRecordCommand";
|
38
|
+
export * from "./command/FieldField_CreateForRecordCommand";
|
39
|
+
export * from "./command/HealthzCommand";
|
40
|
+
export * from "./command/HealthzGetCommand";
|
41
|
+
export * from "./command/MetricsCommand";
|
42
|
+
export * from "./command/MetricsGetCommand";
|
43
|
+
export * from "./command/SecretSecretCommand";
|
44
|
+
export * from "./command/SecretSecretEstimateReadCommand";
|
45
|
+
export * from "./command/SecretSecretEstimateRecordCommand";
|
46
|
+
export * from "./command/SecretSecret_CreateForReadCommand";
|
47
|
+
export * from "./command/SecretSecret_CreateForRecordCommand";
|
48
|
+
export * from "./command/ValueCommand";
|
49
|
+
export * from "./command/ValueListCommand";
|
50
|
+
export * from "./estimator/BaseEstimator";
|
51
|
+
export * from "./estimator/BillWatchAWSRecordEstimator";
|
52
|
+
export * from "./estimator/BillWatchAzureRecordEstimator";
|
53
|
+
export * from "./estimator/BillWatchBaseRecordEstimator";
|
54
|
+
export * from "./estimator/BillWatchGCPRecordEstimator";
|
55
|
+
export * from "./estimator/FieldBaseRecordEstimator";
|
56
|
+
export * from "./estimator/FieldCategoryRecordEstimator";
|
57
|
+
export * from "./estimator/FieldFieldRecordEstimator";
|
58
|
+
export * from "./estimator/SecretSecretReadEstimator";
|
59
|
+
export * from "./estimator/SecretSecretRecordEstimator";
|
24
60
|
export * from "./meta/CostMetaTable";
|
25
61
|
export * from "./meta/NamirasoftCostMetaDatabase";
|
26
|
-
export * from "./row/CostCreateRow";
|
27
62
|
export * from "./row/CostRow";
|
28
63
|
export * from "./type/Bonus";
|
29
64
|
export * from "./type/CalculationOption";
|
package/dist/index.js
CHANGED
@@ -14,17 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./bonus/BaseBonus"), exports);
|
18
|
-
__exportStar(require("./estimator/BaseEstimator"), exports);
|
19
|
-
__exportStar(require("./estimator/BillWatchAWSRecordEstimator"), exports);
|
20
|
-
__exportStar(require("./estimator/BillWatchAzureRecordEstimator"), exports);
|
21
|
-
__exportStar(require("./estimator/BillWatchBaseRecordEstimator"), exports);
|
22
|
-
__exportStar(require("./estimator/BillWatchGCPRecordEstimator"), exports);
|
23
|
-
__exportStar(require("./estimator/FieldBaseRecordEstimator"), exports);
|
24
|
-
__exportStar(require("./estimator/FieldCategoryRecordEstimator"), exports);
|
25
|
-
__exportStar(require("./estimator/FieldFieldRecordEstimator"), exports);
|
26
|
-
__exportStar(require("./estimator/SecretSecretRecordEstimator"), exports);
|
27
|
-
__exportStar(require("./estimator/SecretSecretReadEstimator"), exports);
|
28
17
|
__exportStar(require("./NamirasoftCostServer"), exports);
|
29
18
|
__exportStar(require("./NamirasoftCostServerBase"), exports);
|
30
19
|
__exportStar(require("./NamirasoftCostServerBillWatchAWS"), exports);
|
@@ -37,9 +26,55 @@ __exportStar(require("./NamirasoftCostServerHealthz"), exports);
|
|
37
26
|
__exportStar(require("./NamirasoftCostServerMetrics"), exports);
|
38
27
|
__exportStar(require("./NamirasoftCostServerSecretSecret"), exports);
|
39
28
|
__exportStar(require("./NamirasoftCostServerValue"), exports);
|
29
|
+
__exportStar(require("./bonus/BaseBonus"), exports);
|
30
|
+
__exportStar(require("./bonus/DeactiveBonus"), exports);
|
31
|
+
__exportStar(require("./bonus/FreeCountBonus"), exports);
|
32
|
+
__exportStar(require("./bonus/FreeTotalValueBonus"), exports);
|
33
|
+
__exportStar(require("./bonus/LowAmountBonus"), exports);
|
34
|
+
__exportStar(require("./bonus/LowSecondsBonus"), exports);
|
35
|
+
__exportStar(require("./bonus/LowTotalCountBonus"), exports);
|
36
|
+
__exportStar(require("./bonus/LowTotalValueBonus"), exports);
|
37
|
+
__exportStar(require("./bonus/TrialBonus"), exports);
|
38
|
+
__exportStar(require("./command/BillWatchAWSCommand"), exports);
|
39
|
+
__exportStar(require("./command/BillWatchAWSEstimateRecordCommand"), exports);
|
40
|
+
__exportStar(require("./command/BillWatchAWS_CreateForRecordCommand"), exports);
|
41
|
+
__exportStar(require("./command/BillWatchAzureCommand"), exports);
|
42
|
+
__exportStar(require("./command/BillWatchAzureEstimateRecordCommand"), exports);
|
43
|
+
__exportStar(require("./command/BillWatchAzure_CreateForRecordCommand"), exports);
|
44
|
+
__exportStar(require("./command/BillWatchGCPCommand"), exports);
|
45
|
+
__exportStar(require("./command/BillWatchGCPEstimateRecordCommand"), exports);
|
46
|
+
__exportStar(require("./command/BillWatchGCP_CreateForRecordCommand"), exports);
|
47
|
+
__exportStar(require("./command/CostCommand"), exports);
|
48
|
+
__exportStar(require("./command/CostListCommand"), exports);
|
49
|
+
__exportStar(require("./command/FieldCategoryCommand"), exports);
|
50
|
+
__exportStar(require("./command/FieldCategoryEstimateRecordCommand"), exports);
|
51
|
+
__exportStar(require("./command/FieldCategory_CreateForRecordCommand"), exports);
|
52
|
+
__exportStar(require("./command/FieldFieldCommand"), exports);
|
53
|
+
__exportStar(require("./command/FieldFieldEstimateRecordCommand"), exports);
|
54
|
+
__exportStar(require("./command/FieldField_CreateForRecordCommand"), exports);
|
55
|
+
__exportStar(require("./command/HealthzCommand"), exports);
|
56
|
+
__exportStar(require("./command/HealthzGetCommand"), exports);
|
57
|
+
__exportStar(require("./command/MetricsCommand"), exports);
|
58
|
+
__exportStar(require("./command/MetricsGetCommand"), exports);
|
59
|
+
__exportStar(require("./command/SecretSecretCommand"), exports);
|
60
|
+
__exportStar(require("./command/SecretSecretEstimateReadCommand"), exports);
|
61
|
+
__exportStar(require("./command/SecretSecretEstimateRecordCommand"), exports);
|
62
|
+
__exportStar(require("./command/SecretSecret_CreateForReadCommand"), exports);
|
63
|
+
__exportStar(require("./command/SecretSecret_CreateForRecordCommand"), exports);
|
64
|
+
__exportStar(require("./command/ValueCommand"), exports);
|
65
|
+
__exportStar(require("./command/ValueListCommand"), exports);
|
66
|
+
__exportStar(require("./estimator/BaseEstimator"), exports);
|
67
|
+
__exportStar(require("./estimator/BillWatchAWSRecordEstimator"), exports);
|
68
|
+
__exportStar(require("./estimator/BillWatchAzureRecordEstimator"), exports);
|
69
|
+
__exportStar(require("./estimator/BillWatchBaseRecordEstimator"), exports);
|
70
|
+
__exportStar(require("./estimator/BillWatchGCPRecordEstimator"), exports);
|
71
|
+
__exportStar(require("./estimator/FieldBaseRecordEstimator"), exports);
|
72
|
+
__exportStar(require("./estimator/FieldCategoryRecordEstimator"), exports);
|
73
|
+
__exportStar(require("./estimator/FieldFieldRecordEstimator"), exports);
|
74
|
+
__exportStar(require("./estimator/SecretSecretReadEstimator"), exports);
|
75
|
+
__exportStar(require("./estimator/SecretSecretRecordEstimator"), exports);
|
40
76
|
__exportStar(require("./meta/CostMetaTable"), exports);
|
41
77
|
__exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
|
42
|
-
__exportStar(require("./row/CostCreateRow"), exports);
|
43
78
|
__exportStar(require("./row/CostRow"), exports);
|
44
79
|
__exportStar(require("./type/Bonus"), exports);
|
45
80
|
__exportStar(require("./type/CalculationOption"), exports);
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,oDAAkC;AAClC,4DAA0C;AAC1C,
|
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,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,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"}
|
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-
|
21
|
-
"namirasoft-
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
23
|
-
"namirasoft-
|
24
|
-
"namirasoft-
|
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.30",
|
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
|
}
|