namirasoft-cost 1.4.20 → 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 (237) hide show
  1. package/.ns-sdkg-dir-deep +3 -2
  2. package/.ns-sdkg-file-keep +21 -5
  3. package/dist/NamirasoftCostServer.d.ts +2 -0
  4. package/dist/NamirasoftCostServer.js +3 -1
  5. package/dist/NamirasoftCostServer.js.map +1 -1
  6. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -4
  7. package/dist/NamirasoftCostServerBillWatchAWS.js +6 -6
  8. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  9. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -4
  10. package/dist/NamirasoftCostServerBillWatchAzure.js +6 -6
  11. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  12. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -4
  13. package/dist/NamirasoftCostServerBillWatchGCP.js +6 -6
  14. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  15. package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -4
  16. package/dist/NamirasoftCostServerFieldCategory.js +6 -6
  17. package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
  18. package/dist/NamirasoftCostServerFieldField.d.ts +4 -4
  19. package/dist/NamirasoftCostServerFieldField.js +6 -6
  20. package/dist/NamirasoftCostServerFieldField.js.map +1 -1
  21. package/dist/NamirasoftCostServerSecretSecret.d.ts +36 -0
  22. package/dist/NamirasoftCostServerSecretSecret.js +53 -0
  23. package/dist/NamirasoftCostServerSecretSecret.js.map +1 -0
  24. package/dist/bonus/BaseBonus.d.ts +13 -0
  25. package/dist/bonus/BaseBonus.js +11 -0
  26. package/dist/bonus/BaseBonus.js.map +1 -0
  27. package/dist/bonus/DeactiveBonus.d.ts +10 -0
  28. package/dist/bonus/DeactiveBonus.js +27 -0
  29. package/dist/bonus/DeactiveBonus.js.map +1 -0
  30. package/dist/bonus/FreeCountBonus.d.ts +10 -0
  31. package/dist/bonus/FreeCountBonus.js +27 -0
  32. package/dist/bonus/FreeCountBonus.js.map +1 -0
  33. package/dist/bonus/FreeTotalValueBonus.d.ts +33 -0
  34. package/dist/bonus/FreeTotalValueBonus.js +39 -0
  35. package/dist/bonus/FreeTotalValueBonus.js.map +1 -0
  36. package/dist/bonus/LowAmountBonus.d.ts +10 -0
  37. package/dist/bonus/LowAmountBonus.js +27 -0
  38. package/dist/bonus/LowAmountBonus.js.map +1 -0
  39. package/dist/bonus/LowSecondsBonus.d.ts +10 -0
  40. package/dist/bonus/LowSecondsBonus.js +27 -0
  41. package/dist/bonus/LowSecondsBonus.js.map +1 -0
  42. package/dist/bonus/LowTotalCountBonus.d.ts +10 -0
  43. package/dist/bonus/LowTotalCountBonus.js +27 -0
  44. package/dist/bonus/LowTotalCountBonus.js.map +1 -0
  45. package/dist/bonus/LowTotalValueBonus.d.ts +10 -0
  46. package/dist/bonus/LowTotalValueBonus.js +27 -0
  47. package/dist/bonus/LowTotalValueBonus.js.map +1 -0
  48. package/dist/bonus/TrialBonus.d.ts +12 -0
  49. package/dist/bonus/TrialBonus.js +32 -0
  50. package/dist/bonus/TrialBonus.js.map +1 -0
  51. package/dist/command/BillWatchAWSCommand.js +4 -4
  52. package/dist/command/BillWatchAWSCommand.js.map +1 -1
  53. package/dist/command/{BillWatchAWS_CreateForCommand.d.ts → BillWatchAWSEstimateHourlyCommand.d.ts} +1 -1
  54. package/dist/command/{BillWatchGCPEstimationCommand.js → BillWatchAWSEstimateHourlyCommand.js} +15 -15
  55. package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +1 -0
  56. package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +5 -0
  57. package/dist/command/{BillWatchAWS_CreateForCommand.js → BillWatchAWS_CreateForHourlyCommand.js} +14 -14
  58. package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +1 -0
  59. package/dist/command/BillWatchAzureCommand.js +4 -4
  60. package/dist/command/BillWatchAzureCommand.js.map +1 -1
  61. package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +5 -0
  62. package/dist/command/BillWatchAzureEstimateHourlyCommand.js +76 -0
  63. package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +1 -0
  64. package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +5 -0
  65. package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +94 -0
  66. package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +1 -0
  67. package/dist/command/BillWatchGCPCommand.js +4 -4
  68. package/dist/command/BillWatchGCPCommand.js.map +1 -1
  69. package/dist/command/{BillWatchAWSEstimationCommand.d.ts → BillWatchGCPEstimateHourlyCommand.d.ts} +1 -1
  70. package/dist/command/{FieldCategoryEstimationCommand.js → BillWatchGCPEstimateHourlyCommand.js} +15 -15
  71. package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +1 -0
  72. package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +5 -0
  73. package/dist/command/{FieldCategory_CreateForCommand.js → BillWatchGCP_CreateForHourlyCommand.js} +14 -14
  74. package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +1 -0
  75. package/dist/command/FieldCategoryCommand.js +4 -4
  76. package/dist/command/FieldCategoryCommand.js.map +1 -1
  77. package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +5 -0
  78. package/dist/command/FieldCategoryEstimateHourlyCommand.js +76 -0
  79. package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +1 -0
  80. package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +5 -0
  81. package/dist/command/FieldCategory_CreateForHourlyCommand.js +94 -0
  82. package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +1 -0
  83. package/dist/command/FieldFieldCommand.js +4 -4
  84. package/dist/command/FieldFieldCommand.js.map +1 -1
  85. package/dist/command/{BillWatchAzure_CreateForCommand.d.ts → FieldFieldEstimateHourlyCommand.d.ts} +1 -1
  86. package/dist/command/{BillWatchAzureEstimationCommand.js → FieldFieldEstimateHourlyCommand.js} +15 -15
  87. package/dist/command/{BillWatchAzureEstimationCommand.js.map → FieldFieldEstimateHourlyCommand.js.map} +1 -1
  88. package/dist/command/FieldField_CreateForHourlyCommand.d.ts +5 -0
  89. package/dist/command/{BillWatchGCP_CreateForCommand.js → FieldField_CreateForHourlyCommand.js} +14 -14
  90. package/dist/command/FieldField_CreateForHourlyCommand.js.map +1 -0
  91. package/dist/command/SecretSecretCommand.d.ts +4 -0
  92. package/dist/command/SecretSecretCommand.js +21 -0
  93. package/dist/command/SecretSecretCommand.js.map +1 -0
  94. package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +5 -0
  95. package/dist/command/{BillWatchAWSEstimationCommand.js → SecretSecretEstimateHourlyCommand.js} +15 -15
  96. package/dist/command/SecretSecretEstimateHourlyCommand.js.map +1 -0
  97. package/dist/command/{BillWatchAzureEstimationCommand.d.ts → SecretSecretEstimateReadCommand.d.ts} +1 -1
  98. package/dist/command/{FieldFieldEstimationCommand.js → SecretSecretEstimateReadCommand.js} +17 -17
  99. package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
  100. package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +5 -0
  101. package/dist/command/{BillWatchAzure_CreateForCommand.js → SecretSecret_CreateForHourlyCommand.js} +14 -14
  102. package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +1 -0
  103. package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
  104. package/dist/command/{FieldField_CreateForCommand.js → SecretSecret_CreateForReadCommand.js} +16 -16
  105. package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
  106. package/dist/command/cli.js +2 -0
  107. package/dist/command/cli.js.map +1 -1
  108. package/dist/estimator/BaseEstimator.d.ts +15 -0
  109. package/dist/estimator/BaseEstimator.js +58 -0
  110. package/dist/estimator/BaseEstimator.js.map +1 -0
  111. package/dist/estimator/BillWatchAWSHourlyEstimator.d.ts +3 -0
  112. package/dist/estimator/BillWatchAWSHourlyEstimator.js +8 -0
  113. package/dist/estimator/BillWatchAWSHourlyEstimator.js.map +1 -0
  114. package/dist/estimator/BillWatchAzureHourlyEstimator.d.ts +3 -0
  115. package/dist/estimator/BillWatchAzureHourlyEstimator.js +8 -0
  116. package/dist/estimator/BillWatchAzureHourlyEstimator.js.map +1 -0
  117. package/dist/estimator/BillWatchBaseHourlyEstimator.d.ts +14 -0
  118. package/dist/estimator/BillWatchBaseHourlyEstimator.js +26 -0
  119. package/dist/estimator/BillWatchBaseHourlyEstimator.js.map +1 -0
  120. package/dist/estimator/BillWatchGCPHourlyEstimator.d.ts +3 -0
  121. package/dist/estimator/BillWatchGCPHourlyEstimator.js +8 -0
  122. package/dist/estimator/BillWatchGCPHourlyEstimator.js.map +1 -0
  123. package/dist/estimator/FieldBaseHourlyEstimator.d.ts +9 -0
  124. package/dist/estimator/FieldBaseHourlyEstimator.js +22 -0
  125. package/dist/estimator/FieldBaseHourlyEstimator.js.map +1 -0
  126. package/dist/estimator/FieldCategoryHourlyEstimator.d.ts +8 -0
  127. package/dist/estimator/FieldCategoryHourlyEstimator.js +12 -0
  128. package/dist/estimator/FieldCategoryHourlyEstimator.js.map +1 -0
  129. package/dist/estimator/FieldFieldHourlyEstimator.d.ts +8 -0
  130. package/dist/estimator/FieldFieldHourlyEstimator.js +12 -0
  131. package/dist/estimator/FieldFieldHourlyEstimator.js.map +1 -0
  132. package/dist/estimator/SecretSecretHourlyEstimator.d.ts +14 -0
  133. package/dist/estimator/SecretSecretHourlyEstimator.js +25 -0
  134. package/dist/estimator/SecretSecretHourlyEstimator.js.map +1 -0
  135. package/dist/estimator/SecretSecretReadEstimator.d.ts +14 -0
  136. package/dist/estimator/SecretSecretReadEstimator.js +25 -0
  137. package/dist/estimator/SecretSecretReadEstimator.js.map +1 -0
  138. package/dist/index.d.ts +16 -15
  139. package/dist/index.js +16 -15
  140. package/dist/index.js.map +1 -1
  141. package/dist/type/Estimation.d.ts +10 -3
  142. package/dist/type/EstimationOption.d.ts +10 -0
  143. package/dist/type/{EstimationRow.js → EstimationOption.js} +2 -1
  144. package/dist/type/EstimationOption.js.map +1 -0
  145. package/dist/type/Period.d.ts +20 -2
  146. package/dist/type/Period.js +61 -0
  147. package/dist/type/Period.js.map +1 -1
  148. package/dist/type/Usage.d.ts +24 -0
  149. package/dist/type/Usage.js +30 -0
  150. package/dist/type/Usage.js.map +1 -0
  151. package/package.json +2 -2
  152. package/src/NamirasoftCostServer.ts +4 -1
  153. package/src/NamirasoftCostServerBillWatchAWS.ts +6 -6
  154. package/src/NamirasoftCostServerBillWatchAzure.ts +6 -6
  155. package/src/NamirasoftCostServerBillWatchGCP.ts +6 -6
  156. package/src/NamirasoftCostServerFieldCategory.ts +6 -6
  157. package/src/NamirasoftCostServerFieldField.ts +6 -6
  158. package/src/NamirasoftCostServerSecretSecret.ts +61 -0
  159. package/src/bonus/BaseBonus.ts +14 -0
  160. package/src/bonus/DeactiveBonus.ts +15 -0
  161. package/src/bonus/FreeCountBonus.ts +15 -0
  162. package/src/bonus/FreeTotalValueBonus.ts +29 -0
  163. package/src/bonus/LowAmountBonus.ts +15 -0
  164. package/src/bonus/LowSecondsBonus.ts +15 -0
  165. package/src/bonus/LowTotalCountBonus.ts +15 -0
  166. package/src/bonus/LowTotalValueBonus.ts +15 -0
  167. package/src/bonus/TrialBonus.ts +19 -0
  168. package/src/command/BillWatchAWSCommand.ts +4 -4
  169. package/src/command/{FieldCategoryEstimationCommand.ts → BillWatchAWSEstimateHourlyCommand.ts} +12 -12
  170. package/src/command/{BillWatchAzure_CreateForCommand.ts → BillWatchAWS_CreateForHourlyCommand.ts} +11 -11
  171. package/src/command/BillWatchAzureCommand.ts +4 -4
  172. package/src/command/BillWatchAzureEstimateHourlyCommand.ts +83 -0
  173. package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +101 -0
  174. package/src/command/BillWatchGCPCommand.ts +4 -4
  175. package/src/command/{BillWatchGCPEstimationCommand.ts → BillWatchGCPEstimateHourlyCommand.ts} +12 -12
  176. package/src/command/{FieldCategory_CreateForCommand.ts → BillWatchGCP_CreateForHourlyCommand.ts} +11 -11
  177. package/src/command/FieldCategoryCommand.ts +4 -4
  178. package/src/command/FieldCategoryEstimateHourlyCommand.ts +83 -0
  179. package/src/command/FieldCategory_CreateForHourlyCommand.ts +101 -0
  180. package/src/command/FieldFieldCommand.ts +4 -4
  181. package/src/command/{BillWatchAzureEstimationCommand.ts → FieldFieldEstimateHourlyCommand.ts} +12 -12
  182. package/src/command/{BillWatchGCP_CreateForCommand.ts → FieldField_CreateForHourlyCommand.ts} +11 -11
  183. package/src/command/SecretSecretCommand.ts +38 -0
  184. package/src/command/{BillWatchAWSEstimationCommand.ts → SecretSecretEstimateHourlyCommand.ts} +12 -12
  185. package/src/command/{FieldFieldEstimationCommand.ts → SecretSecretEstimateReadCommand.ts} +14 -14
  186. package/src/command/{BillWatchAWS_CreateForCommand.ts → SecretSecret_CreateForHourlyCommand.ts} +11 -11
  187. package/src/command/{FieldField_CreateForCommand.ts → SecretSecret_CreateForReadCommand.ts} +13 -13
  188. package/src/command/cli.ts +2 -0
  189. package/src/estimator/BaseEstimator.ts +63 -0
  190. package/src/estimator/BillWatchAWSHourlyEstimator.ts +5 -0
  191. package/src/estimator/BillWatchAzureHourlyEstimator.ts +5 -0
  192. package/src/estimator/BillWatchBaseHourlyEstimator.ts +26 -0
  193. package/src/estimator/BillWatchGCPHourlyEstimator.ts +5 -0
  194. package/src/estimator/FieldBaseHourlyEstimator.ts +21 -0
  195. package/src/estimator/FieldCategoryHourlyEstimator.ts +10 -0
  196. package/src/estimator/FieldFieldHourlyEstimator.ts +10 -0
  197. package/src/estimator/SecretSecretHourlyEstimator.ts +25 -0
  198. package/src/estimator/SecretSecretReadEstimator.ts +26 -0
  199. package/src/index.ts +17 -16
  200. package/src/type/Estimation.ts +10 -3
  201. package/src/type/EstimationOption.ts +12 -0
  202. package/src/type/Period.ts +72 -3
  203. package/src/type/Usage.ts +25 -0
  204. package/dist/TimeUtil.d.ts +0 -7
  205. package/dist/TimeUtil.js +0 -66
  206. package/dist/TimeUtil.js.map +0 -1
  207. package/dist/command/BillWatchAWSEstimationCommand.js.map +0 -1
  208. package/dist/command/BillWatchAWS_CreateForCommand.js.map +0 -1
  209. package/dist/command/BillWatchAzure_CreateForCommand.js.map +0 -1
  210. package/dist/command/BillWatchGCPEstimationCommand.d.ts +0 -5
  211. package/dist/command/BillWatchGCPEstimationCommand.js.map +0 -1
  212. package/dist/command/BillWatchGCP_CreateForCommand.d.ts +0 -5
  213. package/dist/command/BillWatchGCP_CreateForCommand.js.map +0 -1
  214. package/dist/command/FieldCategoryEstimationCommand.d.ts +0 -5
  215. package/dist/command/FieldCategoryEstimationCommand.js.map +0 -1
  216. package/dist/command/FieldCategory_CreateForCommand.d.ts +0 -5
  217. package/dist/command/FieldCategory_CreateForCommand.js.map +0 -1
  218. package/dist/command/FieldFieldEstimationCommand.d.ts +0 -5
  219. package/dist/command/FieldFieldEstimationCommand.js.map +0 -1
  220. package/dist/command/FieldField_CreateForCommand.d.ts +0 -5
  221. package/dist/command/FieldField_CreateForCommand.js.map +0 -1
  222. package/dist/enum/TrialUnit.d.ts +0 -5
  223. package/dist/enum/TrialUnit.js +0 -10
  224. package/dist/enum/TrialUnit.js.map +0 -1
  225. package/dist/type/EstimationRow.d.ts +0 -9
  226. package/dist/type/EstimationRow.js.map +0 -1
  227. package/dist/type/Trial.d.ts +0 -5
  228. package/dist/type/Trial.js +0 -3
  229. package/dist/type/Trial.js.map +0 -1
  230. package/dist/type/TrialDuration.d.ts +0 -5
  231. package/dist/type/TrialDuration.js +0 -3
  232. package/dist/type/TrialDuration.js.map +0 -1
  233. package/src/TimeUtil.ts +0 -67
  234. package/src/enum/TrialUnit.ts +0 -6
  235. package/src/type/EstimationRow.ts +0 -10
  236. package/src/type/Trial.ts +0 -7
  237. package/src/type/TrialDuration.ts +0 -7
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BillWatchGCP_CreateForCommand = void 0;
12
+ exports.FieldField_CreateForHourlyCommand = void 0;
13
13
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
14
  const namirasoft_core_1 = require("namirasoft-core");
