namirasoft-cost 1.4.31 → 1.4.32
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 +28 -36
- package/dist/bonus/BaseBonus.d.ts +2 -1
- package/dist/bonus/BaseBonus.js +2 -1
- package/dist/bonus/BaseBonus.js.map +1 -1
- package/dist/bonus/DeactiveBonus.js +1 -1
- package/dist/bonus/DeactiveBonus.js.map +1 -1
- package/dist/bonus/FreeCountBonus.js +1 -1
- package/dist/bonus/FreeCountBonus.js.map +1 -1
- package/dist/bonus/FreeTotalValueBonus.js +1 -1
- package/dist/bonus/FreeTotalValueBonus.js.map +1 -1
- package/dist/bonus/FreeValueBonus.d.ts +33 -0
- package/dist/bonus/FreeValueBonus.js +35 -0
- package/dist/bonus/FreeValueBonus.js.map +1 -0
- package/dist/bonus/LowAmountBonus.js +1 -1
- package/dist/bonus/LowAmountBonus.js.map +1 -1
- package/dist/bonus/LowSecondsBonus.js +1 -1
- package/dist/bonus/LowSecondsBonus.js.map +1 -1
- package/dist/bonus/LowTotalCountBonus.js +1 -1
- package/dist/bonus/LowTotalCountBonus.js.map +1 -1
- package/dist/bonus/LowTotalValueBonus.js +1 -1
- package/dist/bonus/LowTotalValueBonus.js.map +1 -1
- package/dist/bonus/LowValueBonus.d.ts +10 -0
- package/dist/bonus/LowValueBonus.js +27 -0
- package/dist/bonus/LowValueBonus.js.map +1 -0
- package/dist/bonus/TrialBonus.js +1 -1
- package/dist/bonus/TrialBonus.js.map +1 -1
- 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 +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/FreeValueBonus.ts +25 -0
- 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/LowValueBonus.ts +15 -0
- 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/SecretSecretReadEstimator.ts +0 -1
- package/src/index.ts +91 -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,29 @@
|
|
1
|
-
src/bonus/BaseBonus.ts
|
2
|
-
src/bonus/DeactiveBonus.ts
|
3
|
-
src/bonus/FreeCountBonus.ts
|
4
|
-
src/bonus/FreeTotalValueBonus.ts
|
5
|
-
src/bonus/
|
6
|
-
src/bonus/
|
7
|
-
src/bonus/
|
8
|
-
src/bonus/
|
9
|
-
src/bonus/
|
10
|
-
src/bonus/
|
11
|
-
src/bonus/
|
12
|
-
src/
|
13
|
-
src/
|
14
|
-
src/
|
15
|
-
src/
|
16
|
-
src/
|
17
|
-
src/
|
18
|
-
src/
|
19
|
-
src/
|
20
|
-
src/estimator/
|
21
|
-
src/estimator/
|
22
|
-
src/
|
23
|
-
src/
|
24
|
-
src/
|
25
|
-
src/
|
26
|
-
src/
|
27
|
-
src/
|
28
|
-
src/
|
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/FreeValueBonus.ts
|
6
|
+
src/bonus/LowAmountBonus.ts
|
7
|
+
src/bonus/LowSecondsBonus.ts
|
8
|
+
src/bonus/LowTotalCountBonus.ts
|
9
|
+
src/bonus/LowTotalValueBonus.ts
|
10
|
+
src/bonus/LowValueBonus.ts
|
11
|
+
src/bonus/TrialBonus.ts
|
12
|
+
src/estimator/BaseEstimator.ts
|
13
|
+
src/estimator/BillWatchAWSRecordEstimator.ts
|
14
|
+
src/estimator/BillWatchAzureRecordEstimator.ts
|
15
|
+
src/estimator/BillWatchBaseRecordEstimator.ts
|
16
|
+
src/estimator/BillWatchGCPRecordEstimator.ts
|
17
|
+
src/estimator/FieldBaseRecordEstimator.ts
|
18
|
+
src/estimator/FieldCategoryRecordEstimator.ts
|
19
|
+
src/estimator/FieldFieldRecordEstimator.ts
|
20
|
+
src/estimator/SecretSecretRecordEstimator.ts
|
21
|
+
src/estimator/SecretSecretReadEstimator.ts
|
22
|
+
src/type/Bonus.ts
|
23
|
+
src/type/CalculationOption.ts
|
24
|
+
src/type/Estimation.ts
|
25
|
+
src/type/EstimationOption.ts
|
26
|
+
src/type/EstimationUsage.ts
|
27
|
+
src/type/Period.ts
|
28
|
+
src/type/SimulationOption.ts
|
37
29
|
src/type/Usage.ts
|
@@ -2,7 +2,8 @@ import { Estimation } from "../type/Estimation";
|
|
2
2
|
import { EstimationOption } from "../type/EstimationOption";
|
3
3
|
export declare abstract class BaseBonus {
|
4
4
|
name: string;
|
5
|
-
|
5
|
+
unblocker: boolean;
|
6
|
+
constructor(name: string, unblocker: boolean);
|
6
7
|
abstract isFree(option: EstimationOption, estimation: Estimation): Promise<{
|
7
8
|
free: boolean;
|
8
9
|
split?: {
|
package/dist/bonus/BaseBonus.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BaseBonus.js","sourceRoot":"","sources":["../../src/bonus/BaseBonus.ts"],"names":[],"mappings":";;;AAGA,MAAsB,SAAS;IAE3B,YAAmB,IAAY;
|
1
|
+
{"version":3,"file":"BaseBonus.js","sourceRoot":"","sources":["../../src/bonus/BaseBonus.ts"],"names":[],"mappings":";;;AAGA,MAAsB,SAAS;IAE3B,YAAmB,IAAY,EAAS,SAAkB;QAAvC,SAAI,GAAJ,IAAI,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAS;IACxD,CAAC;CAON;AAVD,8BAUC;AAAA,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DeactiveBonus.js","sourceRoot":"","sources":["../../src/bonus/DeactiveBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAExC,YAAmB,KAAa;QAE5B,KAAK,CAAC,UAAU,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"DeactiveBonus.js","sourceRoot":"","sources":["../../src/bonus/DeactiveBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAExC,YAAmB,KAAa;QAE5B,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAFV,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACpC,CAAC;KAAA;CACJ;AAVD,sCAUC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.FreeCountBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class FreeCountBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(count) {
|
16
|
-
super("Free Count");
|
16
|
+
super("Free Count", true);
|
17
17
|
this.count = count;
|
18
18
|
}
|
19
19
|
isFree(option, _) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FreeCountBonus.js","sourceRoot":"","sources":["../../src/bonus/FreeCountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAEzC,YAAmB,KAAa;QAE5B,KAAK,CAAC,YAAY,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"FreeCountBonus.js","sourceRoot":"","sources":["../../src/bonus/FreeCountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAEzC,YAAmB,KAAa;QAE5B,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAFX,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACjD,CAAC;KAAA;CACJ;AAVD,wCAUC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.FreeTotalValueBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class FreeTotalValueBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(value) {
|
16
|
-
super("Free Total Value");
|
16
|
+
super("Free Total Value", true);
|
17
17
|
this.value = value;
|
18
18
|
}
|
19
19
|
isFree(option, _) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FreeTotalValueBonus.js","sourceRoot":"","sources":["../../src/bonus/FreeTotalValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,mBAAoB,SAAQ,qBAAS;IAE9C,YAAmB,KAAa;QAE5B,KAAK,CAAC,kBAAkB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"FreeTotalValueBonus.js","sourceRoot":"","sources":["../../src/bonus/FreeTotalValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,mBAAoB,SAAQ,qBAAS;IAE9C,YAAmB,KAAa;QAE5B,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAFjB,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,IAAI,QAAQ,GAAG,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC;YAC/C,IAAI,QAAQ,GAAG,CAAC,EAChB,CAAC;gBACG,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;gBACtD,IAAI,UAAU,GAAG,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;gBAC3C,IAAI,UAAU,GAAG,CAAC,IAAI,UAAU,GAAG,CAAC,EACpC,CAAC;oBACG,IAAI,IAAI,mCAAQ,MAAM,KAAE,WAAW,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,CAAC;oBACrE,IAAI,IAAI,mCAAQ,MAAM,KAAE,KAAK,EAAE,UAAU,GAAE,CAAC;oBAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;gBAC1D,CAAC;qBACI,IAAI,UAAU,GAAG,CAAC;oBACnB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAC/B,CAAC;YACD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC1B,CAAC;KAAA;CACJ;AAxBD,kDAwBC;AAAA,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Estimation } from "../type/Estimation";
|
2
|
+
import { EstimationOption } from "../type/EstimationOption";
|
3
|
+
import { BaseBonus } from "./BaseBonus";
|
4
|
+
export declare class FreeValueBonus extends BaseBonus {
|
5
|
+
value: number;
|
6
|
+
constructor(value: number);
|
7
|
+
isFree(option: EstimationOption, _: Estimation): Promise<{
|
8
|
+
free: boolean;
|
9
|
+
split: {
|
10
|
+
free: {
|
11
|
+
total_value: number;
|
12
|
+
value: number;
|
13
|
+
period: import("..").Period;
|
14
|
+
total_count: number;
|
15
|
+
number: number;
|
16
|
+
active: boolean;
|
17
|
+
trial_started_at: Date | null;
|
18
|
+
};
|
19
|
+
paids: {
|
20
|
+
value: number;
|
21
|
+
period: import("..").Period;
|
22
|
+
total_count: number;
|
23
|
+
number: number;
|
24
|
+
total_value: number;
|
25
|
+
active: boolean;
|
26
|
+
trial_started_at: Date | null;
|
27
|
+
}[];
|
28
|
+
};
|
29
|
+
} | {
|
30
|
+
free: boolean;
|
31
|
+
split?: undefined;
|
32
|
+
}>;
|
33
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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.FreeValueBonus = void 0;
|
13
|
+
const BaseBonus_1 = require("./BaseBonus");
|
14
|
+
class FreeValueBonus extends BaseBonus_1.BaseBonus {
|
15
|
+
constructor(value) {
|
16
|
+
super("Free Value", true);
|
17
|
+
this.value = value;
|
18
|
+
}
|
19
|
+
isFree(option, _) {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
let exceeded = option.value - this.value;
|
22
|
+
if (exceeded > 0) {
|
23
|
+
let value_free = this.value;
|
24
|
+
let value_paid = exceeded;
|
25
|
+
let free = Object.assign(Object.assign({}, option), { total_value: option.total_value - value_paid, value: value_free });
|
26
|
+
let paid = Object.assign(Object.assign({}, option), { value: value_paid });
|
27
|
+
return { free: true, split: { free, paids: [paid] } };
|
28
|
+
}
|
29
|
+
return { free: true };
|
30
|
+
});
|
31
|
+
}
|
32
|
+
}
|
33
|
+
exports.FreeValueBonus = FreeValueBonus;
|
34
|
+
;
|
35
|
+
//# sourceMappingURL=FreeValueBonus.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FreeValueBonus.js","sourceRoot":"","sources":["../../src/bonus/FreeValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAEzC,YAAmB,KAAa;QAE5B,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAFX,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,IAAI,QAAQ,GAAG,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,IAAI,QAAQ,GAAG,CAAC,EAChB,CAAC;gBACG,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;gBAC5B,IAAI,UAAU,GAAG,QAAQ,CAAC;gBAE1B,IAAI,IAAI,mCAAQ,MAAM,KAAE,WAAW,EAAE,MAAM,CAAC,WAAW,GAAG,UAAU,EAAE,KAAK,EAAE,UAAU,GAAE,CAAC;gBAC1F,IAAI,IAAI,mCAAQ,MAAM,KAAE,KAAK,EAAE,UAAU,GAAE,CAAC;gBAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YAC1D,CAAC;YACD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC1B,CAAC;KAAA;CACJ;AApBD,wCAoBC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.LowAmountBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class LowAmountBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(amount) {
|
16
|
-
super("Low Amount");
|
16
|
+
super("Low Amount", false);
|
17
17
|
this.amount = amount;
|
18
18
|
}
|
19
19
|
isFree(_, estimation) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LowAmountBonus.js","sourceRoot":"","sources":["../../src/bonus/LowAmountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAEzC,YAAmB,MAAc;QAE7B,KAAK,CAAC,YAAY,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"LowAmountBonus.js","sourceRoot":"","sources":["../../src/bonus/LowAmountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAEzC,YAAmB,MAAc;QAE7B,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAFZ,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IACK,MAAM,CAAC,CAAmB,EAAE,UAAsB;;YAEpD,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QACtD,CAAC;KAAA;CACJ;AAVD,wCAUC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.LowSecondsBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class LowSecondsBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(seconds) {
|
16
|
-
super("Low Seconds");
|
16
|
+
super("Low Seconds", false);
|
17
17
|
this.seconds = seconds;
|
18
18
|
}
|
19
19
|
isFree(_, estimation) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LowSecondsBonus.js","sourceRoot":"","sources":["../../src/bonus/LowSecondsBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,eAAgB,SAAQ,qBAAS;IAE1C,YAAmB,OAAe;QAE9B,KAAK,CAAC,aAAa,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"LowSecondsBonus.js","sourceRoot":"","sources":["../../src/bonus/LowSecondsBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,eAAgB,SAAQ,qBAAS;IAE1C,YAAmB,OAAe;QAE9B,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAFb,YAAO,GAAP,OAAO,CAAQ;IAGlC,CAAC;IACK,MAAM,CAAC,CAAmB,EAAE,UAAsB;;YAEpD,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACxD,CAAC;KAAA;CACJ;AAVD,0CAUC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.LowTotalCountBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class LowTotalCountBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(count) {
|
16
|
-
super("Low Total Count");
|
16
|
+
super("Low Total Count", true);
|
17
17
|
this.count = count;
|
18
18
|
}
|
19
19
|
isFree(option, _) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LowTotalCountBonus.js","sourceRoot":"","sources":["../../src/bonus/LowTotalCountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,kBAAmB,SAAQ,qBAAS;IAE7C,YAAmB,KAAa;QAE5B,KAAK,CAAC,iBAAiB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"LowTotalCountBonus.js","sourceRoot":"","sources":["../../src/bonus/LowTotalCountBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,kBAAmB,SAAQ,qBAAS;IAE7C,YAAmB,KAAa;QAE5B,KAAK,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;QAFhB,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACtD,CAAC;KAAA;CACJ;AAVD,gDAUC;AAAA,CAAC"}
|
@@ -13,7 +13,7 @@ exports.LowTotalValueBonus = void 0;
|
|
13
13
|
const BaseBonus_1 = require("./BaseBonus");
|
14
14
|
class LowTotalValueBonus extends BaseBonus_1.BaseBonus {
|
15
15
|
constructor(value) {
|
16
|
-
super("Low Total Value");
|
16
|
+
super("Low Total Value", true);
|
17
17
|
this.value = value;
|
18
18
|
}
|
19
19
|
isFree(option, _) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LowTotalValueBonus.js","sourceRoot":"","sources":["../../src/bonus/LowTotalValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,kBAAmB,SAAQ,qBAAS;IAE7C,YAAmB,KAAa;QAE5B,KAAK,CAAC,iBAAiB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"LowTotalValueBonus.js","sourceRoot":"","sources":["../../src/bonus/LowTotalValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,kBAAmB,SAAQ,qBAAS;IAE7C,YAAmB,KAAa;QAE5B,KAAK,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;QAFhB,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACtD,CAAC;KAAA;CACJ;AAVD,gDAUC;AAAA,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Estimation } from "../type/Estimation";
|
2
|
+
import { EstimationOption } from "../type/EstimationOption";
|
3
|
+
import { BaseBonus } from "./BaseBonus";
|
4
|
+
export declare class LowValueBonus extends BaseBonus {
|
5
|
+
value: number;
|
6
|
+
constructor(value: number);
|
7
|
+
isFree(option: EstimationOption, _: Estimation): Promise<{
|
8
|
+
free: boolean;
|
9
|
+
}>;
|
10
|
+
}
|
@@ -0,0 +1,27 @@
|
|
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.LowValueBonus = void 0;
|
13
|
+
const BaseBonus_1 = require("./BaseBonus");
|
14
|
+
class LowValueBonus extends BaseBonus_1.BaseBonus {
|
15
|
+
constructor(value) {
|
16
|
+
super("Low Value", true);
|
17
|
+
this.value = value;
|
18
|
+
}
|
19
|
+
isFree(option, _) {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
return { free: option.value <= this.value };
|
22
|
+
});
|
23
|
+
}
|
24
|
+
}
|
25
|
+
exports.LowValueBonus = LowValueBonus;
|
26
|
+
;
|
27
|
+
//# sourceMappingURL=LowValueBonus.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LowValueBonus.js","sourceRoot":"","sources":["../../src/bonus/LowValueBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAExC,YAAmB,KAAa;QAE5B,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAFV,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAChD,CAAC;KAAA;CACJ;AAVD,sCAUC;AAAA,CAAC"}
|
package/dist/bonus/TrialBonus.js
CHANGED
@@ -15,7 +15,7 @@ const Period_1 = require("../type/Period");
|
|
15
15
|
const BaseBonus_1 = require("./BaseBonus");
|
16
16
|
class TrialBonus extends BaseBonus_1.BaseBonus {
|
17
17
|
constructor(value, unit) {
|
18
|
-
super("Trial");
|
18
|
+
super("Trial", false);
|
19
19
|
this.value = value;
|
20
20
|
this.unit = unit;
|
21
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TrialBonus.js","sourceRoot":"","sources":["../../src/bonus/TrialBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAGlE,2CAA4C;AAC5C,2CAAwC;AAExC,MAAa,UAAW,SAAQ,qBAAS;IAErC,YAAmB,KAAa,EAAS,IAAkB;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"TrialBonus.js","sourceRoot":"","sources":["../../src/bonus/TrialBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAGlE,2CAA4C;AAC5C,2CAAwC;AAExC,MAAa,UAAW,SAAQ,qBAAS;IAErC,YAAmB,KAAa,EAAS,IAAkB;QAEvD,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAFP,UAAK,GAAL,KAAK,CAAQ;QAAS,SAAI,GAAJ,IAAI,CAAc;IAG3D,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,IAAI,EAAE,KAAK,EAAE,GAAG,mBAAU,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClD,IAAI,aAAa,GAAG,mCAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAA;YAC3F,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,aAAa,EAAE,CAAC;QAC5C,CAAC;KAAA;CACJ;AAZD,gCAYC;AAAA,CAAC"}
|
@@ -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;
|
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;IAG/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;;AAnBL,8DAoBC;AAlBU,kCAAQ,GAAG,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -14,10 +14,12 @@ export * from "./bonus/BaseBonus";
|
|
14
14
|
export * from "./bonus/DeactiveBonus";
|
15
15
|
export * from "./bonus/FreeCountBonus";
|
16
16
|
export * from "./bonus/FreeTotalValueBonus";
|
17
|
+
export * from "./bonus/FreeValueBonus";
|
17
18
|
export * from "./bonus/LowAmountBonus";
|
18
19
|
export * from "./bonus/LowSecondsBonus";
|
19
20
|
export * from "./bonus/LowTotalCountBonus";
|
20
21
|
export * from "./bonus/LowTotalValueBonus";
|
22
|
+
export * from "./bonus/LowValueBonus";
|
21
23
|
export * from "./bonus/TrialBonus";
|
22
24
|
export * from "./command/BillWatchAWSCommand";
|
23
25
|
export * from "./command/BillWatchAWSEstimateRecordCommand";
|
package/dist/index.js
CHANGED
@@ -30,10 +30,12 @@ __exportStar(require("./bonus/BaseBonus"), exports);
|
|
30
30
|
__exportStar(require("./bonus/DeactiveBonus"), exports);
|
31
31
|
__exportStar(require("./bonus/FreeCountBonus"), exports);
|
32
32
|
__exportStar(require("./bonus/FreeTotalValueBonus"), exports);
|
33
|
+
__exportStar(require("./bonus/FreeValueBonus"), exports);
|
33
34
|
__exportStar(require("./bonus/LowAmountBonus"), exports);
|
34
35
|
__exportStar(require("./bonus/LowSecondsBonus"), exports);
|
35
36
|
__exportStar(require("./bonus/LowTotalCountBonus"), exports);
|
36
37
|
__exportStar(require("./bonus/LowTotalValueBonus"), exports);
|
38
|
+
__exportStar(require("./bonus/LowValueBonus"), exports);
|
37
39
|
__exportStar(require("./bonus/TrialBonus"), exports);
|
38
40
|
__exportStar(require("./command/BillWatchAWSCommand"), exports);
|
39
41
|
__exportStar(require("./command/BillWatchAWSEstimateRecordCommand"), 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,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
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,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,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
|
package/package.json
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
{
|
2
|
-
"name": "namirasoft-cost",
|
3
|
-
"title": "Namirasoft Cost NPM Package",
|
4
|
-
"description": "Namira Software Corporation Cost NPM Package",
|
5
|
-
"icon": "logo.png",
|
6
|
-
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
7
|
-
"language": "ts",
|
8
|
-
"framework": "npm",
|
9
|
-
"application": "package",
|
10
|
-
"private": false,
|
11
|
-
"version": "1.4.
|
12
|
-
"author": "Amir Abolhasani",
|
13
|
-
"license": "MIT",
|
14
|
-
"main": "./dist/index.js",
|
15
|
-
"types": "./dist/index.d.ts",
|
16
|
-
"scripts": {
|
17
|
-
"build": ""
|
18
|
-
},
|
19
|
-
"dependencies": {
|
20
|
-
"namirasoft-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.32",
|
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
|
};
|