namirasoft-cost 1.4.20 → 1.4.21

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 (155) hide show
  1. package/.ns-sdkg-dir-deep +2 -2
  2. package/.ns-sdkg-file-keep +7 -7
  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/command/BillWatchAWSCommand.js +4 -4
  25. package/dist/command/BillWatchAWSCommand.js.map +1 -1
  26. package/dist/command/{BillWatchAWSEstimationCommand.d.ts → BillWatchAWSEstimateHourlyCommand.d.ts} +1 -1
  27. package/dist/command/{BillWatchAWSEstimationCommand.js → BillWatchAWSEstimateHourlyCommand.js} +15 -15
  28. package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +1 -0
  29. package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +5 -0
  30. package/dist/command/{FieldCategory_CreateForCommand.js → BillWatchAWS_CreateForHourlyCommand.js} +14 -14
  31. package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +1 -0
  32. package/dist/command/BillWatchAzureCommand.js +4 -4
  33. package/dist/command/BillWatchAzureCommand.js.map +1 -1
  34. package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +5 -0
  35. package/dist/command/BillWatchAzureEstimateHourlyCommand.js +76 -0
  36. package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +1 -0
  37. package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +5 -0
  38. package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +94 -0
  39. package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +1 -0
  40. package/dist/command/BillWatchGCPCommand.js +4 -4
  41. package/dist/command/BillWatchGCPCommand.js.map +1 -1
  42. package/dist/command/{BillWatchAWS_CreateForCommand.d.ts → BillWatchGCPEstimateHourlyCommand.d.ts} +1 -1
  43. package/dist/command/{BillWatchGCPEstimationCommand.js → BillWatchGCPEstimateHourlyCommand.js} +15 -15
  44. package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +1 -0
  45. package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +5 -0
  46. package/dist/command/{BillWatchAzure_CreateForCommand.js → BillWatchGCP_CreateForHourlyCommand.js} +14 -14
  47. package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +1 -0
  48. package/dist/command/FieldCategoryCommand.js +4 -4
  49. package/dist/command/FieldCategoryCommand.js.map +1 -1
  50. package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +5 -0
  51. package/dist/command/FieldCategoryEstimateHourlyCommand.js +76 -0
  52. package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +1 -0
  53. package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +5 -0
  54. package/dist/command/FieldCategory_CreateForHourlyCommand.js +94 -0
  55. package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +1 -0
  56. package/dist/command/FieldFieldCommand.js +4 -4
  57. package/dist/command/FieldFieldCommand.js.map +1 -1
  58. package/dist/command/{BillWatchAzureEstimationCommand.d.ts → FieldFieldEstimateHourlyCommand.d.ts} +1 -1
  59. package/dist/command/{BillWatchAzureEstimationCommand.js → FieldFieldEstimateHourlyCommand.js} +15 -15
  60. package/dist/command/{BillWatchAzureEstimationCommand.js.map → FieldFieldEstimateHourlyCommand.js.map} +1 -1
  61. package/dist/command/FieldField_CreateForHourlyCommand.d.ts +5 -0
  62. package/dist/command/{BillWatchAWS_CreateForCommand.js → FieldField_CreateForHourlyCommand.js} +14 -14
  63. package/dist/command/FieldField_CreateForHourlyCommand.js.map +1 -0
  64. package/dist/command/SecretSecretCommand.d.ts +4 -0
  65. package/dist/command/SecretSecretCommand.js +21 -0
  66. package/dist/command/SecretSecretCommand.js.map +1 -0
  67. package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +5 -0
  68. package/dist/command/{FieldCategoryEstimationCommand.js → SecretSecretEstimateHourlyCommand.js} +15 -15
  69. package/dist/command/SecretSecretEstimateHourlyCommand.js.map +1 -0
  70. package/dist/command/{BillWatchAzure_CreateForCommand.d.ts → SecretSecretEstimateReadCommand.d.ts} +1 -1
  71. package/dist/command/{FieldFieldEstimationCommand.js → SecretSecretEstimateReadCommand.js} +17 -17
  72. package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
  73. package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +5 -0
  74. package/dist/command/{BillWatchGCP_CreateForCommand.js → SecretSecret_CreateForHourlyCommand.js} +14 -14
  75. package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +1 -0
  76. package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
  77. package/dist/command/{FieldField_CreateForCommand.js → SecretSecret_CreateForReadCommand.js} +16 -16
  78. package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
  79. package/dist/command/cli.js +2 -0
  80. package/dist/command/cli.js.map +1 -1
  81. package/dist/index.d.ts +16 -10
  82. package/dist/index.js +16 -10
  83. package/dist/index.js.map +1 -1
  84. package/package.json +27 -27
  85. package/src/NamirasoftCostServer.ts +59 -56
  86. package/src/NamirasoftCostServerBase.ts +29 -29
  87. package/src/NamirasoftCostServerBillWatchAWS.ts +46 -46
  88. package/src/NamirasoftCostServerBillWatchAzure.ts +46 -46
  89. package/src/NamirasoftCostServerBillWatchGCP.ts +46 -46
  90. package/src/NamirasoftCostServerCost.ts +49 -49
  91. package/src/NamirasoftCostServerFieldCategory.ts +46 -46
  92. package/src/NamirasoftCostServerFieldField.ts +46 -46
  93. package/src/NamirasoftCostServerHealthz.ts +35 -35
  94. package/src/NamirasoftCostServerMetrics.ts +35 -35
  95. package/src/NamirasoftCostServerSecretSecret.ts +61 -0
  96. package/src/NamirasoftCostServerValue.ts +36 -36
  97. package/src/TimeUtil.ts +66 -66
  98. package/src/command/BillWatchAWSCommand.ts +33 -33
  99. package/src/command/{FieldFieldEstimationCommand.ts → BillWatchAWSEstimateHourlyCommand.ts} +82 -82
  100. package/src/command/{FieldField_CreateForCommand.ts → BillWatchAWS_CreateForHourlyCommand.ts} +100 -100
  101. package/src/command/BillWatchAzureCommand.ts +33 -33
  102. package/src/command/{BillWatchAWSEstimationCommand.ts → BillWatchAzureEstimateHourlyCommand.ts} +82 -82
  103. package/src/command/{BillWatchGCP_CreateForCommand.ts → BillWatchAzure_CreateForHourlyCommand.ts} +100 -100
  104. package/src/command/BillWatchGCPCommand.ts +33 -33
  105. package/src/command/{BillWatchGCPEstimationCommand.ts → BillWatchGCPEstimateHourlyCommand.ts} +82 -82
  106. package/src/command/{BillWatchAWS_CreateForCommand.ts → BillWatchGCP_CreateForHourlyCommand.ts} +100 -100
  107. package/src/command/CostCommand.ts +33 -33
  108. package/src/command/CostListCommand.ts +44 -44
  109. package/src/command/Cost_CreateForCommand.ts +181 -181
  110. package/src/command/FieldCategoryCommand.ts +33 -33
  111. package/src/command/{FieldCategoryEstimationCommand.ts → FieldCategoryEstimateHourlyCommand.ts} +82 -82
  112. package/src/command/{FieldCategory_CreateForCommand.ts → FieldCategory_CreateForHourlyCommand.ts} +100 -100
  113. package/src/command/FieldFieldCommand.ts +33 -33
  114. package/src/command/{BillWatchAzureEstimationCommand.ts → FieldFieldEstimateHourlyCommand.ts} +82 -82
  115. package/src/command/FieldField_CreateForHourlyCommand.ts +101 -0
  116. package/src/command/HealthzCommand.ts +31 -31
  117. package/src/command/HealthzGetCommand.ts +44 -44
  118. package/src/command/MetricsCommand.ts +31 -31
  119. package/src/command/MetricsGetCommand.ts +44 -44
  120. package/src/command/SecretSecretCommand.ts +38 -0
  121. package/src/command/SecretSecretEstimateHourlyCommand.ts +83 -0
  122. package/src/command/SecretSecretEstimateReadCommand.ts +83 -0
  123. package/src/command/SecretSecret_CreateForHourlyCommand.ts +101 -0
  124. package/src/command/SecretSecret_CreateForReadCommand.ts +101 -0
  125. package/src/command/ValueCommand.ts +31 -31
  126. package/src/command/ValueListCommand.ts +44 -44
  127. package/src/command/cli.ts +50 -48
  128. package/src/enum/TrialUnit.ts +5 -5
  129. package/src/index.ts +72 -66
  130. package/src/meta/CostMetaTable.ts +81 -81
  131. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  132. package/src/row/CostCreateRow.ts +37 -37
  133. package/src/row/CostRow.ts +40 -40
  134. package/src/type/Estimation.ts +6 -6
  135. package/src/type/EstimationRow.ts +9 -9
  136. package/src/type/EstimationUsage.ts +5 -5
  137. package/src/type/Period.ts +4 -4
  138. package/src/type/Trial.ts +6 -6
  139. package/src/type/TrialDuration.ts +6 -6
  140. package/dist/command/BillWatchAWSEstimationCommand.js.map +0 -1
  141. package/dist/command/BillWatchAWS_CreateForCommand.js.map +0 -1
  142. package/dist/command/BillWatchAzure_CreateForCommand.js.map +0 -1
  143. package/dist/command/BillWatchGCPEstimationCommand.d.ts +0 -5
  144. package/dist/command/BillWatchGCPEstimationCommand.js.map +0 -1
  145. package/dist/command/BillWatchGCP_CreateForCommand.d.ts +0 -5
  146. package/dist/command/BillWatchGCP_CreateForCommand.js.map +0 -1
  147. package/dist/command/FieldCategoryEstimationCommand.d.ts +0 -5
  148. package/dist/command/FieldCategoryEstimationCommand.js.map +0 -1
  149. package/dist/command/FieldCategory_CreateForCommand.d.ts +0 -5
  150. package/dist/command/FieldCategory_CreateForCommand.js.map +0 -1
  151. package/dist/command/FieldFieldEstimationCommand.d.ts +0 -5
  152. package/dist/command/FieldFieldEstimationCommand.js.map +0 -1
  153. package/dist/command/FieldField_CreateForCommand.d.ts +0 -5
  154. package/dist/command/FieldField_CreateForCommand.js.map +0 -1
  155. package/src/command/BillWatchAzure_CreateForCommand.ts +0 -101