15
15
  const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
16
  const namirasoft_account_1 = require("namirasoft-account");
17
- class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
17
+ class FieldField_CreateForHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
@@ -25,6 +25,14 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
25
25
  args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
28
36
  {
29
37
  name: "row_number",
30
38
  short: "",
@@ -41,14 +49,6 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
41
49
  args: ["active"],
42
50
  defaults: [""]
43
51
  },
44
- {
45
- name: "period",
46
- short: "",
47
- description: "Provides the value of 'period' in body",
48
- optional: false,
49
- args: ["period"],
50
- defaults: [""]
51
- },
52
52
  {
53
53
  name: "workspace_id",
54
54
  short: "",
@@ -77,11 +77,11 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
77
77
  manager.setValue(token, false);
78
78
  let url = this.app.storage.getItem("ns-cost-server-url");
79
79
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
80
- let ans = yield server.bill_watch_gcp._CreateFor(this.arg_values[0], {
80
+ let ans = yield server.field_field._CreateForHourly(this.arg_values[0], {
81
81
  first_entity_created_at: this.option_values.first_entity_created_at,
82
+ period: this.option_values.period,
82
83
  row_number: this.option_values.row_number,
83
84
  active: this.option_values.active,
84
- period: this.option_values.period,
85
85
  workspace_id: this.option_values.workspace_id,
86
86
  resource_id: this.option_values.resource_id
87
87
  });
@@ -89,6 +89,6 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
89
89
  });
90
90
  }
