namirasoft-cost 1.4.30 → 1.4.31
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 -36
- package/dist/estimator/BaseEstimator.d.ts +1 -1
- package/dist/estimator/BaseEstimator.js +1 -1
- package/dist/estimator/BaseEstimator.js.map +1 -1
- package/dist/estimator/BillWatchBaseRecordEstimator.d.ts +1 -1
- package/dist/estimator/BillWatchBaseRecordEstimator.js +1 -1
- package/dist/estimator/BillWatchBaseRecordEstimator.js.map +1 -1
- package/dist/estimator/FieldBaseRecordEstimator.d.ts +1 -1
- package/dist/estimator/FieldBaseRecordEstimator.js +1 -1
- package/dist/estimator/FieldBaseRecordEstimator.js.map +1 -1
- package/dist/estimator/SecretSecretReadEstimator.d.ts +1 -1
- package/dist/estimator/SecretSecretReadEstimator.js +1 -1
- package/dist/estimator/SecretSecretReadEstimator.js.map +1 -1
- package/dist/estimator/SecretSecretRecordEstimator.d.ts +1 -1
- package/dist/estimator/SecretSecretRecordEstimator.js +1 -1
- package/dist/estimator/SecretSecretRecordEstimator.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 +41 -41
- 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/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 +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 +31 -31
- 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/estimator/BaseEstimator.ts +2 -2
- package/src/estimator/BillWatchBaseRecordEstimator.ts +1 -1
- package/src/estimator/FieldBaseRecordEstimator.ts +1 -1
- package/src/estimator/SecretSecretReadEstimator.ts +1 -1
- package/src/estimator/SecretSecretRecordEstimator.ts +1 -1
- package/src/index.ts +89 -89
- 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 +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 +101 -101
- 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,37 +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/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
|
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
|
37
37
|
src/type/Usage.ts
|
@@ -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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A4B,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvF,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,
|
1
|
+
{"version":3,"file":"BillWatchBaseRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchBaseRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAC/D,mDAAgD;AAChD,yCAAsC;AACtC,oDAAiD;AAEjD,MAAsB,4BAA6B,SAAQ,6BAAa;IAG3D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvF,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,CAAC;;AAnBL,oEAoBC;AAlBU,kDAAqB,GAAG,gCAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TrialBonus } from "../bonus/TrialBonus";
|
2
2
|
import { BaseEstimator } from "./BaseEstimator";
|
3
3
|
export declare abstract class FieldBaseRecordEstimator extends BaseEstimator {
|
4
|
-
|
4
|
+
getBonuses(): TrialBonus[];
|
5
5
|
getUsage(): {
|
6
6
|
name: string;
|
7
7
|
unit: string;
|
@@ -6,7 +6,7 @@ const TrialBonus_1 = require("../bonus/TrialBonus");
|
|
6
6
|
const BaseEstimator_1 = require("./BaseEstimator");
|
7
7
|
const Usage_1 = require("../type/Usage");
|
8
8
|
class FieldBaseRecordEstimator extends BaseEstimator_1.BaseEstimator {
|
9
|
-
|
9
|
+
getBonuses() {
|
10
10
|
return [
|
11
11
|
new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
|
12
12
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FieldBaseRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldBaseRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,oDAAiD;AACjD,mDAAgD;AAChD,yCAAsC;AAEtC,MAAsB,wBAAyB,SAAQ,6BAAa;IAEvD,
|
1
|
+
{"version":3,"file":"FieldBaseRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldBaseRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,oDAAiD;AACjD,mDAAgD;AAChD,yCAAsC;AAEtC,MAAsB,wBAAyB,SAAQ,6BAAa;IAEvD,UAAU;QAEf,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;CACJ;AAfD,4DAeC"}
|
@@ -1 +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,
|
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,IAAI,CAAC;SAChC,CAAC;IACN,CAAC;;AApBL,8DAqBC;AAnBU,kCAAQ,GAAG,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SecretSecretRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,2BAA4B,SAAQ,6BAAa;IAGjD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,2BAA2B,CAAC,eAAe,EAAE,QAAQ,EAAE,2BAA2B,CAAC,eAAe,EAAE,CAAC;IAC1H,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,
|
1
|
+
{"version":3,"file":"SecretSecretRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,2BAA4B,SAAQ,6BAAa;IAGjD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,2BAA2B,CAAC,eAAe,EAAE,QAAQ,EAAE,2BAA2B,CAAC,eAAe,EAAE,CAAC;IAC1H,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,GAAG,CAAC;SAC1B,CAAC;IACN,CAAC;;AAnBL,kEAoBC;AAlBU,2CAAe,GAAG,CAAC,CAAC"}
|
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.31",
|
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.30`, 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.30`, 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
|
};
|