namirasoft-cost 1.4.44 → 1.4.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ns-sdkg-dir-deep +3 -3
- package/.ns-sdkg-file-keep +27 -27
- package/dist/estimator/BaseEstimator.js +1 -1
- package/dist/estimator/BaseEstimator.js.map +1 -1
- package/dist/estimator/LogLogGroupReadEstimator.d.ts +15 -0
- package/dist/estimator/LogLogGroupReadEstimator.js +26 -0
- package/dist/estimator/LogLogGroupReadEstimator.js.map +1 -0
- package/dist/estimator/LogLogGroupRecordEstimator.d.ts +17 -0
- package/dist/estimator/LogLogGroupRecordEstimator.js +29 -0
- package/dist/estimator/LogLogGroupRecordEstimator.js.map +1 -0
- package/dist/estimator/SecretSecretReadEstimator.d.ts +1 -1
- package/dist/estimator/SecretSecretReadEstimator.js +2 -2
- package/dist/estimator/SecretSecretReadEstimator.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- 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 -47
- package/src/NamirasoftCostServerBillWatchAzure.ts +47 -47
- package/src/NamirasoftCostServerBillWatchGCP.ts +47 -47
- package/src/NamirasoftCostServerCost.ts +51 -51
- package/src/NamirasoftCostServerFieldCategory.ts +47 -47
- package/src/NamirasoftCostServerFieldField.ts +47 -47
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerMetrics.ts +35 -35
- package/src/NamirasoftCostServerSecretSecret.ts +61 -61
- package/src/NamirasoftCostServerValue.ts +36 -36
- package/src/bonus/BaseBonus.ts +13 -13
- package/src/bonus/DeactiveBonus.ts +14 -14
- package/src/bonus/FreeCountBonus.ts +14 -14
- package/src/bonus/FreeTotalValueBonus.ts +28 -28
- package/src/bonus/FreeValueBonus.ts +24 -24
- package/src/bonus/LowAmountBonus.ts +14 -14
- package/src/bonus/LowSecondsBonus.ts +14 -14
- package/src/bonus/LowTotalValueBonus.ts +14 -14
- package/src/bonus/LowValueBonus.ts +14 -14
- package/src/bonus/TrialBonus.ts +18 -18
- package/src/command/BillWatchAWSCommand.ts +33 -33
- package/src/command/BillWatchAWSEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchAWS_CreateForRecordCommand.ts +118 -118
- package/src/command/BillWatchAzureCommand.ts +33 -33
- package/src/command/BillWatchAzureEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchAzure_CreateForRecordCommand.ts +118 -118
- package/src/command/BillWatchGCPCommand.ts +33 -33
- package/src/command/BillWatchGCPEstimateRecordCommand.ts +109 -109
- package/src/command/BillWatchGCP_CreateForRecordCommand.ts +118 -118
- package/src/command/CostCommand.ts +33 -33
- package/src/command/CostGroupedCommand.ts +154 -154
- package/src/command/CostListCommand.ts +44 -44
- package/src/command/FieldCategoryCommand.ts +33 -33
- package/src/command/FieldCategoryEstimateRecordCommand.ts +109 -109
- package/src/command/FieldCategory_CreateForRecordCommand.ts +118 -118
- package/src/command/FieldFieldCommand.ts +33 -33
- package/src/command/FieldFieldEstimateRecordCommand.ts +109 -109
- package/src/command/FieldField_CreateForRecordCommand.ts +118 -118
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/MetricsCommand.ts +31 -31
- package/src/command/MetricsGetCommand.ts +44 -44
- package/src/command/SecretSecretCommand.ts +37 -37
- package/src/command/SecretSecretEstimateReadCommand.ts +109 -109
- package/src/command/SecretSecretEstimateRecordCommand.ts +109 -109
- package/src/command/SecretSecret_CreateForReadCommand.ts +118 -118
- package/src/command/SecretSecret_CreateForRecordCommand.ts +118 -118
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +50 -50
- package/src/enum/DimensionType.ts +31 -31
- package/src/enum/GranularityType.ts +26 -26
- package/src/estimator/BaseEstimator.ts +1 -1
- package/src/estimator/LogLogGroupReadEstimator.ts +26 -0
- package/src/estimator/LogLogGroupRecordEstimator.ts +29 -0
- package/src/estimator/SecretSecretReadEstimator.ts +2 -2
- package/src/index.ts +96 -94
- package/src/meta/CostMetaTable.ts +81 -81
- package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
- package/src/row/CostRow.ts +40 -40
- package/src/row/GroupedResponseRow.ts +26 -26
- package/src/type/Bonus.ts +18 -18
- package/src/type/CalculationOption.ts +33 -33
- package/src/type/Estimation.ts +34 -34
- package/src/type/EstimationOption.ts +31 -31
- package/src/type/EstimationUsage.ts +22 -22
- package/src/type/Period.ts +108 -108
- package/src/type/SimulationOption.ts +29 -29
- package/src/type/Usage.ts +24 -24
package/.ns-sdkg-dir-deep
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/src
|
|
2
|
-
/src/bonus
|
|
3
|
-
/src/estimator
|
|
1
|
+
/src
|
|
2
|
+
/src/bonus
|
|
3
|
+
/src/estimator
|
|
4
4
|
/src/type
|
package/.ns-sdkg-file-keep
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
src/bonus/BaseBonus.ts
|
|
2
|
-
src/bonus/DeactiveBonus.ts
|
|
3
|
-
src/bonus/FreeCountBonus.ts
|
|
4
|
-
src/bonus/FreeTotalValueBonus.ts
|
|
5
|
-
src/bonus/FreeValueBonus.ts
|
|
6
|
-
src/bonus/LowAmountBonus.ts
|
|
7
|
-
src/bonus/LowSecondsBonus.ts
|
|
8
|
-
src/bonus/LowTotalValueBonus.ts
|
|
9
|
-
src/bonus/LowValueBonus.ts
|
|
10
|
-
src/bonus/TrialBonus.ts
|
|
11
|
-
src/estimator/BaseEstimator.ts
|
|
12
|
-
src/estimator/BillWatchAWSRecordEstimator.ts
|
|
13
|
-
src/estimator/BillWatchAzureRecordEstimator.ts
|
|
14
|
-
src/estimator/BillWatchBaseRecordEstimator.ts
|
|
15
|
-
src/estimator/BillWatchGCPRecordEstimator.ts
|
|
16
|
-
src/estimator/FieldBaseRecordEstimator.ts
|
|
17
|
-
src/estimator/FieldCategoryRecordEstimator.ts
|
|
18
|
-
src/estimator/FieldFieldRecordEstimator.ts
|
|
19
|
-
src/estimator/SecretSecretRecordEstimator.ts
|
|
20
|
-
src/estimator/SecretSecretReadEstimator.ts
|
|
21
|
-
src/type/Bonus.ts
|
|
22
|
-
src/type/CalculationOption.ts
|
|
23
|
-
src/type/Estimation.ts
|
|
24
|
-
src/type/EstimationOption.ts
|
|
25
|
-
src/type/EstimationUsage.ts
|
|
26
|
-
src/type/Period.ts
|
|
27
|
-
src/type/SimulationOption.ts
|
|
1
|
+
src/bonus/BaseBonus.ts
|
|
2
|
+
src/bonus/DeactiveBonus.ts
|
|
3
|
+
src/bonus/FreeCountBonus.ts
|
|
4
|
+
src/bonus/FreeTotalValueBonus.ts
|
|
5
|
+
src/bonus/FreeValueBonus.ts
|
|
6
|
+
src/bonus/LowAmountBonus.ts
|
|
7
|
+
src/bonus/LowSecondsBonus.ts
|
|
8
|
+
src/bonus/LowTotalValueBonus.ts
|
|
9
|
+
src/bonus/LowValueBonus.ts
|
|
10
|
+
src/bonus/TrialBonus.ts
|
|
11
|
+
src/estimator/BaseEstimator.ts
|
|
12
|
+
src/estimator/BillWatchAWSRecordEstimator.ts
|
|
13
|
+
src/estimator/BillWatchAzureRecordEstimator.ts
|
|
14
|
+
src/estimator/BillWatchBaseRecordEstimator.ts
|
|
15
|
+
src/estimator/BillWatchGCPRecordEstimator.ts
|
|
16
|
+
src/estimator/FieldBaseRecordEstimator.ts
|
|
17
|
+
src/estimator/FieldCategoryRecordEstimator.ts
|
|
18
|
+
src/estimator/FieldFieldRecordEstimator.ts
|
|
19
|
+
src/estimator/SecretSecretRecordEstimator.ts
|
|
20
|
+
src/estimator/SecretSecretReadEstimator.ts
|
|
21
|
+
src/type/Bonus.ts
|
|
22
|
+
src/type/CalculationOption.ts
|
|
23
|
+
src/type/Estimation.ts
|
|
24
|
+
src/type/EstimationOption.ts
|
|
25
|
+
src/type/EstimationUsage.ts
|
|
26
|
+
src/type/Period.ts
|
|
27
|
+
src/type/SimulationOption.ts
|
|
28
28
|
src/type/Usage.ts
|
|
@@ -18,7 +18,7 @@ class BaseEstimator {
|
|
|
18
18
|
let percent = seconds / 3600;
|
|
19
19
|
let fee_object = this.getFee();
|
|
20
20
|
let fee = option.active ? fee_object.active : fee_object.deactive;
|
|
21
|
-
let amount = percent * fee * option.value;
|
|
21
|
+
let amount = Math.round(percent * fee * option.value);
|
|
22
22
|
let currency = "USD";
|
|
23
23
|
let estimation = {
|
|
24
24
|
option,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEstimator.js","sourceRoot":"","sources":["../../src/estimator/BaseEstimator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,2CAA4C;AAE5C,MAAsB,aAAa;IAEzB,QAAQ;6DAAC,MAAwB,EAAE,kBAA2B,IAAI;YAEpE,IAAI,OAAO,GAAG,mBAAU,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClD,IAAI,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;YAC7B,IAAI,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC/B,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;YAElE,IAAI,MAAM,GAAG,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseEstimator.js","sourceRoot":"","sources":["../../src/estimator/BaseEstimator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,2CAA4C;AAE5C,MAAsB,aAAa;IAEzB,QAAQ;6DAAC,MAAwB,EAAE,kBAA2B,IAAI;YAEpE,IAAI,OAAO,GAAG,mBAAU,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClD,IAAI,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;YAC7B,IAAI,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC/B,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;YAElE,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YACtD,IAAI,QAAQ,GAAG,KAAK,CAAC;YAErB,IAAI,UAAU,GAAe;gBACzB,MAAM;gBACN,OAAO;gBACP,KAAK,kBACD,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,IAAI,CAAC,QAAQ,EAAE,CACrB;gBACD,GAAG;gBACH,MAAM;gBACN,QAAQ;gBACR,IAAI,EAAE,SAAS;aAClB,CAAC;YAEF,IAAI,GAAG,GAAiB,EAAE,CAAC;YAC3B,IAAI,eAAe,EACnB,CAAC;gBACG,IAAI,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChC,KAAK,IAAI,KAAK,IAAI,OAAO,EACzB,CAAC;oBACG,IAAI,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;oBACjD,IAAI,GAAG,CAAC,IAAI,EACZ,CAAC;wBACG,IAAI,GAAG,CAAC,KAAK,EACb,CAAC;4BACG,IAAI,eAAe,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;4BACjE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;4BAClD,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAC;4BAC7B,KAAK,IAAI,eAAe,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK;gCACvC,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;wBACjE,CAAC;6BAED,CAAC;4BACG,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;4BACxB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;wBACzB,CAAC;wBACD,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;YAED,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CAIJ;AAzDD,sCAyDC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
|
|
2
|
+
import { BaseEstimator } from "./BaseEstimator";
|
|
3
|
+
export declare class LogLogGroupReadEstimator extends BaseEstimator {
|
|
4
|
+
static PER_GIGABYTE: number;
|
|
5
|
+
static FREE_TOTAL_VALUE: number;
|
|
6
|
+
getFee(): {
|
|
7
|
+
active: number;
|
|
8
|
+
deactive: number;
|
|
9
|
+
};
|
|
10
|
+
getUsage(): {
|
|
11
|
+
name: string;
|
|
12
|
+
unit: string;
|
|
13
|
+
};
|
|
14
|
+
getBonuses(): FreeTotalValueBonus[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogLogGroupReadEstimator = void 0;
|
|
4
|
+
const FreeTotalValueBonus_1 = require("../bonus/FreeTotalValueBonus");
|
|
5
|
+
const Usage_1 = require("../type/Usage");
|
|
6
|
+
const BaseEstimator_1 = require("./BaseEstimator");
|
|
7
|
+
class LogLogGroupReadEstimator extends BaseEstimator_1.BaseEstimator {
|
|
8
|
+
getFee() {
|
|
9
|
+
return { active: LogLogGroupReadEstimator.PER_GIGABYTE, deactive: LogLogGroupReadEstimator.PER_GIGABYTE };
|
|
10
|
+
}
|
|
11
|
+
getUsage() {
|
|
12
|
+
return {
|
|
13
|
+
name: Usage_1.Usage.APICALL.name,
|
|
14
|
+
unit: Usage_1.Usage.APICALL.units.REQUEST.name
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
getBonuses() {
|
|
18
|
+
return [
|
|
19
|
+
new FreeTotalValueBonus_1.FreeTotalValueBonus(LogLogGroupReadEstimator.FREE_TOTAL_VALUE)
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.LogLogGroupReadEstimator = LogLogGroupReadEstimator;
|
|
24
|
+
LogLogGroupReadEstimator.PER_GIGABYTE = 20 / 1024 / 1024;
|
|
25
|
+
LogLogGroupReadEstimator.FREE_TOTAL_VALUE = 1024 * 1024;
|
|
26
|
+
//# sourceMappingURL=LogLogGroupReadEstimator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogLogGroupReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/LogLogGroupReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,wBAAyB,SAAQ,6BAAa;IAI9C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,wBAAwB,CAAC,YAAY,EAAE,QAAQ,EAAE,wBAAwB,CAAC,YAAY,EAAE,CAAC;IAC9G,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,wBAAwB,CAAC,gBAAgB,CAAC;SACrE,CAAC;IACN,CAAC;;AApBL,4DAqBC;AAnBU,qCAAY,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAChC,yCAAgB,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FreeCountBonus } from "../bonus/FreeCountBonus";
|
|
2
|
+
import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
|
|
3
|
+
import { BaseEstimator } from "./BaseEstimator";
|
|
4
|
+
export declare class LogLogGroupRecordEstimator extends BaseEstimator {
|
|
5
|
+
static PER_HOUR_ACTIVE_PER_KILOBYTE: number;
|
|
6
|
+
static FREE_COUNT: number;
|
|
7
|
+
static FREE_TOTAL_VALUE: number;
|
|
8
|
+
getFee(): {
|
|
9
|
+
active: number;
|
|
10
|
+
deactive: number;
|
|
11
|
+
};
|
|
12
|
+
getUsage(): {
|
|
13
|
+
name: string;
|
|
14
|
+
unit: string;
|
|
15
|
+
};
|
|
16
|
+
getBonuses(): (FreeCountBonus | FreeTotalValueBonus)[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogLogGroupRecordEstimator = void 0;
|
|
4
|
+
const FreeCountBonus_1 = require("../bonus/FreeCountBonus");
|
|
5
|
+
const FreeTotalValueBonus_1 = require("../bonus/FreeTotalValueBonus");
|
|
6
|
+
const Usage_1 = require("../type/Usage");
|
|
7
|
+
const BaseEstimator_1 = require("./BaseEstimator");
|
|
8
|
+
class LogLogGroupRecordEstimator extends BaseEstimator_1.BaseEstimator {
|
|
9
|
+
getFee() {
|
|
10
|
+
return { active: LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE, deactive: LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE };
|
|
11
|
+
}
|
|
12
|
+
getUsage() {
|
|
13
|
+
return {
|
|
14
|
+
name: Usage_1.Usage.Time.name,
|
|
15
|
+
unit: Usage_1.Usage.Time.units.Hour.name
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
getBonuses() {
|
|
19
|
+
return [
|
|
20
|
+
new FreeCountBonus_1.FreeCountBonus(LogLogGroupRecordEstimator.FREE_COUNT),
|
|
21
|
+
new FreeTotalValueBonus_1.FreeTotalValueBonus(LogLogGroupRecordEstimator.FREE_TOTAL_VALUE)
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.LogLogGroupRecordEstimator = LogLogGroupRecordEstimator;
|
|
26
|
+
LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE = 70 / 1024 / 1024;
|
|
27
|
+
LogLogGroupRecordEstimator.FREE_COUNT = 5;
|
|
28
|
+
LogLogGroupRecordEstimator.FREE_TOTAL_VALUE = 100 * 1024;
|
|
29
|
+
//# sourceMappingURL=LogLogGroupRecordEstimator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogLogGroupRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/LogLogGroupRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,0BAA2B,SAAQ,6BAAa;IAKhD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,0BAA0B,CAAC,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,CAAC,4BAA4B,EAAE,CAAC;IAClJ,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,UAAU;QAEf,OAAO;YACH,IAAI,+BAAc,CAAC,0BAA0B,CAAC,UAAU,CAAC;YACzD,IAAI,yCAAmB,CAAC,0BAA0B,CAAC,gBAAgB,CAAC;SACvE,CAAC;IACN,CAAC;;AAtBL,gEAuBC;AArBU,uDAA4B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAChD,qCAAU,GAAG,CAAC,CAAC;AACf,2CAAgB,GAAG,GAAG,GAAG,IAAI,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
|
|
|
2
2
|
import { BaseEstimator } from "./BaseEstimator";
|
|
3
3
|
export declare class SecretSecretReadEstimator extends BaseEstimator {
|
|
4
4
|
static PER_CALL: number;
|
|
5
|
-
static
|
|
5
|
+
static FREE_TOTAL_VALUE: number;
|
|
6
6
|
getFee(): {
|
|
7
7
|
active: number;
|
|
8
8
|
deactive: number;
|
|
@@ -16,11 +16,11 @@ class SecretSecretReadEstimator extends BaseEstimator_1.BaseEstimator {
|
|
|
16
16
|
}
|
|
17
17
|
getBonuses() {
|
|
18
18
|
return [
|
|
19
|
-
new FreeTotalValueBonus_1.FreeTotalValueBonus(SecretSecretReadEstimator.
|
|
19
|
+
new FreeTotalValueBonus_1.FreeTotalValueBonus(SecretSecretReadEstimator.FREE_TOTAL_VALUE)
|
|
20
20
|
];
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.SecretSecretReadEstimator = SecretSecretReadEstimator;
|
|
24
24
|
SecretSecretReadEstimator.PER_CALL = 1;
|
|
25
|
-
SecretSecretReadEstimator.
|
|
25
|
+
SecretSecretReadEstimator.FREE_TOTAL_VALUE = 1000;
|
|
26
26
|
//# sourceMappingURL=SecretSecretReadEstimator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecretSecretReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,yBAA0B,SAAQ,6BAAa;IAI/C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC;IACxG,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,yBAAyB,CAAC,
|
|
1
|
+
{"version":3,"file":"SecretSecretReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,yBAA0B,SAAQ,6BAAa;IAI/C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC;IACxG,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;SACtE,CAAC;IACN,CAAC;;AApBL,8DAqBC;AAnBU,kCAAQ,GAAG,CAAC,CAAC;AACb,0CAAgB,GAAG,IAAI,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from "./estimator/BillWatchGCPRecordEstimator";
|
|
|
59
59
|
export * from "./estimator/FieldBaseRecordEstimator";
|
|
60
60
|
export * from "./estimator/FieldCategoryRecordEstimator";
|
|
61
61
|
export * from "./estimator/FieldFieldRecordEstimator";
|
|
62
|
+
export * from "./estimator/LogLogGroupReadEstimator";
|
|
63
|
+
export * from "./estimator/LogLogGroupRecordEstimator";
|
|
62
64
|
export * from "./estimator/SecretSecretReadEstimator";
|
|
63
65
|
export * from "./estimator/SecretSecretRecordEstimator";
|
|
64
66
|
export * from "./meta/CostMetaTable";
|
package/dist/index.js
CHANGED
|
@@ -75,6 +75,8 @@ __exportStar(require("./estimator/BillWatchGCPRecordEstimator"), exports);
|
|
|
75
75
|
__exportStar(require("./estimator/FieldBaseRecordEstimator"), exports);
|
|
76
76
|
__exportStar(require("./estimator/FieldCategoryRecordEstimator"), exports);
|
|
77
77
|
__exportStar(require("./estimator/FieldFieldRecordEstimator"), exports);
|
|
78
|
+
__exportStar(require("./estimator/LogLogGroupReadEstimator"), exports);
|
|
79
|
+
__exportStar(require("./estimator/LogLogGroupRecordEstimator"), exports);
|
|
78
80
|
__exportStar(require("./estimator/SecretSecretReadEstimator"), exports);
|
|
79
81
|
__exportStar(require("./estimator/SecretSecretRecordEstimator"), exports);
|
|
80
82
|
__exportStar(require("./meta/CostMetaTable"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,yDAAuC;AACvC,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,2DAAyC;AACzC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,uEAAqD;AACrD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,2DAAyC;AACzC,+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-core": "^1.4.80",
|
|
21
|
-
"namirasoft-site": "^1.4.39",
|
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
-
"namirasoft-account": "^1.4.85",
|
|
24
|
-
"namirasoft-schema": "^1.4.25"
|
|
25
|
-
},
|
|
26
|
-
"bin": {
|
|
27
|
-
"ns-cost": "./dist/command/cli.js"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-cost",
|
|
3
|
+
"title": "Namirasoft Cost NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation Cost NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.4.45",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": ""
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"namirasoft-core": "^1.4.80",
|
|
21
|
+
"namirasoft-site": "^1.4.39",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
+
"namirasoft-account": "^1.4.85",
|
|
24
|
+
"namirasoft-schema": "^1.4.25"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"ns-cost": "./dist/command/cli.js"
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
-
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
|
23
|
-
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
|
24
|
-
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
|
25
|
-
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
|
26
|
-
import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
|
27
|
-
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
|
28
|
-
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
|
29
|
-
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
|
30
|
-
import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
|
|
31
|
-
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
|
32
|
-
import { TokenManager } from "namirasoft-account";
|
|
33
|
-
|
|
34
|
-
export class NamirasoftCostServer extends NSABaseServer
|
|
35
|
-
{
|
|
36
|
-
healthz: NamirasoftCostServerHealthz;
|
|
37
|
-
metrics: NamirasoftCostServerMetrics;
|
|
38
|
-
value: NamirasoftCostServerValue;
|
|
39
|
-
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
|
40
|
-
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
|
41
|
-
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
|
42
|
-
field_category: NamirasoftCostServerFieldCategory;
|
|
43
|
-
field_field: NamirasoftCostServerFieldField;
|
|
44
|
-
secret_secret: NamirasoftCostServerSecretSecret;
|
|
45
|
-
cost: NamirasoftCostServerCost;
|
|
46
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
|
-
{
|
|
48
|
-
super(base_url, `1.4.44`, manager, onError);
|
|
49
|
-
this.healthz = new NamirasoftCostServerHealthz(this);
|
|
50
|
-
this.metrics = new NamirasoftCostServerMetrics(this);
|
|
51
|
-
this.value = new NamirasoftCostServerValue(this);
|
|
52
|
-
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
|
53
|
-
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
|
54
|
-
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
|
55
|
-
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
|
56
|
-
this.field_field = new NamirasoftCostServerFieldField(this);
|
|
57
|
-
this.secret_secret = new NamirasoftCostServerSecretSecret(this);
|
|
58
|
-
this.cost = new NamirasoftCostServerCost(this);
|
|
59
|
-
}
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
+
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
|
23
|
+
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
|
24
|
+
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
|
25
|
+
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
|
26
|
+
import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
|
27
|
+
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
|
28
|
+
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
|
29
|
+
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
|
30
|
+
import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
|
|
31
|
+
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
|
32
|
+
import { TokenManager } from "namirasoft-account";
|
|
33
|
+
|
|
34
|
+
export class NamirasoftCostServer extends NSABaseServer
|
|
35
|
+
{
|
|
36
|
+
healthz: NamirasoftCostServerHealthz;
|
|
37
|
+
metrics: NamirasoftCostServerMetrics;
|
|
38
|
+
value: NamirasoftCostServerValue;
|
|
39
|
+
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
|
40
|
+
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
|
41
|
+
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
|
42
|
+
field_category: NamirasoftCostServerFieldCategory;
|
|
43
|
+
field_field: NamirasoftCostServerFieldField;
|
|
44
|
+
secret_secret: NamirasoftCostServerSecretSecret;
|
|
45
|
+
cost: NamirasoftCostServerCost;
|
|
46
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
|
+
{
|
|
48
|
+
super(base_url, `1.4.44`, manager, onError);
|
|
49
|
+
this.healthz = new NamirasoftCostServerHealthz(this);
|
|
50
|
+
this.metrics = new NamirasoftCostServerMetrics(this);
|
|
51
|
+
this.value = new NamirasoftCostServerValue(this);
|
|
52
|
+
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
|
53
|
+
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
|
54
|
+
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
|
55
|
+
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
|
56
|
+
this.field_field = new NamirasoftCostServerFieldField(this);
|
|
57
|
+
this.secret_secret = new NamirasoftCostServerSecretSecret(this);
|
|
58
|
+
this.cost = new NamirasoftCostServerCost(this);
|
|
59
|
+
}
|
|
60
60
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
22
|
-
|
|
23
|
-
export class NamirasoftCostServerBase
|
|
24
|
-
{
|
|
25
|
-
public server: NamirasoftCostServer;
|
|
26
|
-
constructor(server: NamirasoftCostServer)
|
|
27
|
-
{
|
|
28
|
-
this.server = server;
|
|
29
|
-
}
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
22
|
+
|
|
23
|
+
export class NamirasoftCostServerBase
|
|
24
|
+
{
|
|
25
|
+
public server: NamirasoftCostServer;
|
|
26
|
+
constructor(server: NamirasoftCostServer)
|
|
27
|
+
{
|
|
28
|
+
this.server = server;
|
|
29
|
+
}
|
|
30
30
|
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { CalculationOption } from "./type/CalculationOption";
|
|
22
|
-
import { CostRow } from "./row/CostRow";
|
|
23
|
-
import { Estimation } from "./type/Estimation";
|
|
24
|
-
import { EstimationOption } from "./type/EstimationOption";
|
|
25
|
-
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
26
|
-
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
27
|
-
|
|
28
|
-
export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
|
|
29
|
-
{
|
|
30
|
-
constructor(server: NamirasoftCostServer)
|
|
31
|
-
{
|
|
32
|
-
super(server);
|
|
33
|
-
this.EstimateRecord = this.EstimateRecord.bind(this);
|
|
34
|
-
this._CreateForRecord = this._CreateForRecord.bind(this);
|
|
35
|
-
}
|
|
36
|
-
async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
|
|
37
|
-
{
|
|
38
|
-
let path = `/estimation/bill-watch/aws/record`;
|
|
39
|
-
let { data } = await this.server._post<Estimation[]>(path, {}, body);
|
|
40
|
-
return data;
|
|
41
|
-
}
|
|
42
|
-
async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
|
|
43
|
-
{
|
|
44
|
-
let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
|
|
45
|
-
let { data } = await this.server._post<CostRow[]>(path, {}, body);
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { CalculationOption } from "./type/CalculationOption";
|
|
22
|
+
import { CostRow } from "./row/CostRow";
|
|
23
|
+
import { Estimation } from "./type/Estimation";
|
|
24
|
+
import { EstimationOption } from "./type/EstimationOption";
|
|
25
|
+
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
26
|
+
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
27
|
+
|
|
28
|
+
export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
|
|
29
|
+
{
|
|
30
|
+
constructor(server: NamirasoftCostServer)
|
|
31
|
+
{
|
|
32
|
+
super(server);
|
|
33
|
+
this.EstimateRecord = this.EstimateRecord.bind(this);
|
|
34
|
+
this._CreateForRecord = this._CreateForRecord.bind(this);
|
|
35
|
+
}
|
|
36
|
+
async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
|
|
37
|
+
{
|
|
38
|
+
let path = `/estimation/bill-watch/aws/record`;
|
|
39
|
+
let { data } = await this.server._post<Estimation[]>(path, {}, body);
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
|
|
43
|
+
{
|
|
44
|
+
let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
|
|
45
|
+
let { data } = await this.server._post<CostRow[]>(path, {}, body);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
48
|
};
|