91
91
  }
92
- exports.BillWatchGCP_CreateForCommand = BillWatchGCP_CreateForCommand;
92
+ exports.FieldField_CreateForHourlyCommand = FieldField_CreateForHourlyCommand;
93
93
  ;
94
- //# sourceMappingURL=BillWatchGCP_CreateForCommand.js.map
94
+ //# sourceMappingURL=FieldField_CreateForHourlyCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldField_CreateForHourlyCommand.js","sourceRoot":"","sources":["../../src/command/FieldField_CreateForHourlyCommand.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,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAA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C,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACpE,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA3ED,8EA2EC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class SecretSecretCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecretSecretCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const SecretSecretEstimateHourlyCommand_1 = require("./SecretSecretEstimateHourlyCommand");
6
+ const SecretSecretEstimateReadCommand_1 = require("./SecretSecretEstimateReadCommand");
7
+ const SecretSecret_CreateForHourlyCommand_1 = require("./SecretSecret_CreateForHourlyCommand");
8
+ const SecretSecret_CreateForReadCommand_1 = require("./SecretSecret_CreateForReadCommand");
9
+ class SecretSecretCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
10
+ constructor(argv) {
11
+ super(argv, {
12
+ "estimatehourly": SecretSecretEstimateHourlyCommand_1.SecretSecretEstimateHourlyCommand,
13
+ "_createforhourly": SecretSecret_CreateForHourlyCommand_1.SecretSecret_CreateForHourlyCommand,
14
+ "estimateread": SecretSecretEstimateReadCommand_1.SecretSecretEstimateReadCommand,
15
+ "_createforread": SecretSecret_CreateForReadCommand_1.SecretSecret_CreateForReadCommand,
16
+ });
17
+ }
18
+ }
19
+ exports.SecretSecretCommand = SecretSecretCommand;
20
+ ;
21
+ //# sourceMappingURL=SecretSecretCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecretCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2FAAwF;AACxF,uFAAoF;AACpF,+FAA4F;AAC5F,2FAAwF;AAExF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,qEAAiC;YACnD,kBAAkB,EAAE,yEAAmC;YACvD,cAAc,EAAE,iEAA+B;YAC/C,gBAAgB,EAAE,qEAAiC;SACtD,CAAC,CAAC;IACP,CAAC;CACJ;AAXD,kDAWC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class SecretSecretEstimateHourlyCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BillWatchAWSEstimationCommand = void 0;
12
+ exports.SecretSecretEstimateHourlyCommand = void 0;
13
13
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
14
  const namirasoft_core_1 = require("namirasoft-core");
15
15
  const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
16
  const namirasoft_account_1 = require("namirasoft-account");
17
- class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
17
+ class SecretSecretEstimateHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, [], [
20
20
  {
@@ -25,6 +25,14 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
25
25
  args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
28
36
  {
29
37
  name: "row_number",
30
38
  short: "",
@@ -40,14 +48,6 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
40
48
  optional: false,
41
49
  args: ["active"],
42
50
  defaults: [""]
43
- },
44
- {
45
- name: "period",
46
- short: "",
47
- description: "Provides the value of 'period' in body",
48
- optional: false,
49
- args: ["period"],
50
- defaults: [""]
51
51
  }
52
52
  ]);
53
53
  }
@@ -61,16 +61,16 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
61
61
  manager.setValue(token, false);
62
62
  let url = this.app.storage.getItem("ns-cost-server-url");
63
63
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
64
- let ans = yield server.bill_watch_aws.Estimation({
64
+ let ans = yield server.secret_secret.EstimateHourly({
65
65
  first_entity_created_at: this.option_values.first_entity_created_at,
66
+ period: this.option_values.period,
66
67
  row_number: this.option_values.row_number,
67
- active: this.option_values.active,
68
- period: this.option_values.period
68
+ active: this.option_values.active
69
69
  });
70
70
  this.app.logger.success(JSON.stringify(ans));
71
71
  });
72
72
  }
73
73
  }
74
- exports.BillWatchAWSEstimationCommand = BillWatchAWSEstimationCommand;
74
+ exports.SecretSecretEstimateHourlyCommand = SecretSecretEstimateHourlyCommand;
75
75
  ;
76
- //# sourceMappingURL=BillWatchAWSEstimationCommand.js.map
76
+ //# sourceMappingURL=SecretSecretEstimateHourlyCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecretEstimateHourlyCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretEstimateHourlyCommand.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,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,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,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;SACA,CAAC,CAAC;IACX,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,yGAAyG,CAAC,CAAC;YAC/H,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC;gBAChD,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;aACpC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,8EAyDC;AAAA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { BaseFinalCommand } from "namirasoft-node-cli";
2
- export declare class BillWatchAzureEstimationCommand extends BaseFinalCommand {
2
+ export declare class SecretSecretEstimateReadCommand extends BaseFinalCommand {
3
3
  constructor(argv: string[]);
4
4
  exec(): Promise<void>;
5
5
  }
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FieldFieldEstimationCommand = void 0;
12
+ exports.SecretSecretEstimateReadCommand = void 0;
13
13
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
14
  const namirasoft_core_1 = require("namirasoft-core");
15
15
  const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
16
  const namirasoft_account_1 = require("namirasoft-account");
17
- class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
17
+ class SecretSecretEstimateReadCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, [], [
20
20
  {
@@ -26,27 +26,27 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
26
26
  defaults: [""]
27
27
  },
28
28
  {
29
- name: "row_number",
29
+ name: "period",
30
30
  short: "",
31
- description: "Provides the value of 'row_number' in body",
31
+ description: "Provides the value of 'period' in body",
32
32
  optional: false,
33
- args: ["row_number"],
33
+ args: ["period"],
34
34
  defaults: [""]
35
35
  },
36
36
  {
37
- name: "active",
37
+ name: "total",
38
38
  short: "",
39
- description: "Provides the value of 'active' in body",
39
+ description: "Provides the value of 'total' in body",
40
40
  optional: false,
41
- args: ["active"],
41
+ args: ["total"],
42
42
  defaults: [""]
43
43
  },
44
44
  {
45
- name: "period",
45
+ name: "count",
46
46
  short: "",
47
- description: "Provides the value of 'period' in body",
47
+ description: "Provides the value of 'count' in body",
48
48
  optional: false,
49
- args: ["period"],
49
+ args: ["count"],
50
50
  defaults: [""]
51
51
  }
52
52
  ]);
@@ -61,16 +61,16 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
61
61
  manager.setValue(token, false);
62
62
  let url = this.app.storage.getItem("ns-cost-server-url");
63
63
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
64
- let ans = yield server.field_field.Estimation({
64
+ let ans = yield server.secret_secret.EstimateRead({
65
65
  first_entity_created_at: this.option_values.first_entity_created_at,
66
- row_number: this.option_values.row_number,
67
- active: this.option_values.active,
68
- period: this.option_values.period
66
+ period: this.option_values.period,
67
+ total: this.option_values.total,
68
+ count: this.option_values.count
69
69
  });
70
70
  this.app.logger.success(JSON.stringify(ans));
71
71
  });
72
72
  }
73
73
  }
74
- exports.FieldFieldEstimationCommand = FieldFieldEstimationCommand;
74
+ exports.SecretSecretEstimateReadCommand = SecretSecretEstimateReadCommand;
75
75
  ;
76
- //# sourceMappingURL=FieldFieldEstimationCommand.js.map
76
+ //# sourceMappingURL=SecretSecretEstimateReadCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecretEstimateReadCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretEstimateReadCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,+BAAgC,SAAQ,sCAAgB;IAEjE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCA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CAAC,KAAK;aAClC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,0EAyDC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class SecretSecret_CreateForHourlyCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BillWatchAzure_CreateForCommand = void 0;
12
+ exports.SecretSecret_CreateForHourlyCommand = void 0;
13
13
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
14
  const namirasoft_core_1 = require("namirasoft-core");
15
15
  const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
16
  const namirasoft_account_1 = require("namirasoft-account");
17
- class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
17
+ class SecretSecret_CreateForHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
@@ -25,6 +25,14 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
25
25
  args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
28
36
  {
29
37
  name: "row_number",
30
38
  short: "",
@@ -41,14 +49,6 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
41
49
  args: ["active"],
42
50
  defaults: [""]
43
51
  },
44
- {
45
- name: "period",
46
- short: "",
47
- description: "Provides the value of 'period' in body",
48
- optional: false,
49
- args: ["period"],
50
- defaults: [""]
51
- },
52
52
  {
53
53
  name: "workspace_id",
54
54
  short: "",
@@ -77,11 +77,11 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
77
77
  manager.setValue(token, false);
78
78
  let url = this.app.storage.getItem("ns-cost-server-url");
79
79
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
80
- let ans = yield server.bill_watch_azure._CreateFor(this.arg_values[0], {
80
+ let ans = yield server.secret_secret._CreateForHourly(this.arg_values[0], {
81
81
  first_entity_created_at: this.option_values.first_entity_created_at,
82
+ period: this.option_values.period,
82
83
  row_number: this.option_values.row_number,
83
84
  active: this.option_values.active,
84
- period: this.option_values.period,
85
85
  workspace_id: this.option_values.workspace_id,
86
86
  resource_id: this.option_values.resource_id
87
87
  });
@@ -89,6 +89,6 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
89
89
  });
90
90
  }
91
91
  }
92
- exports.BillWatchAzure_CreateForCommand = BillWatchAzure_CreateForCommand;
92
+ exports.SecretSecret_CreateForHourlyCommand = SecretSecret_CreateForHourlyCommand;
93
93
  ;
94
- //# sourceMappingURL=BillWatchAzure_CreateForCommand.js.map
94
+ //# sourceMappingURL=SecretSecret_CreateForHourlyCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecret_CreateForHourlyCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForHourlyCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,mCAAoC,SAAQ,sCAAgB;IAErE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,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K,CAAC,yGAAyG,CAAC,CAAC;YAC/H,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACtE,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA3ED,kFA2EC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class SecretSecret_CreateForReadCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FieldField_CreateForCommand = void 0;
12
+ exports.SecretSecret_CreateForReadCommand = void 0;
13
13
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
14
  const namirasoft_core_1 = require("namirasoft-core");
15
15
  const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
16
  const namirasoft_account_1 = require("namirasoft-account");
17
- class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
17
+ class SecretSecret_CreateForReadCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
@@ -26,27 +26,27 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
26
26
  defaults: [""]
