namirasoft-cost 1.4.43 → 1.4.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/.ns-sdkg-dir-deep +3 -3
  2. package/.ns-sdkg-file-keep +27 -27
  3. package/dist/NamirasoftCostServer.js +1 -1
  4. package/dist/NamirasoftCostServerCost.d.ts +10 -9
  5. package/dist/NamirasoftCostServerCost.js.map +1 -1
  6. package/dist/command/CostGroupedCommand.js +8 -8
  7. package/dist/command/CostGroupedCommand.js.map +1 -1
  8. package/dist/enum/DimensionType.d.ts +1 -0
  9. package/dist/enum/DimensionType.js +1 -0
  10. package/dist/enum/DimensionType.js.map +1 -1
  11. package/dist/estimator/BaseEstimator.js +1 -1
  12. package/dist/estimator/BaseEstimator.js.map +1 -1
  13. package/dist/estimator/LogLogGroupReadEstimator.d.ts +15 -0
  14. package/dist/estimator/LogLogGroupReadEstimator.js +26 -0
  15. package/dist/estimator/LogLogGroupReadEstimator.js.map +1 -0
  16. package/dist/estimator/LogLogGroupRecordEstimator.d.ts +17 -0
  17. package/dist/estimator/LogLogGroupRecordEstimator.js +29 -0
  18. package/dist/estimator/LogLogGroupRecordEstimator.js.map +1 -0
  19. package/dist/estimator/SecretSecretReadEstimator.d.ts +1 -1
  20. package/dist/estimator/SecretSecretReadEstimator.js +2 -2
  21. package/dist/estimator/SecretSecretReadEstimator.js.map +1 -1
  22. package/dist/index.d.ts +3 -0
  23. package/dist/index.js +3 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/row/GroupedResponseRow.d.ts +6 -0
  26. package/dist/row/GroupedResponseRow.js +3 -0
  27. package/dist/row/GroupedResponseRow.js.map +1 -0
  28. package/package.json +28 -28
  29. package/src/NamirasoftCostServer.ts +59 -59
  30. package/src/NamirasoftCostServerBase.ts +29 -29
  31. package/src/NamirasoftCostServerBillWatchAWS.ts +47 -47
  32. package/src/NamirasoftCostServerBillWatchAzure.ts +47 -47
  33. package/src/NamirasoftCostServerBillWatchGCP.ts +47 -47
  34. package/src/NamirasoftCostServerCost.ts +51 -50
  35. package/src/NamirasoftCostServerFieldCategory.ts +47 -47
  36. package/src/NamirasoftCostServerFieldField.ts +47 -47
  37. package/src/NamirasoftCostServerHealthz.ts +35 -35
  38. package/src/NamirasoftCostServerMetrics.ts +35 -35
  39. package/src/NamirasoftCostServerSecretSecret.ts +61 -61
  40. package/src/NamirasoftCostServerValue.ts +36 -36
  41. package/src/bonus/BaseBonus.ts +13 -13
  42. package/src/bonus/DeactiveBonus.ts +14 -14
  43. package/src/bonus/FreeCountBonus.ts +14 -14
  44. package/src/bonus/FreeTotalValueBonus.ts +28 -28
  45. package/src/bonus/FreeValueBonus.ts +24 -24
  46. package/src/bonus/LowAmountBonus.ts +14 -14
  47. package/src/bonus/LowSecondsBonus.ts +14 -14
  48. package/src/bonus/LowTotalValueBonus.ts +14 -14
  49. package/src/bonus/LowValueBonus.ts +14 -14
  50. package/src/bonus/TrialBonus.ts +18 -18
  51. package/src/command/BillWatchAWSCommand.ts +33 -33
  52. package/src/command/BillWatchAWSEstimateRecordCommand.ts +109 -109
  53. package/src/command/BillWatchAWS_CreateForRecordCommand.ts +118 -118
  54. package/src/command/BillWatchAzureCommand.ts +33 -33
  55. package/src/command/BillWatchAzureEstimateRecordCommand.ts +109 -109
  56. package/src/command/BillWatchAzure_CreateForRecordCommand.ts +118 -118
  57. package/src/command/BillWatchGCPCommand.ts +33 -33
  58. package/src/command/BillWatchGCPEstimateRecordCommand.ts +109 -109
  59. package/src/command/BillWatchGCP_CreateForRecordCommand.ts +118 -118
  60. package/src/command/CostCommand.ts +33 -33
  61. package/src/command/CostGroupedCommand.ts +154 -154
  62. package/src/command/CostListCommand.ts +44 -44
  63. package/src/command/FieldCategoryCommand.ts +33 -33
  64. package/src/command/FieldCategoryEstimateRecordCommand.ts +109 -109
  65. package/src/command/FieldCategory_CreateForRecordCommand.ts +118 -118
  66. package/src/command/FieldFieldCommand.ts +33 -33
  67. package/src/command/FieldFieldEstimateRecordCommand.ts +109 -109
  68. package/src/command/FieldField_CreateForRecordCommand.ts +118 -118
  69. package/src/command/HealthzCommand.ts +31 -31
  70. package/src/command/HealthzGetCommand.ts +44 -44
  71. package/src/command/MetricsCommand.ts +31 -31
  72. package/src/command/MetricsGetCommand.ts +44 -44
  73. package/src/command/SecretSecretCommand.ts +37 -37
  74. package/src/command/SecretSecretEstimateReadCommand.ts +109 -109
  75. package/src/command/SecretSecretEstimateRecordCommand.ts +109 -109
  76. package/src/command/SecretSecret_CreateForReadCommand.ts +118 -118
  77. package/src/command/SecretSecret_CreateForRecordCommand.ts +118 -118
  78. package/src/command/ValueCommand.ts +31 -31
  79. package/src/command/ValueListCommand.ts +44 -44
  80. package/src/command/cli.ts +50 -50
  81. package/src/enum/DimensionType.ts +31 -30
  82. package/src/enum/GranularityType.ts +26 -26
  83. package/src/estimator/BaseEstimator.ts +1 -1
  84. package/src/estimator/LogLogGroupReadEstimator.ts +26 -0
  85. package/src/estimator/LogLogGroupRecordEstimator.ts +29 -0
  86. package/src/estimator/SecretSecretReadEstimator.ts +2 -2
  87. package/src/index.ts +96 -93
  88. package/src/meta/CostMetaTable.ts +81 -81
  89. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  90. package/src/row/CostRow.ts +40 -40
  91. package/src/row/GroupedResponseRow.ts +27 -0
  92. package/src/type/Bonus.ts +18 -18
  93. package/src/type/CalculationOption.ts +33 -33
  94. package/src/type/Estimation.ts +34 -34
  95. package/src/type/EstimationOption.ts +31 -31
  96. package/src/type/EstimationUsage.ts +22 -22
  97. package/src/type/Period.ts +108 -108
  98. package/src/type/SimulationOption.ts +29 -29
  99. 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
