namirasoft-cost 1.4.27 → 1.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.ns-sdkg-file-keep +10 -0
  2. package/dist/NamirasoftCostServer.js +1 -1
  3. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -15
  4. package/dist/NamirasoftCostServerBillWatchAWS.js +2 -2
  5. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  6. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -15
  7. package/dist/NamirasoftCostServerBillWatchAzure.js +2 -2
  8. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  9. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -15
  10. package/dist/NamirasoftCostServerBillWatchGCP.js +2 -2
  11. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  12. package/dist/NamirasoftCostServerCost.d.ts +0 -2
  13. package/dist/NamirasoftCostServerCost.js +0 -8
  14. package/dist/NamirasoftCostServerCost.js.map +1 -1
  15. package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -15
  16. package/dist/NamirasoftCostServerFieldCategory.js +2 -2
  17. package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
  18. package/dist/NamirasoftCostServerFieldField.d.ts +4 -15
  19. package/dist/NamirasoftCostServerFieldField.js +2 -2
  20. package/dist/NamirasoftCostServerFieldField.js.map +1 -1
  21. package/dist/NamirasoftCostServerSecretSecret.d.ts +6 -29
  22. package/dist/NamirasoftCostServerSecretSecret.js +2 -2
  23. package/dist/NamirasoftCostServerSecretSecret.js.map +1 -1
  24. package/dist/command/BillWatchAWSCommand.d.ts +4 -0
  25. package/dist/command/BillWatchAWSCommand.js +17 -0
  26. package/dist/command/BillWatchAWSCommand.js.map +1 -0
  27. package/dist/command/BillWatchAWSEstimateRecordCommand.d.ts +5 -0
  28. package/dist/command/BillWatchAWSEstimateRecordCommand.js +103 -0
  29. package/dist/command/BillWatchAWSEstimateRecordCommand.js.map +1 -0
  30. package/dist/command/BillWatchAWS_CreateForRecordCommand.d.ts +5 -0
  31. package/dist/command/BillWatchAWS_CreateForRecordCommand.js +112 -0
  32. package/dist/command/BillWatchAWS_CreateForRecordCommand.js.map +1 -0
  33. package/dist/command/BillWatchAzureCommand.d.ts +4 -0
  34. package/dist/command/BillWatchAzureCommand.js +17 -0
  35. package/dist/command/BillWatchAzureCommand.js.map +1 -0
  36. package/dist/command/BillWatchAzureEstimateRecordCommand.d.ts +5 -0
  37. package/dist/command/BillWatchAzureEstimateRecordCommand.js +103 -0
  38. package/dist/command/BillWatchAzureEstimateRecordCommand.js.map +1 -0
  39. package/dist/command/BillWatchAzure_CreateForRecordCommand.d.ts +5 -0
  40. package/dist/command/BillWatchAzure_CreateForRecordCommand.js +112 -0
  41. package/dist/command/BillWatchAzure_CreateForRecordCommand.js.map +1 -0
  42. package/dist/command/BillWatchGCPCommand.d.ts +4 -0
  43. package/dist/command/BillWatchGCPCommand.js +17 -0
  44. package/dist/command/BillWatchGCPCommand.js.map +1 -0
  45. package/dist/command/BillWatchGCPEstimateRecordCommand.d.ts +5 -0
  46. package/dist/command/BillWatchGCPEstimateRecordCommand.js +103 -0
  47. package/dist/command/BillWatchGCPEstimateRecordCommand.js.map +1 -0
  48. package/dist/command/BillWatchGCP_CreateForRecordCommand.d.ts +5 -0
  49. package/dist/command/BillWatchGCP_CreateForRecordCommand.js +112 -0
  50. package/dist/command/BillWatchGCP_CreateForRecordCommand.js.map +1 -0
  51. package/dist/command/CostCommand.d.ts +4 -0
  52. package/dist/command/CostCommand.js +15 -0
  53. package/dist/command/CostCommand.js.map +1 -0
  54. package/dist/command/CostListCommand.d.ts +5 -0
  55. package/dist/command/CostListCommand.js +38 -0
  56. package/dist/command/CostListCommand.js.map +1 -0
  57. package/dist/command/FieldCategoryCommand.d.ts +4 -0
  58. package/dist/command/FieldCategoryCommand.js +17 -0
  59. package/dist/command/FieldCategoryCommand.js.map +1 -0
  60. package/dist/command/FieldCategoryEstimateRecordCommand.d.ts +5 -0
  61. package/dist/command/FieldCategoryEstimateRecordCommand.js +103 -0
  62. package/dist/command/FieldCategoryEstimateRecordCommand.js.map +1 -0
  63. package/dist/command/FieldCategory_CreateForRecordCommand.d.ts +5 -0
  64. package/dist/command/FieldCategory_CreateForRecordCommand.js +112 -0
  65. package/dist/command/FieldCategory_CreateForRecordCommand.js.map +1 -0
  66. package/dist/command/FieldFieldCommand.d.ts +4 -0
  67. package/dist/command/FieldFieldCommand.js +17 -0
  68. package/dist/command/FieldFieldCommand.js.map +1 -0
  69. package/dist/command/FieldFieldEstimateRecordCommand.d.ts +5 -0
  70. package/dist/command/FieldFieldEstimateRecordCommand.js +103 -0
  71. package/dist/command/FieldFieldEstimateRecordCommand.js.map +1 -0
  72. package/dist/command/FieldField_CreateForRecordCommand.d.ts +5 -0
  73. package/dist/command/FieldField_CreateForRecordCommand.js +112 -0
  74. package/dist/command/FieldField_CreateForRecordCommand.js.map +1 -0
  75. package/dist/command/HealthzCommand.d.ts +4 -0
  76. package/dist/command/HealthzCommand.js +15 -0
  77. package/dist/command/HealthzCommand.js.map +1 -0
  78. package/dist/command/HealthzGetCommand.d.ts +5 -0
  79. package/dist/command/HealthzGetCommand.js +38 -0
  80. package/dist/command/HealthzGetCommand.js.map +1 -0
  81. package/dist/command/MetricsCommand.d.ts +4 -0
  82. package/dist/command/MetricsCommand.js +15 -0
  83. package/dist/command/MetricsCommand.js.map +1 -0
  84. package/dist/command/MetricsGetCommand.d.ts +5 -0
  85. package/dist/command/MetricsGetCommand.js +38 -0
  86. package/dist/command/MetricsGetCommand.js.map +1 -0
  87. package/dist/command/SecretSecretCommand.d.ts +4 -0
  88. package/dist/command/SecretSecretCommand.js +21 -0
  89. package/dist/command/SecretSecretCommand.js.map +1 -0
  90. package/dist/command/SecretSecretEstimateReadCommand.d.ts +5 -0
  91. package/dist/command/SecretSecretEstimateReadCommand.js +103 -0
  92. package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
  93. package/dist/command/SecretSecretEstimateRecordCommand.d.ts +5 -0
  94. package/dist/command/SecretSecretEstimateRecordCommand.js +103 -0
  95. package/dist/command/SecretSecretEstimateRecordCommand.js.map +1 -0
  96. package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
  97. package/dist/command/SecretSecret_CreateForReadCommand.js +112 -0
  98. package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
  99. package/dist/command/SecretSecret_CreateForRecordCommand.d.ts +5 -0
  100. package/dist/command/SecretSecret_CreateForRecordCommand.js +112 -0
  101. package/dist/command/SecretSecret_CreateForRecordCommand.js.map +1 -0
  102. package/dist/command/ValueCommand.d.ts +4 -0
  103. package/dist/command/ValueCommand.js +15 -0
  104. package/dist/command/ValueCommand.js.map +1 -0
  105. package/dist/command/ValueListCommand.d.ts +5 -0
  106. package/dist/command/ValueListCommand.js +38 -0
  107. package/dist/command/ValueListCommand.js.map +1 -0
  108. package/dist/command/cli.d.ts +2 -0
  109. package/dist/command/cli.js +32 -0
  110. package/dist/command/cli.js.map +1 -0
  111. package/dist/estimator/BaseEstimator.d.ts +1 -1
  112. package/dist/estimator/BaseEstimator.js +1 -1
  113. package/dist/estimator/BaseEstimator.js.map +1 -1
  114. package/dist/estimator/BillWatchBaseRecordEstimator.d.ts +1 -1
  115. package/dist/estimator/BillWatchBaseRecordEstimator.js +1 -1
  116. package/dist/estimator/BillWatchBaseRecordEstimator.js.map +1 -1
  117. package/dist/estimator/FieldBaseRecordEstimator.d.ts +1 -1
  118. package/dist/estimator/FieldBaseRecordEstimator.js +1 -1
  119. package/dist/estimator/FieldBaseRecordEstimator.js.map +1 -1
  120. package/dist/estimator/SecretSecretReadEstimator.d.ts +1 -1
  121. package/dist/estimator/SecretSecretReadEstimator.js +1 -1
  122. package/dist/estimator/SecretSecretReadEstimator.js.map +1 -1
  123. package/dist/estimator/SecretSecretRecordEstimator.d.ts +1 -1
  124. package/dist/estimator/SecretSecretRecordEstimator.js +1 -1
  125. package/dist/estimator/SecretSecretRecordEstimator.js.map +1 -1
  126. package/dist/index.d.ts +47 -12
  127. package/dist/index.js +47 -12
  128. package/dist/index.js.map +1 -1
  129. package/package.json +4 -4
  130. package/src/NamirasoftCostServer.ts +1 -1
  131. package/src/NamirasoftCostServerBillWatchAWS.ts +8 -7
  132. package/src/NamirasoftCostServerBillWatchAzure.ts +8 -7
  133. package/src/NamirasoftCostServerBillWatchGCP.ts +8 -7
  134. package/src/NamirasoftCostServerCost.ts +0 -8
  135. package/src/NamirasoftCostServerFieldCategory.ts +8 -7
  136. package/src/NamirasoftCostServerFieldField.ts +8 -7
  137. package/src/NamirasoftCostServerSecretSecret.ts +12 -11
  138. package/src/command/BillWatchAWSCommand.ts +34 -0
  139. package/src/command/BillWatchAWSEstimateRecordCommand.ts +110 -0
  140. package/src/command/BillWatchAWS_CreateForRecordCommand.ts +119 -0
  141. package/src/command/BillWatchAzureCommand.ts +34 -0
  142. package/src/command/BillWatchAzureEstimateRecordCommand.ts +110 -0
  143. package/src/command/BillWatchAzure_CreateForRecordCommand.ts +119 -0
  144. package/src/command/BillWatchGCPCommand.ts +34 -0
  145. package/src/command/BillWatchGCPEstimateRecordCommand.ts +110 -0
  146. package/src/command/BillWatchGCP_CreateForRecordCommand.ts +119 -0
  147. package/src/{row/CostCreateRow.ts → command/CostCommand.ts} +11 -17
  148. package/src/command/CostListCommand.ts +45 -0
  149. package/src/command/FieldCategoryCommand.ts +34 -0
  150. package/src/command/FieldCategoryEstimateRecordCommand.ts +110 -0
  151. package/src/command/FieldCategory_CreateForRecordCommand.ts +119 -0
  152. package/src/command/FieldFieldCommand.ts +34 -0
  153. package/src/command/FieldFieldEstimateRecordCommand.ts +110 -0
  154. package/src/command/FieldField_CreateForRecordCommand.ts +119 -0
  155. package/src/command/HealthzCommand.ts +32 -0
  156. package/src/command/HealthzGetCommand.ts +45 -0
  157. package/src/command/MetricsCommand.ts +32 -0
  158. package/src/command/MetricsGetCommand.ts +45 -0
  159. package/src/command/SecretSecretCommand.ts +38 -0
  160. package/src/command/SecretSecretEstimateReadCommand.ts +110 -0
  161. package/src/command/SecretSecretEstimateRecordCommand.ts +110 -0
  162. package/src/command/SecretSecret_CreateForReadCommand.ts +119 -0
  163. package/src/command/SecretSecret_CreateForRecordCommand.ts +119 -0
  164. package/src/command/ValueCommand.ts +32 -0
  165. package/src/command/ValueListCommand.ts +45 -0
  166. package/src/command/cli.ts +51 -0
  167. package/src/estimator/BaseEstimator.ts +62 -62
  168. package/src/estimator/BillWatchAWSRecordEstimator.ts +4 -4
  169. package/src/estimator/BillWatchAzureRecordEstimator.ts +4 -4
  170. package/src/estimator/BillWatchBaseRecordEstimator.ts +25 -25
  171. package/src/estimator/BillWatchGCPRecordEstimator.ts +4 -4
  172. package/src/estimator/FieldBaseRecordEstimator.ts +20 -20
  173. package/src/estimator/FieldCategoryRecordEstimator.ts +9 -9
  174. package/src/estimator/FieldFieldRecordEstimator.ts +9 -9
  175. package/src/estimator/SecretSecretReadEstimator.ts +25 -25
  176. package/src/estimator/SecretSecretRecordEstimator.ts +24 -24
  177. package/src/index.ts +47 -12
  178. package/src/type/CalculationOption.ts +1 -1
  179. package/src/type/Estimation.ts +1 -1
  180. package/dist/row/CostCreateRow.d.ts +0 -17
  181. package/dist/row/CostCreateRow.js +0 -3
  182. package/dist/row/CostCreateRow.js.map +0 -1