27
27
  },
28
28
  {
29
- name: "row_number",
29
+ name: "period",
30
30
  short: "",
31
- description: "Provides the value of 'row_number' in body",
31
+ description: "Provides the value of 'period' in body",
32
32
  optional: false,
33
- args: ["row_number"],
33
+ args: ["period"],
34
34
  defaults: [""]
35
35
  },
36
36
  {
37
- name: "active",
37
+ name: "total",
38
38
  short: "",
39
- description: "Provides the value of 'active' in body",
39
+ description: "Provides the value of 'total' in body",
40
40
  optional: false,
41
- args: ["active"],
41
+ args: ["total"],
42
42
  defaults: [""]
43
43
  },
44
44
  {
45
- name: "period",
45
+ name: "count",
46
46
  short: "",
47
- description: "Provides the value of 'period' in body",
47
+ description: "Provides the value of 'count' in body",
48
48
  optional: false,
49
- args: ["period"],
49
+ args: ["count"],
50
50
  defaults: [""]
51
51
  },
52
52
  {
@@ -77,11 +77,11 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
77
77
  manager.setValue(token, false);
78
78
  let url = this.app.storage.getItem("ns-cost-server-url");
79
79
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
80
- let ans = yield server.field_field._CreateFor(this.arg_values[0], {
80
+ let ans = yield server.secret_secret._CreateForRead(this.arg_values[0], {
81
81
  first_entity_created_at: this.option_values.first_entity_created_at,
82
- row_number: this.option_values.row_number,
83
- active: this.option_values.active,
84
82
  period: this.option_values.period,
83
+ total: this.option_values.total,
84
+ count: this.option_values.count,
85
85
  workspace_id: this.option_values.workspace_id,
86
86
  resource_id: this.option_values.resource_id
87
87
  });
@@ -89,6 +89,6 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
89
89
  });
90
90
  }
91
91
  }
92
- exports.FieldField_CreateForCommand = FieldField_CreateForCommand;
92
+ exports.SecretSecret_CreateForReadCommand = SecretSecret_CreateForReadCommand;
93
93
  ;
94
- //# sourceMappingURL=FieldField_CreateForCommand.js.map
94
+ //# sourceMappingURL=SecretSecret_CreateForReadCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecretSecret_CreateForReadCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForReadCommand.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,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,C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CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACpE,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA3ED,8EA2EC;AAAA,CAAC"}
@@ -12,6 +12,7 @@ const FieldCategoryCommand_1 = require("./FieldCategoryCommand");
12
12
  const FieldFieldCommand_1 = require("./FieldFieldCommand");
13
13
  const HealthzCommand_1 = require("./HealthzCommand");
14
14
  const MetricsCommand_1 = require("./MetricsCommand");
15
+ const SecretSecretCommand_1 = require("./SecretSecretCommand");
15
16
  const ValueCommand_1 = require("./ValueCommand");