@@ -1,28 +1,28 @@
1
- src/bonus/BaseBonus.ts
2
- src/bonus/DeactiveBonus.ts
3
- src/bonus/FreeCountBonus.ts
4
- src/bonus/FreeTotalValueBonus.ts
5
- src/bonus/FreeValueBonus.ts
6
- src/bonus/LowAmountBonus.ts
7
- src/bonus/LowSecondsBonus.ts
8
- src/bonus/LowTotalValueBonus.ts
9
- src/bonus/LowValueBonus.ts
10
- src/bonus/TrialBonus.ts
11
- src/estimator/BaseEstimator.ts
12
- src/estimator/BillWatchAWSRecordEstimator.ts
13
- src/estimator/BillWatchAzureRecordEstimator.ts
14
- src/estimator/BillWatchBaseRecordEstimator.ts
15
- src/estimator/BillWatchGCPRecordEstimator.ts
16
- src/estimator/FieldBaseRecordEstimator.ts
17
- src/estimator/FieldCategoryRecordEstimator.ts
18
- src/estimator/FieldFieldRecordEstimator.ts
19
- src/estimator/SecretSecretRecordEstimator.ts
20
- src/estimator/SecretSecretReadEstimator.ts
21
- src/type/Bonus.ts
22
- src/type/CalculationOption.ts
23
- src/type/Estimation.ts
24
- src/type/EstimationOption.ts
25
- src/type/EstimationUsage.ts
26
- src/type/Period.ts
27
- src/type/SimulationOption.ts
1
+ src/bonus/BaseBonus.ts
2
+ src/bonus/DeactiveBonus.ts
3
+ src/bonus/FreeCountBonus.ts
4
+ src/bonus/FreeTotalValueBonus.ts
5
+ src/bonus/FreeValueBonus.ts
6
+ src/bonus/LowAmountBonus.ts
7
+ src/bonus/LowSecondsBonus.ts
8
+ src/bonus/LowTotalValueBonus.ts
9
+ src/bonus/LowValueBonus.ts
10
+ src/bonus/TrialBonus.ts
11
+ src/estimator/BaseEstimator.ts
12
+ src/estimator/BillWatchAWSRecordEstimator.ts
13
+ src/estimator/BillWatchAzureRecordEstimator.ts
14
+ src/estimator/BillWatchBaseRecordEstimator.ts
15
+ src/estimator/BillWatchGCPRecordEstimator.ts
16
+ src/estimator/FieldBaseRecordEstimator.ts
17
+ src/estimator/FieldCategoryRecordEstimator.ts
18
+ src/estimator/FieldFieldRecordEstimator.ts
19
+ src/estimator/SecretSecretRecordEstimator.ts
20
+ src/estimator/SecretSecretReadEstimator.ts
21
+ src/type/Bonus.ts
22
+ src/type/CalculationOption.ts
23
+ src/type/Estimation.ts
24
+ src/type/EstimationOption.ts
25
+ src/type/EstimationUsage.ts
26
+ src/type/Period.ts
27
+ src/type/SimulationOption.ts
28
28
  src/type/Usage.ts
@@ -14,7 +14,7 @@ const NamirasoftCostServerSecretSecret_1 = require("./NamirasoftCostServerSecret
14
14
  const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
15
15
  class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
16
16
  constructor(base_url, manager, onError) {
17
- super(base_url, `1.4.43`, manager, onError);
17
+ super(base_url, `1.4.44`, manager, onError);
18
18
  this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
19
19
  this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
20
20
  this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
@@ -2,6 +2,7 @@ import { CostRow } from "./row/CostRow";
2
2
  import { DimensionType } from "./enum/DimensionType";
3
3
  import { FilterItem } from "namirasoft-core";
4
4
  import { GranularityType } from "./enum/GranularityType";
5
+ import { GroupedResponseRow } from "./row/GroupedResponseRow";
5
6
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
6
7
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
7
8
  import { SortItem } from "namirasoft-core";
@@ -16,13 +17,13 @@ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
16
17
  end_date: Date;
17
18
  granularity: GranularityType;
18
19
  dimension: DimensionType;
19
- filter_workspace_ids: (string[] | null);
20
- filter_product_ids: (string[] | null);
21
- filter_sales_item_ids: (string[] | null);
22
- filter_offer_ids: (string[] | null);
23
- filter_offer_item_ids: (string[] | null);
24
- filter_resource_entities: (string[] | null);
25
- filter_resource_ids: (string[] | null);
26
- filter_usage_names: (string[] | null);
27
- }): Promise<any[]>;
20
+ filter_workspace_ids: (string | null)[];
21
+ filter_product_ids: (string | null)[];
22
+ filter_sales_item_ids: (string | null)[];
23
+ filter_offer_ids: (string | null)[];
24
+ filter_offer_item_ids: (string | null)[];
25
+ filter_resource_entities: (string | null)[];
26
+ filter_resource_ids: (string | null)[];
27
+ filter_usage_names: (string | null)[];
28
+ }): Promise<GroupedResponseRow[]>;
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;AAG7C,yEAAsE;AACtE,qDAA2C;AAE3C,MAAa,wBAAyB,SAAQ,mDAAwB;IAElE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,YAAY,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC1J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,OAAO,CAAC,IAAua;;YAEjb,IAAI,IAAI,GAAG,eAAe,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG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,CAAC,CAAC;YAC7E,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,4DAsBC;AAAA,CAAC"}
@@ -53,7 +53,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
53
53
  name: "filter_workspace_ids",