@@ -17,6 +17,16 @@ src/bonus/FieldCategoryRecordEstimator.ts
17
17
  src/bonus/FieldFieldRecordEstimator.ts
18
18
  src/bonus/SecretSecretRecordEstimator.ts
19
19
  src/bonus/SecretSecretReadEstimator.ts
20
+ src/estimator/BaseEstimator.ts
21
+ src/estimator/BillWatchAWSRecordEstimator.ts
22
+ src/estimator/BillWatchAzureRecordEstimator.ts
23
+ src/estimator/BillWatchBaseRecordEstimator.ts
24
+ src/estimator/BillWatchGCPRecordEstimator.ts
25
+ src/estimator/FieldBaseRecordEstimator.ts
26
+ src/estimator/FieldCategoryRecordEstimator.ts
27
+ src/estimator/FieldFieldRecordEstimator.ts
28
+ src/estimator/SecretSecretRecordEstimator.ts
29
+ src/estimator/SecretSecretReadEstimator.ts
20
30
  src/type/Bonus.ts
21
31
  src/type/CalculationOption.ts
22
32
  src/type/Estimation.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.21`, manager, onError);
17
+ super(base_url, `1.4.30`, 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);
@@ -1,22 +1,11 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
22
11
  }
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.Namira
19
19
  }
20
20
  EstimateRecord(body) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
- let path = `/estimation/bill-watch/aws/hourly`;
22
+ let path = `/estimation/bill-watch/aws/record`;
23
23
  let { data } = yield this.server._post(path, {}, body);
24
24
  return data;
25
25
  });
26
26
  }
27
27
  _CreateForRecord(user_id, body) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- let path = `/application/user/${user_id}/cost/bill-watch/aws/hourly`;
29
+ let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
30
30
  let { data } = yield this.server._post(path, {}, body);
31
31
  return data;
32
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -1,22 +1,11 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
22
11
  }
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.Nami
19
19
  }
20
20
  EstimateRecord(body) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
- let path = `/estimation/bill-watch/azure/hourly`;
22
+ let path = `/estimation/bill-watch/azure/record`;
23
23
  let { data } = yield this.server._post(path, {}, body);
24
24
  return data;
25
25
  });
26
26
  }
27
27
  _CreateForRecord(user_id, body) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- let path = `/application/user/${user_id}/cost/bill-watch/azure/hourly`;
29
+ let path = `/application/user/${user_id}/cost/bill-watch/azure/record`;
30
30
  let { data } = yield this.server._post(path, {}, body);
31
31
  return data;
32
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc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EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,+BAA+B,CAAC;YACvE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,gFAoBC;AAAA,CAAC"}
@@ -1,22 +1,11 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
22
11
  }
@@ -19,14 +19,14 @@ class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.Namira
19
19
  }
20
20
  EstimateRecord(body) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
- let path = `/estimation/bill-watch/gcp/hourly`;
22
+ let path = `/estimation/bill-watch/gcp/record`;
23
23
  let { data } = yield this.server._post(path, {}, body);
24
24
  return data;
25
25
  });
26
26
  }
27
27
  _CreateForRecord(user_id, body) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- let path = `/application/user/${user_id}/cost/bill-watch/gcp/hourly`;
29
+ let path = `/application/user/${user_id}/cost/bill-watch/gcp/record`;
30
30
  let { data } = yield this.server._post(path, {}, body);
31
31
  return data;
32
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -1,4 +1,3 @@
1
- import { CostCreateRow } from "./row/CostCreateRow";
2
1
  import { CostRow } from "./row/CostRow";
3
2
  import { FilterItem } from "namirasoft-core";
4
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
@@ -10,5 +9,4 @@ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
10
9
  rows: CostRow[];
11
10
  count: number;
12
11
  }>;
13
- _CreateFor(user_id: string, body: CostCreateRow): Promise<CostRow>;
14
12
  }
@@ -17,7 +17,6 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
17
17
  constructor(server) {
18
18
  super(server);
19
19
  this.List = this.List.bind(this);
20
- this._CreateFor = this._CreateFor.bind(this);
21
20
  }
22
21
  List(filters, page, size, sorts) {
23
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -28,13 +27,6 @@ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCost
28
27
  return data;
29
28
  });
30
29
  }
31
- _CreateFor(user_id, body) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- let path = `/application/user/${user_id}/cost`;
34
- let { data } = yield this.server._post(path, {}, body);
35
- return data;
36
- });
37
- }
38
30
  }
39
31
  exports.NamirasoftCostServerCost = NamirasoftCostServerCost;
40
32
  ;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;AAE7C,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,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,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,I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C"}
@@ -1,22 +1,11 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
22
11
  }
@@ -19,14 +19,14 @@ class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase_1.Namir
19
19
  }
20
20
  EstimateRecord(body) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
- let path = `/estimation/field/category/hourly`;
22
+ let path = `/estimation/field/category/record`;
23
23
  let { data } = yield this.server._post(path, {}, body);
24
24
  return data;
25
25
  });
26
26
  }
27
27
  _CreateForRecord(user_id, body) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- let path = `/application/user/${user_id}/cost/field/category/hourly`;
29
+ let path = `/application/user/${user_id}/cost/field/category/record`;
30
30
  let { data } = yield this.server._post(path, {}, body);
31
31
  return data;
32
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerFieldCategory.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,iCAAkC,SA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G,mCAAmC,CAAC;YAC/C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,8EAoBC;AAAA,CAAC"}
@@ -1,22 +1,11 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerFieldField extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
22
11
  }
@@ -19,14 +19,14 @@ class NamirasoftCostServerFieldField extends NamirasoftCostServerBase_1.Namiraso
19
19
  }
20
20
  EstimateRecord(body) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
- let path = `/estimation/field/field/hourly`;
22
+ let path = `/estimation/field/field/record`;
23
23
  let { data } = yield this.server._post(path, {}, body);
24
24
  return data;
25
25
  });
26
26
  }
27
27
  _CreateForRecord(user_id, body) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- let path = `/application/user/${user_id}/cost/field/field/hourly`;
29
+ let path = `/application/user/${user_id}/cost/field/field/record`;
30
30
  let { data } = yield this.server._post(path, {}, body);
31
31
  return data;
32
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerFieldField.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,8BAA+B,SAAQ,mDAAwB;IAExE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,wEAoBC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerFieldField.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA,yEAAsE;AAEtE,MAAa,8BAA+B,SAAQ,mDAAwB;IAExE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAsB;;YAEvC,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAuB;;YAE3D,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,wEAoBC;AAAA,CAAC"}
@@ -1,36 +1,13 @@
1
+ import { CalculationOption } from "./type/CalculationOption";
1
2
  import { CostRow } from "./row/CostRow";
2
3
  import { Estimation } from "./type/Estimation";
4
+ import { EstimationOption } from "./type/EstimationOption";
3
5
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
6
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
- import { Period } from "./type/Period";
6
7
  export declare class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase {
7
8
  constructor(server: NamirasoftCostServer);
8
- EstimateRecord(body: {
9
- first_entity_created_at: (Date | null);
10
- period: Period;
11
- row_number: number;
12
- active: boolean;
13
- }): Promise<Estimation>;
14
- _CreateForRecord(user_id: string, body: {
15
- first_entity_created_at: (Date | null);
16
- period: Period;
17
- row_number: number;
18
- active: boolean;
19
- workspace_id: string;
20
- resource_id: string;
21
- }): Promise<CostRow>;
22
- EstimateRead(body: {
23
- first_entity_created_at: (Date | null);
24
- period: Period;
25
- total: number;
26
- count: number;
27
- }): Promise<Estimation>;
28
- _CreateForRead(user_id: string, body: {
29
- first_entity_created_at: (Date | null);
30
- period: Period;
31
- total: number;
32
- count: number;
33
- workspace_id: string;
34
- resource_id: string;
35
- }): Promise<CostRow>;
9
+ EstimateRecord(body: EstimationOption): Promise<Estimation[]>;
10
+ _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>;
11
+ EstimateRead(body: EstimationOption): Promise<Estimation[]>;
12
+ _CreateForRead(user_id: string, body: CalculationOption): Promise<CostRow[]>;
36
13
  }
@@ -21,14 +21,14 @@ class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase_1.Namira
21
21
  }
22
22
  EstimateRecord(body) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
- let path = `/estimation/secret/secret/hourly`;
24
+ let path = `/estimation/secret/secret/record`;
25
25
  let { data } = yield this.server._post(path, {}, body);
26
26
  return data;
27
27
  });
28
28
  }
29
29
  _CreateForRecord(user_id, body) {
30
30
  return __awaiter(this, void 0, void 0, function* () {
31
- let path = `/application/user/${user_id}/cost/secret/secret/hourly`;
31
+ let path = `/application/user/${user_id}/cost/secret/secret/record`;
32
32
  let { data } = yield this.server._post(path, {}, body);
33
33
  return data;
34
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerSecretSecret.js","sourceRoot":"","sources":["../src/NamirasoftCostServerSecretSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAA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AC;QAChB,CAAC;KAAA;IACK,YAAY,CAAC,IAAsB;;YAErC,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,cAAc,CAAC,OAAe,EAAE,IAAuB;;YAEzD,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAY,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAClE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAlCD,4EAkCC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWSCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillWatchAWSCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const BillWatchAWSEstimateRecordCommand_1 = require("./BillWatchAWSEstimateRecordCommand");
6
+ const BillWatchAWS_CreateForRecordCommand_1 = require("./BillWatchAWS_CreateForRecordCommand");
7
+ class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
8
+ constructor(argv) {
9
+ super(argv, {
10
+ "estimaterecord": BillWatchAWSEstimateRecordCommand_1.BillWatchAWSEstimateRecordCommand,
11
+ "_createforrecord": BillWatchAWS_CreateForRecordCommand_1.BillWatchAWS_CreateForRecordCommand,
12
+ });
13
+ }
14
+ }
15
+ exports.BillWatchAWSCommand = BillWatchAWSCommand;
16
+ ;
17
+ //# sourceMappingURL=BillWatchAWSCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2FAAwF;AACxF,+FAA4F;AAE5F,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,qEAAiC;YACnD,kBAAkB,EAAE,yEAAmC;SAC1D,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWSEstimateRecordCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,103 @@
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.BillWatchAWSEstimateRecordCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class BillWatchAWSEstimateRecordCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], [
20
+ {
21
+ name: "period",
22
+ short: "",
23
+ description: "Provides the value of 'period' in body",
24
+ optional: false,
25
+ args: ["period"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "total_count",
30
+ short: "",
31
+ description: "Provides the value of 'total_count' in body",
32
+ optional: false,
33
+ args: ["total_count"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "number",
38
+ short: "",
39
+ description: "Provides the value of 'number' in body",
40
+ optional: false,
41
+ args: ["number"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "total_value",
46
+ short: "",
47
+ description: "Provides the value of 'total_value' in body",
48
+ optional: false,
49
+ args: ["total_value"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "value",
54
+ short: "",
55
+ description: "Provides the value of 'value' in body",
56
+ optional: false,
57
+ args: ["value"],
58
+ defaults: [""]
59
+ },
60
+ {
61
+ name: "active",
62
+ short: "",
63
+ description: "Provides the value of 'active' in body",
64
+ optional: false,
65
+ args: ["active"],
66
+ defaults: [""]
67
+ },
68
+ {
69
+ name: "trial_started_at",
70
+ short: "",
71
+ description: "Provides the value of 'trial_started_at' in body",
72
+ optional: true,
73
+ args: ["trial_started_at"],
74
+ defaults: [""]
75
+ }
76
+ ]);
77
+ }
78
+ exec() {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ let token = this.app.storage.getNSAToken();
81
+ if (token == null)
82
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
83
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
84
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
85
+ manager.setValue(token, false);
86
+ let url = this.app.storage.getItem("ns-cost-server-url");
87
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
88
+ let ans = yield server.bill_watch_aws.EstimateRecord({
89
+ period: this.option_values.period,
90
+ total_count: this.option_values.total_count,
91
+ number: this.option_values.number,
92
+ total_value: this.option_values.total_value,
93
+ value: this.option_values.value,
94
+ active: this.option_values.active,
95
+ trial_started_at: this.option_values.trial_started_at
96
+ });
97
+ this.app.logger.success(JSON.stringify(ans));
98
+ });
99
+ }
100
+ }
101
+ exports.BillWatchAWSEstimateRecordCommand = BillWatchAWSEstimateRecordCommand;
102
+ ;
103
+ //# sourceMappingURL=BillWatchAWSEstimateRecordCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWSEstimateRecordCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSEstimateRecordCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,iCAAkC,SAAQ,sCAAgB;IAEnE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,CAAC,EAAE,CAAC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O,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC;gBACjD,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;aACxD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AApFD,8EAoFC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWS_CreateForRecordCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }