namirasoft-cost 1.4.26 → 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 -24
- 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 +49 -12
- package/dist/index.js +49 -12
- package/dist/index.js.map +1 -1
- 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/SimulationOption.d.ts +13 -0
- package/dist/type/SimulationOption.js +23 -0
- package/dist/type/SimulationOption.js.map +1 -0
- 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 -52
- 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 -0
- package/src/type/Estimation.ts +35 -35
- package/src/type/EstimationOption.ts +32 -32
- package/src/type/EstimationUsage.ts +22 -22
- package/src/type/Period.ts +101 -101
- package/src/type/SimulationOption.ts +30 -0
- 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
package/.ns-sdkg-dir-deep
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/src
|
2
|
-
/src/bonus
|
3
|
-
/src/estimator
|
1
|
+
/src
|
2
|
+
/src/bonus
|
3
|
+
/src/estimator
|
4
4
|
/src/type
|
package/.ns-sdkg-file-keep
CHANGED
@@ -1,25 +1,37 @@
|
|
1
|
-
src/bonus/BaseBonus.ts
|
2
|
-
src/bonus/DeactiveBonus.ts
|
3
|
-
src/bonus/FreeCountBonus.ts
|
4
|
-
src/bonus/FreeTotalValueBonus.ts
|
5
|
-
src/bonus/LowAmountBonus.ts
|
6
|
-
src/bonus/LowSecondsBonus.ts
|
7
|
-
src/bonus/LowTotalCountBonus.ts
|
8
|
-
src/bonus/LowTotalValueBonus.ts
|
9
|
-
src/bonus/TrialBonus.ts
|
10
|
-
src/bonus/BaseEstimator.ts
|
11
|
-
src/bonus/BillWatchAWSRecordEstimator.ts
|
12
|
-
src/bonus/BillWatchAzureRecordEstimator.ts
|
13
|
-
src/bonus/BillWatchBaseEstimator.ts
|
14
|
-
src/bonus/BillWatchGCPRecordEstimator.ts
|
15
|
-
src/bonus/FieldBaseEstimator.ts
|
16
|
-
src/bonus/FieldCategoryRecordEstimator.ts
|
17
|
-
src/bonus/FieldFieldRecordEstimator.ts
|
18
|
-
src/bonus/SecretSecretRecordEstimator.ts
|
19
|
-
src/bonus/SecretSecretReadEstimator.ts
|
20
|
-
src/
|
21
|
-
src/
|
22
|
-
src/
|
23
|
-
src/
|
24
|
-
src/
|
1
|
+
src/bonus/BaseBonus.ts
|
2
|
+
src/bonus/DeactiveBonus.ts
|
3
|
+
src/bonus/FreeCountBonus.ts
|
4
|
+
src/bonus/FreeTotalValueBonus.ts
|
5
|
+
src/bonus/LowAmountBonus.ts
|
6
|
+
src/bonus/LowSecondsBonus.ts
|
7
|
+
src/bonus/LowTotalCountBonus.ts
|
8
|
+
src/bonus/LowTotalValueBonus.ts
|
9
|
+
src/bonus/TrialBonus.ts
|
10
|
+
src/bonus/BaseEstimator.ts
|
11
|
+
src/bonus/BillWatchAWSRecordEstimator.ts
|
12
|
+
src/bonus/BillWatchAzureRecordEstimator.ts
|
13
|
+
src/bonus/BillWatchBaseEstimator.ts
|
14
|
+
src/bonus/BillWatchGCPRecordEstimator.ts
|
15
|
+
src/bonus/FieldBaseEstimator.ts
|
16
|
+
src/bonus/FieldCategoryRecordEstimator.ts
|
17
|
+
src/bonus/FieldFieldRecordEstimator.ts
|
18
|
+
src/bonus/SecretSecretRecordEstimator.ts
|
19
|
+
src/bonus/SecretSecretReadEstimator.ts
|
20
|
+
src/estimator/BaseEstimator.ts
|
21
|
+
src/estimator/BillWatchAWSRecordEstimator.ts
|
22
|
+
src/estimator/BillWatchAzureRecordEstimator.ts
|
23
|
+
src/estimator/BillWatchBaseRecordEstimator.ts
|
24
|
+
src/estimator/BillWatchGCPRecordEstimator.ts
|
25
|
+
src/estimator/FieldBaseRecordEstimator.ts
|
26
|
+
src/estimator/FieldCategoryRecordEstimator.ts
|
27
|
+
src/estimator/FieldFieldRecordEstimator.ts
|
28
|
+
src/estimator/SecretSecretRecordEstimator.ts
|
29
|
+
src/estimator/SecretSecretReadEstimator.ts
|
30
|
+
src/type/Bonus.ts
|
31
|
+
src/type/CalculationOption.ts
|
32
|
+
src/type/Estimation.ts
|
33
|
+
src/type/EstimationOption.ts
|
34
|
+
src/type/EstimationUsage.ts
|
35
|
+
src/type/Period.ts
|
36
|
+
src/type/SimulationOption.ts
|
25
37
|
src/type/Usage.ts
|
@@ -14,7 +14,7 @@ const NamirasoftCostServerSecretSecret_1 = require("./NamirasoftCostServerSecret
|
|
14
14
|
const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
|
15
15
|
class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
16
16
|
constructor(base_url, manager, onError) {
|
17
|
-
super(base_url, `1.4.
|
17
|
+
super(base_url, `1.4.30`, manager, onError);
|
18
18
|
this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
|
19
19
|
this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
|
20
20
|
this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
|
@@ -1,22 +1,11 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
period: Period;
|
11
|
-
row_number: number;
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
22
11
|
}
|
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.Namira
|
|
19
19
|
}
|
20
20
|
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/aws/
|
22
|
+
let path = `/estimation/bill-watch/aws/record`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
27
|
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/aws/
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
|
@@ -1,22 +1,11 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
period: Period;
|
11
|
-
row_number: number;
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
22
11
|
}
|
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.Nami
|
|
19
19
|
}
|
20
20
|
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/azure/
|
22
|
+
let path = `/estimation/bill-watch/azure/record`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
27
|
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/azure/
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/azure/record`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,qCAAqC,CAAC;YACjD,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,+BAA+B,CAAC;YACvE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,gFAoBC;AAAA,CAAC"}
|
@@ -1,22 +1,11 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
period: Period;
|
11
|
-
row_number: number;
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
22
11
|
}
|
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.Namira
|
|
19
19
|
}
|
20
20
|
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/gcp/
|
22
|
+
let path = `/estimation/bill-watch/gcp/record`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
27
|
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/gcp/
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/gcp/record`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CostCreateRow } from "./row/CostCreateRow";
|
2
1
|
import { CostRow } from "./row/CostRow";
|
3
2
|
import { FilterItem } from "namirasoft-core";
|
4
3
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
@@ -10,5 +9,4 @@ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
|
|
10
9
|
rows: CostRow[];
|
11
10
|
count: number;
|
12
11
|
}>;
|
13
|
-
_CreateFor(user_id: string, body: CostCreateRow): Promise<CostRow>;
|
14
12
|
}
|
@@ -17,7 +17,6 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
|
|
17
17
|
constructor(server) {
|
18
18
|
super(server);
|
19
19
|
this.List = this.List.bind(this);
|
20
|
-
this._CreateFor = this._CreateFor.bind(this);
|
21
20
|
}
|
22
21
|
List(filters, page, size, sorts) {
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -28,13 +27,6 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
|
|
28
27
|
return data;
|
29
28
|
});
|
30
29
|
}
|
31
|
-
_CreateFor(user_id, body) {
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
33
|
-
let path = `/application/user/${user_id}/cost`;
|
34
|
-
let { data } = yield this.server._post(path, {}, body);
|
35
|
-
return data;
|
36
|
-
});
|
37
|
-
}
|
38
30
|
}
|
39
31
|
exports.NamirasoftCostServerCost = NamirasoftCostServerCost;
|
40
32
|
;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAE7C,yEAAsE;AACtE,qDAA2C;AAE3C,MAAa,wBAAyB,SAAQ,mDAAwB;IAElE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,YAAY,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC1J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAfD,4DAeC;AAAA,CAAC"}
|
@@ -1,22 +1,11 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
period: Period;
|
11
|
-
row_number: number;
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
22
11
|
}
|
@@ -19,14 +19,14 @@ class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase_1.Namir
|
|
19
19
|
}
|
20
20
|
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/field/category/
|
22
|
+
let path = `/estimation/field/category/record`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
27
|
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/field/category/
|
29
|
+
let path = `/application/user/${user_id}/cost/field/category/record`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerFieldCategory.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerFieldCategory.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,iCAAkC,SAAQ,mDAAwB;IAE3E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,8EAoBC;AAAA,CAAC"}
|
@@ -1,22 +1,11 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerFieldField extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
period: Period;
|
11
|
-
row_number: number;
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
22
11
|
}
|
@@ -19,14 +19,14 @@ class NamirasoftCostServerFieldField extends NamirasoftCostServerBase_1.Namiraso
|
|
19
19
|
}
|
20
20
|
EstimateRecord(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/field/field/
|
22
|
+
let path = `/estimation/field/field/record`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
27
|
_CreateForRecord(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/field/field/
|
29
|
+
let path = `/application/user/${user_id}/cost/field/field/record`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerFieldField.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldField.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerFieldField.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,8BAA+B,SAAQ,mDAAwB;IAExE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,wEAoBC;AAAA,CAAC"}
|
@@ -1,36 +1,13 @@
|
|
1
|
+
import { CalculationOption } from "./type/CalculationOption";
|
1
2
|
import { CostRow } from "./row/CostRow";
|
2
3
|
import { Estimation } from "./type/Estimation";
|
4
|
+
import { EstimationOption } from "./type/EstimationOption";
|
3
5
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
4
6
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
5
|
-
import { Period } from "./type/Period";
|
6
7
|
export declare class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase {
|
7
8
|
constructor(server: NamirasoftCostServer);
|
8
|
-
EstimateRecord(body:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
active: boolean;
|
13
|
-
}): Promise<Estimation>;
|
14
|
-
_CreateForRecord(user_id: string, body: {
|
15
|
-
first_entity_created_at: (Date | null);
|
16
|
-
period: Period;
|
17
|
-
row_number: number;
|
18
|
-
active: boolean;
|
19
|
-
workspace_id: string;
|
20
|
-
resource_id: string;
|
21
|
-
}): Promise<CostRow>;
|
22
|
-
EstimateRead(body: {
|
23
|
-
first_entity_created_at: (Date | null);
|
24
|
-
period: Period;
|
25
|
-
total: number;
|
26
|
-
count: number;
|
27
|
-
}): Promise<Estimation>;
|
28
|
-
_CreateForRead(user_id: string, body: {
|
29
|
-
first_entity_created_at: (Date | null);
|
30
|
-
period: Period;
|
31
|
-
total: number;
|
32
|
-
count: number;
|
33
|
-
workspace_id: string;
|
34
|
-
resource_id: string;
|
35
|
-
}): Promise<CostRow>;
|
9
|
+
EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
|
10
|
+
_CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
11
|
+
EstimateRead(body: EstimationOption): Promise<Estimation[]>;
|
12
|
+
_CreateForRead(user_id: string, body: CalculationOption): Promise<CostRow[]>;
|
36
13
|
}
|
@@ -21,14 +21,14 @@ class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase_1.Namira
|
|
21
21
|
}
|
22
22
|
EstimateRecord(body) {
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
24
|
-
let path = `/estimation/secret/secret/
|
24
|
+
let path = `/estimation/secret/secret/record`;
|
25
25
|
let { data } = yield this.server._post(path, {}, body);
|
26
26
|
return data;
|
27
27
|
});
|
28
28
|
}
|
29
29
|
_CreateForRecord(user_id, body) {
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
31
|
-
let path = `/application/user/${user_id}/cost/secret/secret/
|
31
|
+
let path = `/application/user/${user_id}/cost/secret/secret/record`;
|
32
32
|
let { data } = yield this.server._post(path, {}, body);
|
33
33
|
return data;
|
34
34
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerSecretSecret.js","sourceRoot":"","sources":["../src/NamirasoftCostServerSecretSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"NamirasoftCostServerSecretSecret.js","sourceRoot":"","sources":["../src/NamirasoftCostServerSecretSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,4BAA4B,CAAC;YACpE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,YAAY,CAAC,IAAsB;;YAErC,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,cAAc,CAAC,OAAe,EAAE,IAAuB;;YAEzD,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAlCD,4EAkCC;AAAA,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BillWatchAWSCommand = void 0;
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
5
|
+
const BillWatchAWSEstimateRecordCommand_1 = require("./BillWatchAWSEstimateRecordCommand");
|
6
|
+
const BillWatchAWS_CreateForRecordCommand_1 = require("./BillWatchAWS_CreateForRecordCommand");
|
7
|
+
class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
8
|
+
constructor(argv) {
|
9
|
+
super(argv, {
|
10
|
+
"estimaterecord": BillWatchAWSEstimateRecordCommand_1.BillWatchAWSEstimateRecordCommand,
|
11
|
+
"_createforrecord": BillWatchAWS_CreateForRecordCommand_1.BillWatchAWS_CreateForRecordCommand,
|
12
|
+
});
|
13
|
+
}
|
14
|
+
}
|
15
|
+
exports.BillWatchAWSCommand = BillWatchAWSCommand;
|
16
|
+
;
|
17
|
+
//# sourceMappingURL=BillWatchAWSCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2FAAwF;AACxF,+FAA4F;AAE5F,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,qEAAiC;YACnD,kBAAkB,EAAE,yEAAmC;SAC1D,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
|
@@ -0,0 +1,103 @@
|
|
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.BillWatchAWSEstimateRecordCommand = 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 BillWatchAWSEstimateRecordCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
+
constructor(argv) {
|
19
|
+
super(argv, [], [
|
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: "trial_started_at",
|
70
|
+
short: "",
|
71
|
+
description: "Provides the value of 'trial_started_at' in body",
|
72
|
+
optional: true,
|
73
|
+
args: ["trial_started_at"],
|
74
|
+
defaults: [""]
|
75
|
+
}
|
76
|
+
]);
|
77
|
+
}
|
78
|
+
exec() {
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
80
|
+
let token = this.app.storage.getNSAToken();
|
81
|
+
if (token == null)
|
82
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
83
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
84
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
85
|
+
manager.setValue(token, false);
|
86
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
87
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
88
|
+
let ans = yield server.bill_watch_aws.EstimateRecord({
|
89
|
+
period: this.option_values.period,
|
90
|
+
total_count: this.option_values.total_count,
|
91
|
+
number: this.option_values.number,
|
92
|
+
total_value: this.option_values.total_value,
|
93
|
+
value: this.option_values.value,
|
94
|
+
active: this.option_values.active,
|
95
|
+
trial_started_at: this.option_values.trial_started_at
|
96
|
+
});
|
97
|
+
this.app.logger.success(JSON.stringify(ans));
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}
|
101
|
+
exports.BillWatchAWSEstimateRecordCommand = BillWatchAWSEstimateRecordCommand;
|
102
|
+
;
|
103
|
+
//# sourceMappingURL=BillWatchAWSEstimateRecordCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BillWatchAWSEstimateRecordCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSEstimateRecordCommand.ts"],"names":[],"mappings":"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"}
|