@@ -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":";;;;;;;;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,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"}
package/dist/index.d.ts CHANGED
@@ -8,30 +8,36 @@ export * from "./NamirasoftCostServerFieldCategory";
8
8
  export * from "./NamirasoftCostServerFieldField";
9
9
  export * from "./NamirasoftCostServerHealthz";
10
10
  export * from "./NamirasoftCostServerMetrics";
11
+ export * from "./NamirasoftCostServerSecretSecret";
11
12
  export * from "./NamirasoftCostServerValue";
12
13
  export * from "./TimeUtil";
13
14
  export * from "./command/BillWatchAWSCommand";
14
- export * from "./command/BillWatchAWSEstimationCommand";
15
- export * from "./command/BillWatchAWS_CreateForCommand";
15
+ export * from "./command/BillWatchAWSEstimateHourlyCommand";
16
+ export * from "./command/BillWatchAWS_CreateForHourlyCommand";
16
17
  export * from "./command/BillWatchAzureCommand";
17
- export * from "./command/BillWatchAzureEstimationCommand";
18
- export * from "./command/BillWatchAzure_CreateForCommand";
18
+ export * from "./command/BillWatchAzureEstimateHourlyCommand";
19
+ export * from "./command/BillWatchAzure_CreateForHourlyCommand";
19
20
  export * from "./command/BillWatchGCPCommand";
