namirasoft-cost 1.4.21 → 1.4.22

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.
Files changed (163) hide show
  1. package/.ns-sdkg-dir-deep +4 -3
  2. package/.ns-sdkg-file-keep +24 -8
  3. package/dist/bonus/BaseBonus.d.ts +13 -0
  4. package/dist/bonus/BaseBonus.js +11 -0
  5. package/dist/bonus/BaseBonus.js.map +1 -0
  6. package/dist/bonus/DeactiveBonus.d.ts +10 -0
  7. package/dist/bonus/DeactiveBonus.js +27 -0
  8. package/dist/bonus/DeactiveBonus.js.map +1 -0
  9. package/dist/bonus/FreeCountBonus.d.ts +10 -0
  10. package/dist/bonus/FreeCountBonus.js +27 -0
  11. package/dist/bonus/FreeCountBonus.js.map +1 -0
  12. package/dist/bonus/FreeTotalValueBonus.d.ts +33 -0
  13. package/dist/bonus/FreeTotalValueBonus.js +39 -0
  14. package/dist/bonus/FreeTotalValueBonus.js.map +1 -0
  15. package/dist/bonus/LowAmountBonus.d.ts +10 -0
  16. package/dist/bonus/LowAmountBonus.js +27 -0
  17. package/dist/bonus/LowAmountBonus.js.map +1 -0
  18. package/dist/bonus/LowSecondsBonus.d.ts +10 -0
  19. package/dist/bonus/LowSecondsBonus.js +27 -0
  20. package/dist/bonus/LowSecondsBonus.js.map +1 -0
  21. package/dist/bonus/LowTotalCountBonus.d.ts +10 -0
  22. package/dist/bonus/LowTotalCountBonus.js +27 -0
  23. package/dist/bonus/LowTotalCountBonus.js.map +1 -0
  24. package/dist/bonus/LowTotalValueBonus.d.ts +10 -0
  25. package/dist/bonus/LowTotalValueBonus.js +27 -0
  26. package/dist/bonus/LowTotalValueBonus.js.map +1 -0
  27. package/dist/bonus/TrialBonus.d.ts +12 -0
  28. package/dist/bonus/TrialBonus.js +32 -0
  29. package/dist/bonus/TrialBonus.js.map +1 -0
  30. package/dist/estimator/BaseEstimator.d.ts +15 -0
  31. package/dist/estimator/BaseEstimator.js +58 -0
  32. package/dist/estimator/BaseEstimator.js.map +1 -0
  33. package/dist/estimator/BillWatchAWSHourlyEstimator.d.ts +3 -0
  34. package/dist/estimator/BillWatchAWSHourlyEstimator.js +8 -0
  35. package/dist/estimator/BillWatchAWSHourlyEstimator.js.map +1 -0
  36. package/dist/estimator/BillWatchAzureHourlyEstimator.d.ts +3 -0
  37. package/dist/estimator/BillWatchAzureHourlyEstimator.js +8 -0
  38. package/dist/estimator/BillWatchAzureHourlyEstimator.js.map +1 -0
  39. package/dist/estimator/BillWatchBaseHourlyEstimator.d.ts +14 -0
  40. package/dist/estimator/BillWatchBaseHourlyEstimator.js +26 -0
  41. package/dist/estimator/BillWatchBaseHourlyEstimator.js.map +1 -0
  42. package/dist/estimator/BillWatchGCPHourlyEstimator.d.ts +3 -0
  43. package/dist/estimator/BillWatchGCPHourlyEstimator.js +8 -0
  44. package/dist/estimator/BillWatchGCPHourlyEstimator.js.map +1 -0
  45. package/dist/estimator/FieldBaseHourlyEstimator.d.ts +9 -0
  46. package/dist/estimator/FieldBaseHourlyEstimator.js +22 -0
  47. package/dist/estimator/FieldBaseHourlyEstimator.js.map +1 -0
  48. package/dist/estimator/FieldCategoryHourlyEstimator.d.ts +8 -0
  49. package/dist/estimator/FieldCategoryHourlyEstimator.js +12 -0
  50. package/dist/estimator/FieldCategoryHourlyEstimator.js.map +1 -0
  51. package/dist/estimator/FieldFieldHourlyEstimator.d.ts +8 -0
  52. package/dist/estimator/FieldFieldHourlyEstimator.js +12 -0
  53. package/dist/estimator/FieldFieldHourlyEstimator.js.map +1 -0
  54. package/dist/estimator/SecretSecretHourlyEstimator.d.ts +14 -0
  55. package/dist/estimator/SecretSecretHourlyEstimator.js +25 -0
  56. package/dist/estimator/SecretSecretHourlyEstimator.js.map +1 -0
  57. package/dist/estimator/SecretSecretReadEstimator.d.ts +14 -0
  58. package/dist/estimator/SecretSecretReadEstimator.js +25 -0
  59. package/dist/estimator/SecretSecretReadEstimator.js.map +1 -0
  60. package/dist/index.d.ts +0 -5
  61. package/dist/index.js +0 -5
  62. package/dist/index.js.map +1 -1
  63. package/dist/type/Estimation.d.ts +10 -3
  64. package/dist/type/EstimationOption.d.ts +10 -0
  65. package/dist/type/{EstimationRow.js → EstimationOption.js} +2 -1
  66. package/dist/type/EstimationOption.js.map +1 -0
  67. package/dist/type/Period.d.ts +20 -2
  68. package/dist/type/Period.js +61 -0
  69. package/dist/type/Period.js.map +1 -1
  70. package/dist/type/Usage.d.ts +24 -0
  71. package/dist/type/Usage.js +30 -0
  72. package/dist/type/Usage.js.map +1 -0
  73. package/package.json +27 -27
  74. package/src/NamirasoftCostServer.ts +59 -59
  75. package/src/NamirasoftCostServerBase.ts +29 -29
  76. package/src/NamirasoftCostServerBillWatchAWS.ts +46 -46
  77. package/src/NamirasoftCostServerBillWatchAzure.ts +46 -46
  78. package/src/NamirasoftCostServerBillWatchGCP.ts +46 -46
  79. package/src/NamirasoftCostServerCost.ts +49 -49
  80. package/src/NamirasoftCostServerFieldCategory.ts +46 -46
  81. package/src/NamirasoftCostServerFieldField.ts +46 -46
  82. package/src/NamirasoftCostServerHealthz.ts +35 -35
  83. package/src/NamirasoftCostServerMetrics.ts +35 -35
  84. package/src/NamirasoftCostServerSecretSecret.ts +60 -60
  85. package/src/NamirasoftCostServerValue.ts +36 -36
  86. package/src/bonus/BaseBonus.ts +14 -0
  87. package/src/bonus/DeactiveBonus.ts +15 -0
  88. package/src/bonus/FreeCountBonus.ts +15 -0
  89. package/src/bonus/FreeTotalValueBonus.ts +29 -0
  90. package/src/bonus/LowAmountBonus.ts +15 -0
  91. package/src/bonus/LowSecondsBonus.ts +15 -0
  92. package/src/bonus/LowTotalCountBonus.ts +15 -0
  93. package/src/bonus/LowTotalValueBonus.ts +15 -0
  94. package/src/bonus/TrialBonus.ts +19 -0
  95. package/src/command/BillWatchAWSCommand.ts +33 -33
  96. package/src/command/BillWatchAWSEstimateHourlyCommand.ts +82 -82
  97. package/src/command/BillWatchAWS_CreateForHourlyCommand.ts +100 -100
  98. package/src/command/BillWatchAzureCommand.ts +33 -33
  99. package/src/command/BillWatchAzureEstimateHourlyCommand.ts +82 -82
  100. package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +100 -100
  101. package/src/command/BillWatchGCPCommand.ts +33 -33
  102. package/src/command/BillWatchGCPEstimateHourlyCommand.ts +82 -82
  103. package/src/command/BillWatchGCP_CreateForHourlyCommand.ts +100 -100
  104. package/src/command/CostCommand.ts +33 -33
  105. package/src/command/CostListCommand.ts +44 -44
  106. package/src/command/Cost_CreateForCommand.ts +181 -181
  107. package/src/command/FieldCategoryCommand.ts +33 -33
  108. package/src/command/FieldCategoryEstimateHourlyCommand.ts +82 -82
  109. package/src/command/FieldCategory_CreateForHourlyCommand.ts +100 -100
  110. package/src/command/FieldFieldCommand.ts +33 -33
  111. package/src/command/FieldFieldEstimateHourlyCommand.ts +82 -82
  112. package/src/command/FieldField_CreateForHourlyCommand.ts +100 -100
  113. package/src/command/HealthzCommand.ts +31 -31
  114. package/src/command/HealthzGetCommand.ts +44 -44
  115. package/src/command/MetricsCommand.ts +31 -31
  116. package/src/command/MetricsGetCommand.ts +44 -44
  117. package/src/command/SecretSecretCommand.ts +37 -37
  118. package/src/command/SecretSecretEstimateHourlyCommand.ts +82 -82
  119. package/src/command/SecretSecretEstimateReadCommand.ts +82 -82
  120. package/src/command/SecretSecret_CreateForHourlyCommand.ts +100 -100
  121. package/src/command/SecretSecret_CreateForReadCommand.ts +100 -100
  122. package/src/command/ValueCommand.ts +31 -31
  123. package/src/command/ValueListCommand.ts +44 -44
  124. package/src/command/cli.ts +50 -50
  125. package/src/estimator/BaseEstimator.ts +63 -0
  126. package/src/estimator/BillWatchAWSHourlyEstimator.ts +5 -0
  127. package/src/estimator/BillWatchAzureHourlyEstimator.ts +5 -0
  128. package/src/estimator/BillWatchBaseHourlyEstimator.ts +26 -0
  129. package/src/estimator/BillWatchGCPHourlyEstimator.ts +5 -0
  130. package/src/estimator/FieldBaseHourlyEstimator.ts +21 -0
  131. package/src/estimator/FieldCategoryHourlyEstimator.ts +10 -0
  132. package/src/estimator/FieldFieldHourlyEstimator.ts +10 -0
  133. package/src/estimator/SecretSecretHourlyEstimator.ts +25 -0
  134. package/src/estimator/SecretSecretReadEstimator.ts +26 -0
  135. package/src/index.ts +68 -73
  136. package/src/meta/CostMetaTable.ts +81 -81
  137. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  138. package/src/row/CostCreateRow.ts +37 -37
  139. package/src/row/CostRow.ts +40 -40
  140. package/src/type/Estimation.ts +13 -6
  141. package/src/type/EstimationOption.ts +12 -0
  142. package/src/type/EstimationUsage.ts +5 -5
  143. package/src/type/Period.ts +74 -5
  144. package/src/type/Usage.ts +25 -0
  145. package/dist/TimeUtil.d.ts +0 -7
  146. package/dist/TimeUtil.js +0 -66
  147. package/dist/TimeUtil.js.map +0 -1
  148. package/dist/enum/TrialUnit.d.ts +0 -5
  149. package/dist/enum/TrialUnit.js +0 -10
  150. package/dist/enum/TrialUnit.js.map +0 -1
  151. package/dist/type/EstimationRow.d.ts +0 -9
  152. package/dist/type/EstimationRow.js.map +0 -1
  153. package/dist/type/Trial.d.ts +0 -5
  154. package/dist/type/Trial.js +0 -3
  155. package/dist/type/Trial.js.map +0 -1
  156. package/dist/type/TrialDuration.d.ts +0 -5
  157. package/dist/type/TrialDuration.js +0 -3
  158. package/dist/type/TrialDuration.js.map +0 -1
  159. package/src/TimeUtil.ts +0 -67
  160. package/src/enum/TrialUnit.ts +0 -6
  161. package/src/type/EstimationRow.ts +0 -10
  162. package/src/type/Trial.ts +0 -7
  163. package/src/type/TrialDuration.ts +0 -7
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillWatchGCPHourlyEstimator = void 0;
4
+ const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
5
+ class BillWatchGCPHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
6
+ }
7
+ exports.BillWatchGCPHourlyEstimator = BillWatchGCPHourlyEstimator;
8
+ //# sourceMappingURL=BillWatchGCPHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchGCPHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchGCPHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,2BAA4B,SAAQ,2DAA4B;CAE5E;AAFD,kEAEC"}
@@ -0,0 +1,9 @@
1
+ import { TrialBonus } from "../bonus/TrialBonus";
2
+ import { BaseEstimator } from "./BaseEstimator";
3
+ export declare abstract class FieldBaseHourlyEstimator extends BaseEstimator {
4
+ getBonues(): TrialBonus[];
5
+ getUsage(): {
6
+ name: string;
7
+ unit: string;
8
+ };
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldBaseHourlyEstimator = void 0;
4
+ const namirasoft_core_1 = require("namirasoft-core");
5
+ const TrialBonus_1 = require("../bonus/TrialBonus");
6
+ const BaseEstimator_1 = require("./BaseEstimator");
7
+ const Usage_1 = require("../type/Usage");
8
+ class FieldBaseHourlyEstimator extends BaseEstimator_1.BaseEstimator {
9
+ getBonues() {
10
+ return [
11
+ new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
12
+ ];
13
+ }
14
+ getUsage() {
15
+ return {
16
+ name: Usage_1.Usage.Time.name,
17
+ unit: Usage_1.Usage.Time.units.Hour.name
18
+ };
19
+ }
20
+ }
21
+ exports.FieldBaseHourlyEstimator = FieldBaseHourlyEstimator;
22
+ //# sourceMappingURL=FieldBaseHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldBaseHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldBaseHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAC/C,oDAAiD;AACjD,mDAAgD;AAChD,yCAAsC;AAEtC,MAAsB,wBAAyB,SAAQ,6BAAa;IAEvD,SAAS;QAEd,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"}
@@ -0,0 +1,8 @@
1
+ import { FieldBaseHourlyEstimator } from "./FieldBaseHourlyEstimator";
2
+ export declare class FieldCategoryHourlyEstimator extends FieldBaseHourlyEstimator {
3
+ static PER_HOUR_ACTIVE: number;
4
+ getFee(): {
5
+ active: number;
6
+ deactive: number;
7
+ };
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldCategoryHourlyEstimator = void 0;
4
+ const FieldBaseHourlyEstimator_1 = require("./FieldBaseHourlyEstimator");
5
+ class FieldCategoryHourlyEstimator extends FieldBaseHourlyEstimator_1.FieldBaseHourlyEstimator {
6
+ getFee() {
7
+ return { active: FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE, deactive: FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE };
8
+ }
9
+ }
10
+ exports.FieldCategoryHourlyEstimator = FieldCategoryHourlyEstimator;
11
+ FieldCategoryHourlyEstimator.PER_HOUR_ACTIVE = 200;
12
+ //# sourceMappingURL=FieldCategoryHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldCategoryHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldCategoryHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAEtE,MAAa,4BAA6B,SAAQ,mDAAwB;IAG7D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,eAAe,EAAE,QAAQ,EAAE,4BAA4B,CAAC,eAAe,EAAE,CAAC;IAC5H,CAAC;;AANL,oEAOC;AALU,4CAAe,GAAG,GAAG,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FieldBaseHourlyEstimator } from "./FieldBaseHourlyEstimator";
2
+ export declare class FieldFieldHourlyEstimator extends FieldBaseHourlyEstimator {
3
+ static PER_HOUR_ACTIVE: number;
4
+ getFee(): {
5
+ active: number;
6
+ deactive: number;
7
+ };
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldFieldHourlyEstimator = void 0;
4
+ const FieldBaseHourlyEstimator_1 = require("./FieldBaseHourlyEstimator");
5
+ class FieldFieldHourlyEstimator extends FieldBaseHourlyEstimator_1.FieldBaseHourlyEstimator {
6
+ getFee() {
7
+ return { active: FieldFieldHourlyEstimator.PER_HOUR_ACTIVE, deactive: FieldFieldHourlyEstimator.PER_HOUR_ACTIVE };
8
+ }
9
+ }
10
+ exports.FieldFieldHourlyEstimator = FieldFieldHourlyEstimator;
11
+ FieldFieldHourlyEstimator.PER_HOUR_ACTIVE = 250;
12
+ //# sourceMappingURL=FieldFieldHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldFieldHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/FieldFieldHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAEtE,MAAa,yBAA0B,SAAQ,mDAAwB;IAG1D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,eAAe,EAAE,QAAQ,EAAE,yBAAyB,CAAC,eAAe,EAAE,CAAC;IACtH,CAAC;;AANL,8DAOC;AALU,yCAAe,GAAG,GAAG,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FreeCountBonus } from "../bonus/FreeCountBonus";
2
+ import { BaseEstimator } from "./BaseEstimator";
3
+ export declare class SecretSecretHourlyEstimator extends BaseEstimator {
4
+ static PER_HOUR_ACTIVE: number;
5
+ getFee(): {
6
+ active: number;
7
+ deactive: number;
8
+ };
9
+ getUsage(): {
10
+ name: string;
11
+ unit: string;
12
+ };
13
+ getBonues(): FreeCountBonus[];
14
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecretSecretHourlyEstimator = void 0;
4
+ const FreeCountBonus_1 = require("../bonus/FreeCountBonus");
5
+ const Usage_1 = require("../type/Usage");
6
+ const BaseEstimator_1 = require("./BaseEstimator");
7
+ class SecretSecretHourlyEstimator extends BaseEstimator_1.BaseEstimator {
8
+ getFee() {
9
+ return { active: SecretSecretHourlyEstimator.PER_HOUR_ACTIVE, deactive: SecretSecretHourlyEstimator.PER_HOUR_ACTIVE };
10
+ }
11
+ getUsage() {
12
+ return {
13
+ name: Usage_1.Usage.Time.name,
14
+ unit: Usage_1.Usage.Time.units.Hour.name
15
+ };
16
+ }
17
+ getBonues() {
18
+ return [
19
+ new FreeCountBonus_1.FreeCountBonus(100)
20
+ ];
21
+ }
22
+ }
23
+ exports.SecretSecretHourlyEstimator = SecretSecretHourlyEstimator;
24
+ SecretSecretHourlyEstimator.PER_HOUR_ACTIVE = 2;
25
+ //# sourceMappingURL=SecretSecretHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecretHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretHourlyEstimator.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,SAAS;QAEd,OAAO;YACH,IAAI,+BAAc,CAAC,GAAG,CAAC;SAC1B,CAAC;IACN,CAAC;;AAnBL,kEAoBC;AAlBU,2CAAe,GAAG,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
2
+ import { BaseEstimator } from "./BaseEstimator";
3
+ export declare class SecretSecretReadEstimator extends BaseEstimator {
4
+ static PER_CALL: number;
5
+ getFee(): {
6
+ active: number;
7
+ deactive: number;
8
+ };
9
+ getUsage(): {
10
+ name: string;
11
+ unit: string;
12
+ };
13
+ getBonues(): FreeTotalValueBonus[];
14
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecretSecretReadEstimator = void 0;
4
+ const FreeTotalValueBonus_1 = require("../bonus/FreeTotalValueBonus");
5
+ const Usage_1 = require("../type/Usage");
6
+ const BaseEstimator_1 = require("./BaseEstimator");
7
+ class SecretSecretReadEstimator extends BaseEstimator_1.BaseEstimator {
8
+ getFee() {
9
+ return { active: SecretSecretReadEstimator.PER_CALL, deactive: SecretSecretReadEstimator.PER_CALL };
10
+ }
11
+ getUsage() {
12
+ return {
13
+ name: Usage_1.Usage.APICALL.name,
14
+ unit: Usage_1.Usage.APICALL.units.REQUEST.name
15
+ };
16
+ }
17
+ getBonues() {
18
+ return [
19
+ new FreeTotalValueBonus_1.FreeTotalValueBonus(1000)
20
+ ];
21
+ }
22
+ }
23
+ exports.SecretSecretReadEstimator = SecretSecretReadEstimator;
24
+ SecretSecretReadEstimator.PER_CALL = 1;
25
+ //# sourceMappingURL=SecretSecretReadEstimator.js.map
@@ -0,0 +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,SAAS;QAEd,OAAO;YACH,IAAI,yCAAmB,CAAC,IAAI,CAAC;SAChC,CAAC;IACN,CAAC;;AApBL,8DAqBC;AAnBU,kCAAQ,GAAG,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from "./NamirasoftCostServerHealthz";
10
10
  export * from "./NamirasoftCostServerMetrics";
11
11
  export * from "./NamirasoftCostServerSecretSecret";
12
12
  export * from "./NamirasoftCostServerValue";
13
- export * from "./TimeUtil";
14
13
  export * from "./command/BillWatchAWSCommand";
15
14
  export * from "./command/BillWatchAWSEstimateHourlyCommand";
16
15
  export * from "./command/BillWatchAWS_CreateForHourlyCommand";
@@ -40,14 +39,10 @@ export * from "./command/SecretSecret_CreateForHourlyCommand";
40
39
  export * from "./command/SecretSecret_CreateForReadCommand";
41
40
  export * from "./command/ValueCommand";
42
41
  export * from "./command/ValueListCommand";
43
- export * from "./enum/TrialUnit";
44
42
  export * from "./meta/CostMetaTable";
45
43
  export * from "./meta/NamirasoftCostMetaDatabase";
46
44
  export * from "./row/CostCreateRow";
47
45
  export * from "./row/CostRow";
48
46
  export * from "./type/Estimation";
49
- export * from "./type/EstimationRow";
50
47
  export * from "./type/EstimationUsage";
51
48
  export * from "./type/Period";
52
- export * from "./type/Trial";
53
- export * from "./type/TrialDuration";
package/dist/index.js CHANGED
@@ -26,7 +26,6 @@ __exportStar(require("./NamirasoftCostServerHealthz"), exports);
26
26
  __exportStar(require("./NamirasoftCostServerMetrics"), exports);
27
27
  __exportStar(require("./NamirasoftCostServerSecretSecret"), exports);
28
28
  __exportStar(require("./NamirasoftCostServerValue"), exports);
29
- __exportStar(require("./TimeUtil"), exports);
30
29
  __exportStar(require("./command/BillWatchAWSCommand"), exports);
31
30
  __exportStar(require("./command/BillWatchAWSEstimateHourlyCommand"), exports);
32
31
  __exportStar(require("./command/BillWatchAWS_CreateForHourlyCommand"), exports);
@@ -56,15 +55,11 @@ __exportStar(require("./command/SecretSecret_CreateForHourlyCommand"), exports);
56
55
  __exportStar(require("./command/SecretSecret_CreateForReadCommand"), exports);
57
56
  __exportStar(require("./command/ValueCommand"), exports);
58
57
  __exportStar(require("./command/ValueListCommand"), exports);
59
- __exportStar(require("./enum/TrialUnit"), exports);
60
58
  __exportStar(require("./meta/CostMetaTable"), exports);
61
59
  __exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
62
60
  __exportStar(require("./row/CostCreateRow"), exports);
63
61
  __exportStar(require("./row/CostRow"), exports);
64
62
  __exportStar(require("./type/Estimation"), exports);
65
- __exportStar(require("./type/EstimationRow"), exports);
66
63
  __exportStar(require("./type/EstimationUsage"), exports);
67
64
  __exportStar(require("./type/Period"), exports);
68
- __exportStar(require("./type/Trial"), exports);
69
- __exportStar(require("./type/TrialDuration"), exports);
70
65
  //# sourceMappingURL=index.js.map
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,6CAA2B;AAC3B,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,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,8EAA4D;AAC5D,4EAA0D;AAC1D,gFAA8D;AAC9D,8EAA4D;AAC5D,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,uDAAqC"}
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,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,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,8EAA4D;AAC5D,4EAA0D;AAC1D,gFAA8D;AAC9D,8EAA4D;AAC5D,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B"}
@@ -1,5 +1,12 @@
1
- import { EstimationRow } from "./EstimationRow";
1
+ import { BaseBonus } from "../bonus/BaseBonus";
2
+ import { EstimationOption } from "./EstimationOption";
3
+ import { EstimationUsage } from "./EstimationUsage";
2
4
  export type Estimation = {
3
- sum: number;
4
- rows: EstimationRow[];
5
+ option: EstimationOption;
6
+ seconds: number;
7
+ usage: EstimationUsage;
8
+ fee: number;
9
+ amount: number;
10
+ currency: string;
11
+ free?: BaseBonus;
5
12
  };
@@ -0,0 +1,10 @@
1
+ import { Period } from "./Period";
2
+ export interface EstimationOption {
3
+ period: Period;
4
+ total_count: number;
5
+ number: number;
6
+ total_value: number;
7
+ value: number;
8
+ active: boolean;
9
+ trial_started_at: Date | null;
10
+ }
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=EstimationRow.js.map
3
+ ;
4
+ //# sourceMappingURL=EstimationOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EstimationOption.js","sourceRoot":"","sources":["../../src/type/EstimationOption.ts"],"names":[],"mappings":";;AAWC,CAAC"}
@@ -1,4 +1,22 @@
1
1
  export type Period = {
2
- start: Date;
3
- end: Date;
2
+ year: number;
3
+ month: number;
4
+ day: number;
5
+ hour: number;
6
+ start: {
7
+ minute: number;
8
+ second: number;
9
+ };
10
+ end: {
11
+ minute: number;
12
+ second: number;
13
+ };
4
14
  };
15
+ export declare class PeriodUtil {
16
+ static toSeconds(period: Period): number;
17
+ static toDates(period: Period): {
18
+ start: Date;
19
+ end: Date;
20
+ };
21
+ static loop(start: Date, end: Date, estimate_hour: (period: Period) => Promise<void>): Promise<void>;
22
+ }
@@ -1,3 +1,64 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PeriodUtil = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ class PeriodUtil {
15
+ static toSeconds(period) {
16
+ return (period.end.minute * 60 + period.end.second) - (period.start.minute * 60 + period.start.second) + 1;
17
+ }
18
+ static toDates(period) {
19
+ let start = new Date(period.year, period.month, period.day, period.hour, period.start.minute, period.start.second);
20
+ let end = new Date(period.year, period.month, period.day, period.hour, period.end.minute, period.end.second);
21
+ return { start, end };
22
+ }
23
+ static loop(start, end, estimate_hour) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ let pre_estimate_hour = (start, end) => __awaiter(this, void 0, void 0, function* () {
26
+ if (end <= start)
27
+ return;
28
+ return yield estimate_hour({
29
+ year: start.getFullYear(),
30
+ month: start.getMonth(),
31
+ day: start.getDate(),
32
+ hour: start.getHours(),
33
+ start: {
34
+ minute: start.getMinutes(),
35
+ second: start.getSeconds(),
36
+ },
37
+ end: {
38
+ minute: end.getMinutes(),
39
+ second: end.getSeconds(),
40
+ }
41
+ });
42
+ });
43
+ let s = start;
44
+ let e = null;
45
+ do {
46
+ let next_start = namirasoft_core_1.TimeOperation.hoursLater(1, s);
47
+ next_start.setMilliseconds(0);
48
+ next_start.setSeconds(0);
49
+ next_start.setMinutes(0);
50
+ if (end < next_start) {
51
+ next_start = end;
52
+ e = end;
53
+ }
54
+ else
55
+ e = namirasoft_core_1.TimeOperation.secondsAgo(1, next_start);
56
+ yield pre_estimate_hour(s, e);
57
+ s = next_start;
58
+ } while (e < end);
59
+ });
60
+ }
61
+ }
62
+ exports.PeriodUtil = PeriodUtil;
63
+ ;
3
64
  //# sourceMappingURL=Period.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Period.js","sourceRoot":"","sources":["../../src/type/Period.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Period.js","sourceRoot":"","sources":["../../src/type/Period.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgD;AAkBhD,MAAa,UAAU;IAEnB,MAAM,CAAC,SAAS,CAAC,MAAc;QAE3B,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAC9G,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,MAAc;QAEzB,IAAI,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnH,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7G,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAC1B,CAAC;IACD,MAAM,CAAO,IAAI,CAAC,KAAW,EAAE,GAAS,EAAE,aAAgD;;YAEtF,IAAI,iBAAiB,GAAG,CAAO,KAAW,EAAE,GAAS,EAAE,EAAE;gBAErD,IAAI,GAAG,IAAI,KAAK;oBACZ,OAAO;gBACX,OAAO,MAAM,aAAa,CAAC;oBACvB,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE;oBACzB,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACvB,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE;oBACpB,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACtB,KAAK,EAAE;wBACH,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE;wBAC1B,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE;qBAC7B;oBACD,GAAG,EAAE;wBACD,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE;wBACxB,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE;qBAC3B;iBACJ,CAAC,CAAC;YACP,CAAC,CAAA,CAAA;YAED,IAAI,CAAC,GAAG,KAAK,CAAC;YACd,IAAI,CAAC,GAAG,IAAI,CAAC;YAEb,GACA,CAAC;gBACG,IAAI,UAAU,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChD,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAC9B,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,GAAG,GAAG,UAAU,EACpB,CAAC;oBACG,UAAU,GAAG,GAAG,CAAC;oBACjB,CAAC,GAAG,GAAG,CAAC;gBACZ,CAAC;;oBAEG,CAAC,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;gBAChD,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC9B,CAAC,GAAG,UAAU,CAAC;YACnB,CAAC,QACM,CAAC,GAAG,GAAG,EAAC;QACnB,CAAC;KAAA;CACJ;AAvDD,gCAuDC;AAAA,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare class Usage {
2
+ static Time: {
3
+ name: string;
4
+ units: {
5
+ Second: {
6
+ name: string;
7
+ };
8
+ Minute: {
9
+ name: string;
10
+ };
11
+ Hour: {
12
+ name: string;
13
+ };
14
+ };
15
+ };
16
+ static APICALL: {
17
+ name: string;
18
+ units: {
19
+ REQUEST: {
20
+ name: string;
21
+ };
22
+ };
23
+ };
24
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Usage = void 0;
4
+ class Usage {
5
+ }
6
+ exports.Usage = Usage;
7
+ Usage.Time = {
8
+ name: "Time",
9
+ units: {
10
+ Second: {
11
+ name: "Second"
12
+ },
13
+ Minute: {
14
+ name: "Minute"
15
+ },
16
+ Hour: {
17
+ name: "Hour"
18
+ }
19
+ }
20
+ };
21
+ Usage.APICALL = {
22
+ name: "API Call",
23
+ units: {
24
+ REQUEST: {
25
+ name: "Request"
26
+ }
27
+ }
28
+ };
29
+ ;
30
+ //# sourceMappingURL=Usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Usage.js","sourceRoot":"","sources":["../../src/type/Usage.ts"],"names":[],"mappings":";;;AAAA,MAAa,KAAK;;AAAlB,sBAwBC;AAtBU,UAAI,GAAG;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACH,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,MAAM;SACf;KACJ;CACJ,CAAC;AACK,aAAO,GAAG;IACb,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE;QACH,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,28 +1,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.21",
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.84"
24
- },
25
- "bin": {
26
- "ns-cost": "./dist/command/cli.js"
27
- }
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.22",
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.84"
24
+ },
25
+ "bin": {
26
+ "ns-cost": "./dist/command/cli.js"
27
+ }
28
28
  }
@@ -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.21`, 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.21`, 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
  };