16
17
  let app = new namirasoft_node_cli_1.Application("ns-cost", new namirasoft_node_cli_1.BaseStorage(), {
17
18
  "healthz": HealthzCommand_1.HealthzCommand,
@@ -22,6 +23,7 @@ let app = new namirasoft_node_cli_1.Application("ns-cost", new namirasoft_node_c
22
23
  "billwatchgcp": BillWatchGCPCommand_1.BillWatchGCPCommand,
23
24
  "fieldcategory": FieldCategoryCommand_1.FieldCategoryCommand,
24
25
  "fieldfield": FieldFieldCommand_1.FieldFieldCommand,
26
+ "secretsecret": SecretSecretCommand_1.SecretSecretCommand,
25
27
  "cost": CostCommand_1.CostCommand,
26
28
  "account": namirasoft_account_1.AccountCommand,
27
29
  "config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-cost-server-url"])
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,+DAA4D;AAC5D,mEAAgE;AAChE,+DAA4D;AAC5D,6DAAoD;AACpD,+CAA4C;AAC5C,iEAA8D;AAC9D,2DAAwD;AACxD,qDAAkD;AAClD,qDAAkD;AAClD,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,SAAS,EAAE,IAAI,iCAAW,EAAE,EAClD;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,cAAc,EAAE,yCAAmB;IACnC,gBAAgB,EAAE,6CAAqB;IACvC,cAAc,EAAE,yCAAmB;IACnC,eAAe,EAAE,2CAAoB;IACrC,YAAY,EAAE,qCAAiB;IAC/B,MAAM,EAAE,yBAAW;IACnB,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,CAAC;CAChF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,+DAA4D;AAC5D,mEAAgE;AAChE,+DAA4D;AAC5D,6DAAoD;AACpD,+CAA4C;AAC5C,iEAA8D;AAC9D,2DAAwD;AACxD,qDAAkD;AAClD,qDAAkD;AAClD,+DAA4D;AAC5D,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,SAAS,EAAE,IAAI,iCAAW,EAAE,EAClD;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,cAAc,EAAE,yCAAmB;IACnC,gBAAgB,EAAE,6CAAqB;IACvC,cAAc,EAAE,yCAAmB;IACnC,eAAe,EAAE,2CAAoB;IACrC,YAAY,EAAE,qCAAiB;IAC/B,cAAc,EAAE,yCAAmB;IACnC,MAAM,EAAE,yBAAW;IACnB,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,CAAC;CAChF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { EstimationOption } from "../type/EstimationOption";
2
+ import { BaseBonus } from "../bonus/BaseBonus";
3
+ import { Estimation } from "../type/Estimation";
4
+ export declare abstract class BaseEstimator {
5
+ estimate(option: EstimationOption, calculate_bonus?: boolean): Promise<Estimation[]>;
6
+ abstract getFee(): {
7
+ active: number;
8
+ deactive: number;
9
+ };
10
+ abstract getUsage(): {
11
+ name: string;
12
+ unit: string;
13
+ };
14
+ abstract getBonues(): BaseBonus[];
15
+ }
@@ -0,0 +1,58 @@
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.BaseEstimator = void 0;
13
+ const Period_1 = require("../type/Period");
14
+ class BaseEstimator {
15
+ estimate(option_1) {
16
+ return __awaiter(this, arguments, void 0, function* (option, calculate_bonus = true) {
17
+ let seconds = Period_1.PeriodUtil.toSeconds(option.period);
18
+ let percent = seconds / 3600;
19
+ let fee_object = this.getFee();
20
+ let fee = option.active ? fee_object.active : fee_object.deactive;
21
+ let amount = percent * fee * option.value;
22
+ let currency = "USD";
23
+ let estimation = {
24
+ option,
25
+ seconds,
26
+ usage: Object.assign({ value: option.value }, this.getUsage()),
27
+ fee,
28
+ amount,
29
+ currency,
30
+ free: undefined
31
+ };
32
+ let ans = [];
33
+ if (calculate_bonus) {
34
+ let bonuses = this.getBonues();
35
+ for (let bonus of bonuses) {
36
+ let res = yield bonus.isFree(option, estimation);
37
+ if (res.free) {
38
+ if (res.split) {
39
+ let estimation_free = yield this.estimate(res.split.free, false);
40
+ estimation_free.forEach(e => { e.free = bonus; });
41
+ ans.push(...estimation_free);
42
+ for (let estimation_paid of res.split.paids)
43
+ ans.push(...yield this.estimate(estimation_paid, false));
44
+ }
45
+ else {
46
+ estimation.free = bonus;
47
+ ans.push(estimation);
48
+ }
49
+ break;
50
+ }
51
+ }
52
+ }
53
+ return ans;
54
+ });
55
+ }
56
+ }
57
+ exports.BaseEstimator = BaseEstimator;
58
+ //# sourceMappingURL=BaseEstimator.js.map
@@ -0,0 +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,C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K;gCACvC,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;wBACjE,CAAC;6BAED,CAAC;4BACG,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;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,3 @@
1
+ import { BillWatchBaseHourlyEstimator } from "./BillWatchBaseHourlyEstimator";
2
+ export declare class BillWatchAWSHourlyEstimator extends BillWatchBaseHourlyEstimator {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillWatchAWSHourlyEstimator = void 0;
4
+ const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
5
+ class BillWatchAWSHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
6
+ }
7
+ exports.BillWatchAWSHourlyEstimator = BillWatchAWSHourlyEstimator;
8
+ //# sourceMappingURL=BillWatchAWSHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWSHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAWSHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,2BAA4B,SAAQ,2DAA4B;CAE5E;AAFD,kEAEC"}
@@ -0,0 +1,3 @@
1
+ import { BillWatchBaseHourlyEstimator } from "./BillWatchBaseHourlyEstimator";
2
+ export declare class BillWatchAzureHourlyEstimator extends BillWatchBaseHourlyEstimator {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillWatchAzureHourlyEstimator = void 0;
4
+ const BillWatchBaseHourlyEstimator_1 = require("./BillWatchBaseHourlyEstimator");
5
+ class BillWatchAzureHourlyEstimator extends BillWatchBaseHourlyEstimator_1.BillWatchBaseHourlyEstimator {
6
+ }
7
+ exports.BillWatchAzureHourlyEstimator = BillWatchAzureHourlyEstimator;
8
+ //# sourceMappingURL=BillWatchAzureHourlyEstimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAzureHourlyEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchAzureHourlyEstimator.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,MAAa,6BAA8B,SAAQ,2DAA4B;CAE9E;AAFD,sEAEC"}
@@ -0,0 +1,14 @@
1
+ import { BaseEstimator } from "./BaseEstimator";
2
+ import { TrialBonus } from "../bonus/TrialBonus";
3
+ export declare abstract class BillWatchBaseHourlyEstimator extends BaseEstimator {
4
+ static WATCH_PER_HOUR_ACTIVE: number;
5
+ getFee(): {
6
+ active: number;
7
+ deactive: number;
8
+ };
9
+ getUsage(): {
10
+ name: string;
11
+ unit: string;
12
+ };
13
+ getBonues(): TrialBonus[];
14
+ }