20
- export * from "./command/BillWatchGCPEstimationCommand";
21
- export * from "./command/BillWatchGCP_CreateForCommand";
21
+ export * from "./command/BillWatchGCPEstimateHourlyCommand";
22
+ export * from "./command/BillWatchGCP_CreateForHourlyCommand";
22
23
  export * from "./command/CostCommand";
23
24
  export * from "./command/CostListCommand";
24
25
  export * from "./command/Cost_CreateForCommand";
25
26
  export * from "./command/FieldCategoryCommand";
26
- export * from "./command/FieldCategoryEstimationCommand";
27
- export * from "./command/FieldCategory_CreateForCommand";
27
+ export * from "./command/FieldCategoryEstimateHourlyCommand";
28
+ export * from "./command/FieldCategory_CreateForHourlyCommand";
28
29
  export * from "./command/FieldFieldCommand";
29
- export * from "./command/FieldFieldEstimationCommand";
30
- export * from "./command/FieldField_CreateForCommand";
30
+ export * from "./command/FieldFieldEstimateHourlyCommand";
31
+ export * from "./command/FieldField_CreateForHourlyCommand";
31
32
  export * from "./command/HealthzCommand";
32
33
  export * from "./command/HealthzGetCommand";
33
34
  export * from "./command/MetricsCommand";