54
54
  short: "",
55
55
  description: "Provides the value of 'filter_workspace_ids' in body",
56
- optional: true,
56
+ optional: false,
57
57
  args: ["filter_workspace_ids"],
58
58
  defaults: [""]
59
59
  },
@@ -61,7 +61,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
61
61
  name: "filter_product_ids",
62
62
  short: "",
63
63
  description: "Provides the value of 'filter_product_ids' in body",
64
- optional: true,
64
+ optional: false,
65
65
  args: ["filter_product_ids"],
66
66
  defaults: [""]
67
67
  },
@@ -69,7 +69,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
69
69
  name: "filter_sales_item_ids",
70
70
  short: "",
71
71
  description: "Provides the value of 'filter_sales_item_ids' in body",
72
- optional: true,
72
+ optional: false,
73
73
  args: ["filter_sales_item_ids"],
74
74
  defaults: [""]
75
75
  },
@@ -77,7 +77,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
77
77
  name: "filter_offer_ids",
78
78
  short: "",
79
79
  description: "Provides the value of 'filter_offer_ids' in body",
80
- optional: true,
80
+ optional: false,
81
81
  args: ["filter_offer_ids"],
82
82
  defaults: [""]
83
83
  },
@@ -85,7 +85,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
85
85
  name: "filter_offer_item_ids",
86
86
  short: "",
87
87
  description: "Provides the value of 'filter_offer_item_ids' in body",
88
- optional: true,
88
+ optional: false,
89
89
  args: ["filter_offer_item_ids"],
90
90
  defaults: [""]
91
91
  },
@@ -93,7 +93,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
93
93
  name: "filter_resource_entities",
94
94
  short: "",
95
95
  description: "Provides the value of 'filter_resource_entities' in body",
96
- optional: true,
96
+ optional: false,
97
97
  args: ["filter_resource_entities"],
98
98
  defaults: [""]
99
99
  },
@@ -101,7 +101,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
101
101
  name: "filter_resource_ids",
102
102
  short: "",
103
103
  description: "Provides the value of 'filter_resource_ids' in body",
104
- optional: true,
104
+ optional: false,
105
105
  args: ["filter_resource_ids"],
106
106
  defaults: [""]
107
107
  },
@@ -109,7 +109,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
109
109
  name: "filter_usage_names",
110
110
  short: "",
111
111
  description: "Provides the value of 'filter_usage_names' in body",
112
- optional: true,
112
+ optional: false,
113
113
  args: ["filter_usage_names"],
114
114
  defaults: [""]