34
35
  export * from "./command/MetricsGetCommand";
36
+ export * from "./command/SecretSecretCommand";
37
+ export * from "./command/SecretSecretEstimateHourlyCommand";
38
+ export * from "./command/SecretSecretEstimateReadCommand";
39
+ export * from "./command/SecretSecret_CreateForHourlyCommand";
40
+ export * from "./command/SecretSecret_CreateForReadCommand";
35
41
  export * from "./command/ValueCommand";
36
42
  export * from "./command/ValueListCommand";
37
43
  export * from "./enum/TrialUnit";
package/dist/index.js CHANGED
@@ -24,30 +24,36 @@ __exportStar(require("./NamirasoftCostServerFieldCategory"), exports);
24
24
  __exportStar(require("./NamirasoftCostServerFieldField"), exports);
25
25
  __exportStar(require("./NamirasoftCostServerHealthz"), exports);
26
26
  __exportStar(require("./NamirasoftCostServerMetrics"), exports);
27
+ __exportStar(require("./NamirasoftCostServerSecretSecret"), exports);
27
28
  __exportStar(require("./NamirasoftCostServerValue"), exports);
28
29
  __exportStar(require("./TimeUtil"), exports);
29
30
  __exportStar(require("./command/BillWatchAWSCommand"), exports);
30
- __exportStar(require("./command/BillWatchAWSEstimationCommand"), exports);
31
- __exportStar(require("./command/BillWatchAWS_CreateForCommand"), exports);
31
+ __exportStar(require("./command/BillWatchAWSEstimateHourlyCommand"), exports);
32
+ __exportStar(require("./command/BillWatchAWS_CreateForHourlyCommand"), exports);
32
33
  __exportStar(require("./command/BillWatchAzureCommand"), exports);
33
- __exportStar(require("./command/BillWatchAzureEstimationCommand"), exports);
34
- __exportStar(require("./command/BillWatchAzure_CreateForCommand"), exports);
34
+ __exportStar(require("./command/BillWatchAzureEstimateHourlyCommand"), exports);
35
+ __exportStar(require("./command/BillWatchAzure_CreateForHourlyCommand"), exports);
35
36
  __exportStar(require("./command/BillWatchGCPCommand"), exports);
36
- __exportStar(require("./command/BillWatchGCPEstimationCommand"), exports);
37
- __exportStar(require("./command/BillWatchGCP_CreateForCommand"), exports);
37
+ __exportStar(require("./command/BillWatchGCPEstimateHourlyCommand"), exports);
38
+ __exportStar(require("./command/BillWatchGCP_CreateForHourlyCommand"), exports);
38
39
  __exportStar(require("./command/CostCommand"), exports);
39
40
  __exportStar(require("./command/CostListCommand"), exports);
40
41
  __exportStar(require("./command/Cost_CreateForCommand"), exports);
41
42
  __exportStar(require("./command/FieldCategoryCommand"), exports);
42
- __exportStar(require("./command/FieldCategoryEstimationCommand"), exports);
43
- __exportStar(require("./command/FieldCategory_CreateForCommand"), exports);
43
+ __exportStar(require("./command/FieldCategoryEstimateHourlyCommand"), exports);
44
+ __exportStar(require("./command/FieldCategory_CreateForHourlyCommand"), exports);
44
45
  __exportStar(require("./command/FieldFieldCommand"), exports);
45
- __exportStar(require("./command/FieldFieldEstimationCommand"), exports);
46
- __exportStar(require("./command/FieldField_CreateForCommand"), exports);
46
+ __exportStar(require("./command/FieldFieldEstimateHourlyCommand"), exports);
47
+ __exportStar(require("./command/FieldField_CreateForHourlyCommand"), exports);
47
48
  __exportStar(require("./command/HealthzCommand"), exports);
48
49
  __exportStar(require("./command/HealthzGetCommand"), exports);
49
50
  __exportStar(require("./command/MetricsCommand"), exports);
50
51
  __exportStar(require("./command/MetricsGetCommand"), exports);
52
+ __exportStar(require("./command/SecretSecretCommand"), exports);
53
+ __exportStar(require("./command/SecretSecretEstimateHourlyCommand"), exports);
54
+ __exportStar(require("./command/SecretSecretEstimateReadCommand"), exports);
55
+ __exportStar(require("./command/SecretSecret_CreateForHourlyCommand"), exports);
56
+ __exportStar(require("./command/SecretSecret_CreateForReadCommand"), exports);
51
57
  __exportStar(require("./command/ValueCommand"), exports);
52
58
  __exportStar(require("./command/ValueListCommand"), exports);
53
59
  __exportStar(require("./enum/TrialUnit"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAC5C,6CAA2B;AAC3B,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A2C;AAC3C,mDAAiC;AACjC,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,uDAAqC"}
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "namirasoft-cost",
3
- "title": "Namirasoft Cost NPM Package",
4
- "description": "Namira Software Corporation Cost NPM Package",
5
- "icon": "logo.png",
6
- "logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
7
- "language": "ts",
8
- "framework": "npm",
9
- "application": "package",
10
- "private": false,
11
- "version": "1.4.20",
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.79",
21
- "namirasoft-site": "^1.4.39",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.84"
24
- },
25
- "bin": {
26
- "ns-cost": "./dist/command/cli.js"
27
- }
1
+ {
2
+ "name": "namirasoft-cost",
3
+ "title": "Namirasoft Cost NPM Package",
4
+ "description": "Namira Software Corporation Cost NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.4.21",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": ""
18
+ },
19
+ "dependencies": {
20
+ "namirasoft-core": "^1.4.80",
21
+ "namirasoft-site": "^1.4.39",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.84"
24
+ },
25
+ "bin": {
26
+ "ns-cost": "./dist/command/cli.js"
27
+ }
28
28
  }