115
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CostGroupedCommand.js","sourceRoot":"","sources":["../../src/command/CostGroupedCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,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AAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjID,gDAiIC;AAAA,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export declare enum DimensionType {
2
+ NONE = "NONE",
2
3
  WORKSPACE = "WORKSPACE",
3
4
  PRODUCT = "PRODUCT",
4
5
  SALES_ITEM = "SALES_ITEM",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DimensionType = void 0;
4
4
  var DimensionType;
5
5
  (function (DimensionType) {
6
+ DimensionType["NONE"] = "NONE";
6
7
  DimensionType["WORKSPACE"] = "WORKSPACE";
7
8
  DimensionType["PRODUCT"] = "PRODUCT";
8
9
  DimensionType["SALES_ITEM"] = "SALES_ITEM";
@@ -1 +1 @@
1
- {"version":3,"file":"DimensionType.js","sourceRoot":"","sources":["../../src/enum/DimensionType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,aAUX;AAVD,WAAY,aAAa;IAErB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,0CAAyB,CAAA;AAC7B,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB"}
1
+ {"version":3,"file":"DimensionType.js","sourceRoot":"","sources":["../../src/enum/DimensionType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,aAWX;AAXD,WAAY,aAAa;IAErB,8BAAa,CAAA;IACb,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,0CAAyB,CAAA;AAC7B,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB"}
@@ -18,7 +18,7 @@ class BaseEstimator {
18
18
  let percent = seconds / 3600;
19
19
  let fee_object = this.getFee();
20
20
  let fee = option.active ? fee_object.active : fee_object.deactive;
21
- let amount = percent * fee * option.value;
21
+ let amount = Math.round(percent * fee * option.value);
22
22
  let currency = "USD";
23
23
  let estimation = {
24
24
  option,
@@ -1 +1 @@
1
- {"version":3,"file":"BaseEstimator.js","sourceRoot":"","sources":["../../src/estimator/BaseEstimator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,2CAA4C;AAE5C,MAAsB,aAAa;IAEzB,QAAQ;6DAAC,MAAwB,EAAE,kBAA2B,IAAI;YAEpE,IAAI,OAAO,GAAG,mBAAU,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClD,IAAI,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;YAC7B,IAAI,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC/B,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;YAElE,IAAI,MAAM,GAAG,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;YAC1C,IAAI,QAAQ,GAAG,KAAK,CAAC;YAErB,IAAI,UAAU,GAAe;gBACzB,MAAM;gBACN,OAAO;gBACP,KAAK,kBACD,KAAK,EAAE,MAAM,CAAC,KAAK,IAChB,IAAI,CAAC,QAAQ,EAAE,CACrB;gBACD,GAAG;gBACH,MAAM;gBACN,QAAQ;gBACR,IAAI,EAAE,SAAS;aAClB,CAAC;YAEF,IAAI,GAAG,GAAiB,EAAE,CAAC;YAC3B,IAAI,eAAe,EACnB,CAAC;gBACG,IAAI,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChC,KAAK,IAAI,KAAK,IAAI,OAAO,EACzB,CAAC;oBACG,IAAI,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,C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AC;4BACxB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;wBACzB,CAAC;wBACD,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;YAED,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CAIJ;AAzDD,sCAyDC"}
@@ -0,0 +1,15 @@
1
+ import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
2
+ import { BaseEstimator } from "./BaseEstimator";
3
+ export declare class LogLogGroupReadEstimator extends BaseEstimator {
4
+ static PER_GIGABYTE: number;
5
+ static FREE_TOTAL_VALUE: number;
6
+ getFee(): {
7
+ active: number;
8
+ deactive: number;
9
+ };
10
+ getUsage(): {
11
+ name: string;
12
+ unit: string;
13
+ };
14
+ getBonuses(): FreeTotalValueBonus[];
15
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogLogGroupReadEstimator = void 0;
4
+ const FreeTotalValueBonus_1 = require("../bonus/FreeTotalValueBonus");
5
+ const Usage_1 = require("../type/Usage");
6
+ const BaseEstimator_1 = require("./BaseEstimator");
7
+ class LogLogGroupReadEstimator extends BaseEstimator_1.BaseEstimator {
8
+ getFee() {
9
+ return { active: LogLogGroupReadEstimator.PER_GIGABYTE, deactive: LogLogGroupReadEstimator.PER_GIGABYTE };
10
+ }
11
+ getUsage() {
12
+ return {
13
+ name: Usage_1.Usage.APICALL.name,
14
+ unit: Usage_1.Usage.APICALL.units.REQUEST.name
15
+ };
16
+ }
17
+ getBonuses() {
18
+ return [
19
+ new FreeTotalValueBonus_1.FreeTotalValueBonus(LogLogGroupReadEstimator.FREE_TOTAL_VALUE)
20
+ ];
21
+ }
22
+ }
23
+ exports.LogLogGroupReadEstimator = LogLogGroupReadEstimator;
24
+ LogLogGroupReadEstimator.PER_GIGABYTE = 20 / 1024 / 1024;
25
+ LogLogGroupReadEstimator.FREE_TOTAL_VALUE = 1024 * 1024;
26
+ //# sourceMappingURL=LogLogGroupReadEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogLogGroupReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/LogLogGroupReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,wBAAyB,SAAQ,6BAAa;IAI9C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,wBAAwB,CAAC,YAAY,EAAE,QAAQ,EAAE,wBAAwB,CAAC,YAAY,EAAE,CAAC;IAC9G,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,wBAAwB,CAAC,gBAAgB,CAAC;SACrE,CAAC;IACN,CAAC;;AApBL,4DAqBC;AAnBU,qCAAY,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAChC,yCAAgB,GAAG,IAAI,GAAG,IAAI,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { FreeCountBonus } from "../bonus/FreeCountBonus";
2
+ import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
3
+ import { BaseEstimator } from "./BaseEstimator";
4
+ export declare class LogLogGroupRecordEstimator extends BaseEstimator {
5
+ static PER_HOUR_ACTIVE_PER_KILOBYTE: number;
6
+ static FREE_COUNT: number;
7
+ static FREE_TOTAL_VALUE: number;
8
+ getFee(): {
9
+ active: number;
10
+ deactive: number;
11
+ };
12
+ getUsage(): {
13
+ name: string;
14
+ unit: string;
15
+ };
16
+ getBonuses(): (FreeCountBonus | FreeTotalValueBonus)[];
17
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogLogGroupRecordEstimator = void 0;
4
+ const FreeCountBonus_1 = require("../bonus/FreeCountBonus");
5
+ const FreeTotalValueBonus_1 = require("../bonus/FreeTotalValueBonus");
6
+ const Usage_1 = require("../type/Usage");
7
+ const BaseEstimator_1 = require("./BaseEstimator");
8
+ class LogLogGroupRecordEstimator extends BaseEstimator_1.BaseEstimator {
9
+ getFee() {
10
+ return { active: LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE, deactive: LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE };
11
+ }
12
+ getUsage() {
13
+ return {
14
+ name: Usage_1.Usage.Time.name,
15
+ unit: Usage_1.Usage.Time.units.Hour.name
16
+ };
17
+ }
18
+ getBonuses() {
19
+ return [
20
+ new FreeCountBonus_1.FreeCountBonus(LogLogGroupRecordEstimator.FREE_COUNT),
21
+ new FreeTotalValueBonus_1.FreeTotalValueBonus(LogLogGroupRecordEstimator.FREE_TOTAL_VALUE)
22
+ ];
23
+ }
24
+ }
25
+ exports.LogLogGroupRecordEstimator = LogLogGroupRecordEstimator;
26
+ LogLogGroupRecordEstimator.PER_HOUR_ACTIVE_PER_KILOBYTE = 70 / 1024 / 1024;
27
+ LogLogGroupRecordEstimator.FREE_COUNT = 5;
28
+ LogLogGroupRecordEstimator.FREE_TOTAL_VALUE = 100 * 1024;
29
+ //# sourceMappingURL=LogLogGroupRecordEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogLogGroupRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/LogLogGroupRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,0BAA2B,SAAQ,6BAAa;IAKhD,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,0BAA0B,CAAC,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,CAAC,4BAA4B,EAAE,CAAC;IAClJ,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,+BAAc,CAAC,0BAA0B,CAAC,UAAU,CAAC;YACzD,IAAI,yCAAmB,CAAC,0BAA0B,CAAC,gBAAgB,CAAC;SACvE,CAAC;IACN,CAAC;;AAtBL,gEAuBC;AArBU,uDAA4B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAChD,qCAAU,GAAG,CAAC,CAAC;AACf,2CAAgB,GAAG,GAAG,GAAG,IAAI,CAAC"}
@@ -2,7 +2,7 @@ import { FreeTotalValueBonus } from "../bonus/FreeTotalValueBonus";
2
2
  import { BaseEstimator } from "./BaseEstimator";
3
3
  export declare class SecretSecretReadEstimator extends BaseEstimator {
4
4
  static PER_CALL: number;
5
- static FREE_TOTOAL_VALUE: number;
5
+ static FREE_TOTAL_VALUE: number;
6
6
  getFee(): {
7
7
  active: number;
8
8
  deactive: number;
@@ -16,11 +16,11 @@ class SecretSecretReadEstimator extends BaseEstimator_1.BaseEstimator {
16
16
  }
17
17
  getBonuses() {
18
18
  return [
19
- new FreeTotalValueBonus_1.FreeTotalValueBonus(SecretSecretReadEstimator.FREE_TOTOAL_VALUE)
19
+ new FreeTotalValueBonus_1.FreeTotalValueBonus(SecretSecretReadEstimator.FREE_TOTAL_VALUE)
20
20
  ];
21
21
  }
22
22
  }
23
23
  exports.SecretSecretReadEstimator = SecretSecretReadEstimator;
24
24
  SecretSecretReadEstimator.PER_CALL = 1;
25
- SecretSecretReadEstimator.FREE_TOTOAL_VALUE = 1000;
25
+ SecretSecretReadEstimator.FREE_TOTAL_VALUE = 1000;
26
26
  //# sourceMappingURL=SecretSecretReadEstimator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SecretSecretReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,yBAA0B,SAAQ,6BAAa;IAI/C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC;IACxG,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,yBAAyB,CAAC,iBAAiB,CAAC;SACvE,CAAC;IACN,CAAC;;AApBL,8DAqBC;AAnBU,kCAAQ,GAAG,CAAC,CAAC;AACb,2CAAiB,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"SecretSecretReadEstimator.js","sourceRoot":"","sources":["../../src/estimator/SecretSecretReadEstimator.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,yCAAsC;AACtC,mDAAgD;AAEhD,MAAa,yBAA0B,SAAQ,6BAAa;IAI/C,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC;IACxG,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,IAAI;YACxB,IAAI,EAAE,aAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;SACzC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,yCAAmB,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;SACtE,CAAC;IACN,CAAC;;AApBL,8DAqBC;AAnBU,kCAAQ,GAAG,CAAC,CAAC;AACb,0CAAgB,GAAG,IAAI,CAAC"}
package/dist/index.d.ts CHANGED
@@ -59,11 +59,14 @@ export * from "./estimator/BillWatchGCPRecordEstimator";
59
59
  export * from "./estimator/FieldBaseRecordEstimator";
60
60
  export * from "./estimator/FieldCategoryRecordEstimator";
61
61
  export * from "./estimator/FieldFieldRecordEstimator";
62
+ export * from "./estimator/LogLogGroupReadEstimator";
63
+ export * from "./estimator/LogLogGroupRecordEstimator";
62
64
  export * from "./estimator/SecretSecretReadEstimator";
63
65
  export * from "./estimator/SecretSecretRecordEstimator";
64
66
  export * from "./meta/CostMetaTable";
65
67
  export * from "./meta/NamirasoftCostMetaDatabase";
66
68
  export * from "./row/CostRow";
69
+ export * from "./row/GroupedResponseRow";
67
70
  export * from "./type/Bonus";
68
71
  export * from "./type/CalculationOption";
69
72
  export * from "./type/Estimation";
package/dist/index.js CHANGED
@@ -75,11 +75,14 @@ __exportStar(require("./estimator/BillWatchGCPRecordEstimator"), exports);
75
75
  __exportStar(require("./estimator/FieldBaseRecordEstimator"), exports);
76
76
  __exportStar(require("./estimator/FieldCategoryRecordEstimator"), exports);
77
77
  __exportStar(require("./estimator/FieldFieldRecordEstimator"), exports);
78
+ __exportStar(require("./estimator/LogLogGroupReadEstimator"), exports);
79
+ __exportStar(require("./estimator/LogLogGroupRecordEstimator"), exports);
78
80
  __exportStar(require("./estimator/SecretSecretReadEstimator"), exports);
79
81
  __exportStar(require("./estimator/SecretSecretRecordEstimator"), exports);
80
82
  __exportStar(require("./meta/CostMetaTable"), exports);
81
83
  __exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
82
84
  __exportStar(require("./row/CostRow"), exports);
85
+ __exportStar(require("./row/GroupedResponseRow"), exports);
83
86
  __exportStar(require("./type/Bonus"), exports);
84
87
  __exportStar(require("./type/CalculationOption"), exports);
85
88
  __exportStar(require("./type/Estimation"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;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6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,uEAAqD;AACrD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,2DAAyC;AACzC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
@@ -0,0 +1,6 @@
1
+ export type GroupedResponseRow = {
2
+ period: Date;
3
+ dimension: string;
4
+ total_count: number;
5
+ total_amount: number;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GroupedResponseRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupedResponseRow.js","sourceRoot":"","sources":["../../src/row/GroupedResponseRow.ts"],"names":[],"mappings":""}
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.43",
12
- "author": "Amir Abolhasani",
13
- "license": "MIT",
14
- "main": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
- "scripts": {
17
- "build": ""
18
- },
19
- "dependencies": {
20
- "namirasoft-core": "^1.4.80",
21
- "namirasoft-site": "^1.4.39",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.85",
24
- "namirasoft-schema": "^1.4.25"
25
- },
26
- "bin": {
27
- "ns-cost": "./dist/command/cli.js"
28
- }
1
+ {
2
+ "name": "namirasoft-cost",
3
+ "title": "Namirasoft Cost NPM Package",
4
+ "description": "Namira Software Corporation Cost NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.4.45",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": ""
18
+ },
19
+ "dependencies": {
20
+ "namirasoft-core": "^1.4.80",
21
+ "namirasoft-site": "^1.4.39",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.85",
24
+ "namirasoft-schema": "^1.4.25"
25
+ },
26
+ "bin": {
27
+ "ns-cost": "./dist/command/cli.js"
28
+ }
29
29
  }
@@ -1,60 +1,60 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any change is required, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { NSABaseServer } from "namirasoft-account";
22
- import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
23
- import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
24
- import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
25
- import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
26
- import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
27
- import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
28
- import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
29
- import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
30
- import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
31
- import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
32
- import { TokenManager } from "namirasoft-account";
33
-
34
- export class NamirasoftCostServer extends NSABaseServer
35
- {
36
- healthz: NamirasoftCostServerHealthz;
37
- metrics: NamirasoftCostServerMetrics;
38
- value: NamirasoftCostServerValue;
39
- bill_watch_aws: NamirasoftCostServerBillWatchAWS;
40
- bill_watch_azure: NamirasoftCostServerBillWatchAzure;
41
- bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
42
- field_category: NamirasoftCostServerFieldCategory;
43
- field_field: NamirasoftCostServerFieldField;
44
- secret_secret: NamirasoftCostServerSecretSecret;
45
- cost: NamirasoftCostServerCost;
46
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
- {
48
- super(base_url, `1.4.43`, manager, onError);
49
- this.healthz = new NamirasoftCostServerHealthz(this);
50
- this.metrics = new NamirasoftCostServerMetrics(this);
51
- this.value = new NamirasoftCostServerValue(this);
52
- this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
53
- this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
54
- this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
55
- this.field_category = new NamirasoftCostServerFieldCategory(this);
56
- this.field_field = new NamirasoftCostServerFieldField(this);
57
- this.secret_secret = new NamirasoftCostServerSecretSecret(this);
58
- this.cost = new NamirasoftCostServerCost(this);
59
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NSABaseServer } from "namirasoft-account";
22
+ import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
23
+ import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
24
+ import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
25
+ import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
26
+ import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
27
+ import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
28
+ import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
29
+ import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
30
+ import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
31
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
32
+ import { TokenManager } from "namirasoft-account";
33
+
34
+ export class NamirasoftCostServer extends NSABaseServer
35
+ {
36
+ healthz: NamirasoftCostServerHealthz;
37
+ metrics: NamirasoftCostServerMetrics;
38
+ value: NamirasoftCostServerValue;
39
+ bill_watch_aws: NamirasoftCostServerBillWatchAWS;
40
+ bill_watch_azure: NamirasoftCostServerBillWatchAzure;
41
+ bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
42
+ field_category: NamirasoftCostServerFieldCategory;
43
+ field_field: NamirasoftCostServerFieldField;
44
+ secret_secret: NamirasoftCostServerSecretSecret;
45
+ cost: NamirasoftCostServerCost;
46
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
+ {
48
+ super(base_url, `1.4.44`, manager, onError);
49
+ this.healthz = new NamirasoftCostServerHealthz(this);
50
+ this.metrics = new NamirasoftCostServerMetrics(this);
51
+ this.value = new NamirasoftCostServerValue(this);
52
+ this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
53
+ this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
54
+ this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
55
+ this.field_category = new NamirasoftCostServerFieldCategory(this);
56
+ this.field_field = new NamirasoftCostServerFieldField(this);
57
+ this.secret_secret = new NamirasoftCostServerSecretSecret(this);
58
+ this.cost = new NamirasoftCostServerCost(this);
59
+ }
60
60
  };