@@ -1,57 +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 { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
31
- import { TokenManager } from "namirasoft-account";
32
-
33
- export class NamirasoftCostServer extends NSABaseServer
34
- {
35
- healthz: NamirasoftCostServerHealthz;
36
- metrics: NamirasoftCostServerMetrics;
37
- value: NamirasoftCostServerValue;
38
- bill_watch_aws: NamirasoftCostServerBillWatchAWS;
39
- bill_watch_azure: NamirasoftCostServerBillWatchAzure;
40
- bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
41
- field_category: NamirasoftCostServerFieldCategory;
42
- field_field: NamirasoftCostServerFieldField;
43
- cost: NamirasoftCostServerCost;
44
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
45
- {
46
- super(base_url, `1.4.19`, manager, onError);
47
- this.healthz = new NamirasoftCostServerHealthz(this);
48
- this.metrics = new NamirasoftCostServerMetrics(this);
49
- this.value = new NamirasoftCostServerValue(this);
50
- this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
51
- this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
52
- this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
53
- this.field_category = new NamirasoftCostServerFieldCategory(this);
54
- this.field_field = new NamirasoftCostServerFieldField(this);
55
- this.cost = new NamirasoftCostServerCost(this);
56
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NSABaseServer } from "namirasoft-account";
22
+ import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
23
+ import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
24
+ import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
25
+ import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
26
+ import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
27
+ import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
28
+ import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
29
+ import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
30
+ import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
31
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
32
+ import { TokenManager } from "namirasoft-account";
33
+
34
+ export class NamirasoftCostServer extends NSABaseServer
35
+ {
36
+ healthz: NamirasoftCostServerHealthz;
37
+ metrics: NamirasoftCostServerMetrics;
38
+ value: NamirasoftCostServerValue;
39
+ bill_watch_aws: NamirasoftCostServerBillWatchAWS;
40
+ bill_watch_azure: NamirasoftCostServerBillWatchAzure;
41
+ bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
42
+ field_category: NamirasoftCostServerFieldCategory;
43
+ field_field: NamirasoftCostServerFieldField;
44
+ secret_secret: NamirasoftCostServerSecretSecret;
45
+ cost: NamirasoftCostServerCost;
46
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
+ {
48
+ super(base_url, `1.4.21`, manager, onError);
49
+ this.healthz = new NamirasoftCostServerHealthz(this);
50
+ this.metrics = new NamirasoftCostServerMetrics(this);
51
+ this.value = new NamirasoftCostServerValue(this);
52
+ this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
53
+ this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
54
+ this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
55
+ this.field_category = new NamirasoftCostServerFieldCategory(this);
56
+ this.field_field = new NamirasoftCostServerFieldField(this);
57
+ this.secret_secret = new NamirasoftCostServerSecretSecret(this);
58
+ this.cost = new NamirasoftCostServerCost(this);
59
+ }
57
60
  };
@@ -1,30 +1,30 @@
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 { NamirasoftCostServer } from "./NamirasoftCostServer";
22
-
23
- export class NamirasoftCostServerBase
24
- {
25
- public server: NamirasoftCostServer;
26
- constructor(server: NamirasoftCostServer)
27
- {
28
- this.server = server;
29
- }
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 { NamirasoftCostServer } from "./NamirasoftCostServer";
22
+
23
+ export class NamirasoftCostServerBase
24
+ {
25
+ public server: NamirasoftCostServer;
26
+ constructor(server: NamirasoftCostServer)
27
+ {
28
+ this.server = server;
29
+ }
30
30
  };
@@ -1,47 +1,47 @@
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 { CostRow } from "./row/CostRow";
22
- import { Estimation } from "./type/Estimation";
23
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
24
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
25
- import { Period } from "./type/Period";
26
-
27
- export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
28
- {
29
- constructor(server: NamirasoftCostServer)
30
- {
31
- super(server);
32
- this.Estimation = this.Estimation.bind(this);
33
- this._CreateFor = this._CreateFor.bind(this);
34
- }
35
- async Estimation(body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): Promise<Estimation>
36
- {
37
- let path = `/estimation/bill-watch/aws`;
38
- let { data } = await this.server._post<Estimation>(path, {}, body);
39
- return data;
40
- }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
- {
43
- let path = `/application/user/${user_id}/cost/bill-watch/aws`;
44
- let { data } = await this.server._post<CostRow>(path, {}, body);
45
- return data;
46
- }
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 { CostRow } from "./row/CostRow";
22
+ import { Estimation } from "./type/Estimation";
23
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
24
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
25
+ import { Period } from "./type/Period";
26
+
27
+ export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
28
+ {
29
+ constructor(server: NamirasoftCostServer)
30
+ {
31
+ super(server);
32
+ this.EstimateHourly = this.EstimateHourly.bind(this);
33
+ this._CreateForHourly = this._CreateForHourly.bind(this);
34
+ }
35
+ async EstimateHourly(body: { first_entity_created_at: (Date | null), period: Period, row_number: number, active: boolean }): Promise<Estimation>
36
+ {
37
+ let path = `/estimation/bill-watch/aws/hourly`;
38
+ let { data } = await this.server._post<Estimation>(path, {}, body);
39
+ return data;
40
+ }
41
+ async _CreateForHourly(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, row_number: number, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
42
+ {
43
+ let path = `/application/user/${user_id}/cost/bill-watch/aws/hourly`;
44
+ let { data } = await this.server._post<CostRow>(path, {}, body);
45
+ return data;
46
+ }
47
47
  };