namirasoft-cost 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/NamirasoftCostServer.d.ts +13 -0
  2. package/dist/NamirasoftCostServer.js +20 -0
  3. package/dist/NamirasoftCostServer.js.map +1 -0
  4. package/dist/NamirasoftCostServerBase.d.ts +5 -0
  5. package/dist/NamirasoftCostServerBase.js +11 -0
  6. package/dist/NamirasoftCostServerBase.js.map +1 -0
  7. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +12 -0
  8. package/dist/NamirasoftCostServerBillWatchAWS.js +29 -0
  9. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -0
  10. package/dist/NamirasoftCostServerCost.d.ts +14 -0
  11. package/dist/NamirasoftCostServerCost.js +41 -0
  12. package/dist/NamirasoftCostServerCost.js.map +1 -0
  13. package/dist/NamirasoftCostServerHealthz.d.ts +6 -0
  14. package/dist/NamirasoftCostServerHealthz.js +28 -0
  15. package/dist/NamirasoftCostServerHealthz.js.map +1 -0
  16. package/dist/NamirasoftCostServerValue.d.ts +6 -0
  17. package/dist/NamirasoftCostServerValue.js +29 -0
  18. package/dist/NamirasoftCostServerValue.js.map +1 -0
  19. package/dist/command/BillWatchAWSCommand.d.ts +4 -0
  20. package/dist/command/BillWatchAWSCommand.js +15 -0
  21. package/dist/command/BillWatchAWSCommand.js.map +1 -0
  22. package/dist/command/BillWatchAWSEstimationCommand.d.ts +5 -0
  23. package/dist/command/BillWatchAWSEstimationCommand.js +67 -0
  24. package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -0
  25. package/dist/command/CostCommand.d.ts +4 -0
  26. package/dist/command/CostCommand.js +17 -0
  27. package/dist/command/CostCommand.js.map +1 -0
  28. package/dist/command/CostListCommand.d.ts +5 -0
  29. package/dist/command/CostListCommand.js +38 -0
  30. package/dist/command/CostListCommand.js.map +1 -0
  31. package/dist/command/Cost_CreateCommand.d.ts +5 -0
  32. package/dist/command/Cost_CreateCommand.js +148 -0
  33. package/dist/command/Cost_CreateCommand.js.map +1 -0
  34. package/dist/command/HealthzCommand.d.ts +4 -0
  35. package/dist/command/HealthzCommand.js +15 -0
  36. package/dist/command/HealthzCommand.js.map +1 -0
  37. package/dist/command/HealthzGetCommand.d.ts +5 -0
  38. package/dist/command/HealthzGetCommand.js +38 -0
  39. package/dist/command/HealthzGetCommand.js.map +1 -0
  40. package/dist/command/ValueCommand.d.ts +4 -0
  41. package/dist/command/ValueCommand.js +15 -0
  42. package/dist/command/ValueCommand.js.map +1 -0
  43. package/dist/command/ValueListCommand.d.ts +5 -0
  44. package/dist/command/ValueListCommand.js +38 -0
  45. package/dist/command/ValueListCommand.js.map +1 -0
  46. package/dist/command/cli.d.ts +2 -0
  47. package/dist/command/cli.js +20 -0
  48. package/dist/command/cli.js.map +1 -0
  49. package/dist/index.d.ts +22 -0
  50. package/dist/index.js +39 -0
  51. package/dist/index.js.map +1 -0
  52. package/dist/meta/CostMetaTable.d.ts +23 -0
  53. package/dist/meta/CostMetaTable.js +46 -0
  54. package/dist/meta/CostMetaTable.js.map +1 -0
  55. package/dist/meta/NamirasoftCostMetaDatabase.d.ts +13 -0
  56. package/dist/meta/NamirasoftCostMetaDatabase.js +27 -0
  57. package/dist/meta/NamirasoftCostMetaDatabase.js.map +1 -0
  58. package/dist/row/CostCreateRow.d.ts +14 -0
  59. package/dist/row/CostCreateRow.js +3 -0
  60. package/dist/row/CostCreateRow.js.map +1 -0
  61. package/dist/row/CostRow.d.ts +16 -0
  62. package/dist/row/CostRow.js +3 -0
  63. package/dist/row/CostRow.js.map +1 -0
  64. package/dist/row/EstimationRow.d.ts +5 -0
  65. package/dist/row/EstimationRow.js +3 -0
  66. package/dist/row/EstimationRow.js.map +1 -0
  67. package/dist/row/EstimationRowRow.d.ts +5 -0
  68. package/dist/row/EstimationRowRow.js +3 -0
  69. package/dist/row/EstimationRowRow.js.map +1 -0
  70. package/dist/row/PeriodRow.d.ts +4 -0
  71. package/dist/row/PeriodRow.js +3 -0
  72. package/dist/row/PeriodRow.js.map +1 -0
  73. package/logo.png +0 -0
  74. package/package.json +28 -0
  75. package/src/NamirasoftCostServer.ts +42 -0
  76. package/src/NamirasoftCostServerBase.ts +30 -0
  77. package/src/NamirasoftCostServerBillWatchAWS.ts +39 -0
  78. package/src/NamirasoftCostServerCost.ts +50 -0
  79. package/src/NamirasoftCostServerHealthz.ts +36 -0
  80. package/src/NamirasoftCostServerValue.ts +37 -0
  81. package/src/command/BillWatchAWSCommand.ts +32 -0
  82. package/src/command/BillWatchAWSEstimationCommand.ts +74 -0
  83. package/src/command/CostCommand.ts +34 -0
  84. package/src/command/CostListCommand.ts +45 -0
  85. package/src/command/Cost_CreateCommand.ts +155 -0
  86. package/src/command/HealthzCommand.ts +32 -0
  87. package/src/command/HealthzGetCommand.ts +45 -0
  88. package/src/command/ValueCommand.ts +32 -0
  89. package/src/command/ValueListCommand.ts +45 -0
  90. package/src/command/cli.ts +39 -0
  91. package/src/index.ts +42 -0
  92. package/src/meta/CostMetaTable.ts +74 -0
  93. package/src/meta/NamirasoftCostMetaDatabase.ts +51 -0
  94. package/src/row/CostCreateRow.ts +35 -0
  95. package/src/row/CostRow.ts +37 -0
  96. package/src/row/EstimationRow.ts +27 -0
  97. package/src/row/EstimationRowRow.ts +27 -0
  98. package/src/row/PeriodRow.ts +25 -0
  99. package/tsconfig.json +42 -0
@@ -0,0 +1,13 @@
1
+ import { NSABaseServer } from "namirasoft-account";
2
+ import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
3
+ import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
4
+ import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
5
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
6
+ import { TokenManager } from "namirasoft-account";
7
+ export declare class NamirasoftCostServer extends NSABaseServer {
8
+ healthz: NamirasoftCostServerHealthz;
9
+ value: NamirasoftCostServerValue;
10
+ bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
11
+ cost: NamirasoftCostServerCost;
12
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
13
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamirasoftCostServer = void 0;
4
+ const namirasoft_account_1 = require("namirasoft-account");
5
+ const NamirasoftCostServerBillWatchAWS_1 = require("./NamirasoftCostServerBillWatchAWS");
6
+ const NamirasoftCostServerCost_1 = require("./NamirasoftCostServerCost");
7
+ const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
8
+ const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
9
+ class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
10
+ constructor(base_url, manager, onError) {
11
+ super(base_url, `1.4.0`, manager, onError);
12
+ this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
13
+ this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
14
+ this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
15
+ this.cost = new NamirasoftCostServerCost_1.NamirasoftCostServerCost(this);
16
+ }
17
+ }
18
+ exports.NamirasoftCostServer = NamirasoftCostServer;
19
+ ;
20
+ //# sourceMappingURL=NamirasoftCostServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServer.js","sourceRoot":"","sources":["../src/NamirasoftCostServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,yFAAsF;AACtF,yEAAsE;AACtE,+EAA4E;AAC5E,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;IAMnD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,yDAA2B,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACJ;AAdD,oDAcC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
2
+ export declare class NamirasoftCostServerBase {
3
+ server: NamirasoftCostServer;
4
+ constructor(server: NamirasoftCostServer);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamirasoftCostServerBase = void 0;
4
+ class NamirasoftCostServerBase {
5
+ constructor(server) {
6
+ this.server = server;
7
+ }
8
+ }
9
+ exports.NamirasoftCostServerBase = NamirasoftCostServerBase;
10
+ ;
11
+ //# sourceMappingURL=NamirasoftCostServerBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerBase.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBase.ts"],"names":[],"mappings":";;;AAsBA,MAAa,wBAAwB;IAGjC,YAAY,MAA4B;QAEpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CACJ;AAPD,4DAOC;AAAA,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { EstimationRow } from "./row/EstimationRow";
2
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
4
+ import { PeriodRow } from "./row/PeriodRow";
5
+ export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
6
+ constructor(server: NamirasoftCostServer);
7
+ Estimation(body: {
8
+ first_watch_created_at: string;
9
+ period: PeriodRow;
10
+ regions: string[];
11
+ }): Promise<EstimationRow>;
12
+ }
@@ -0,0 +1,29 @@
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.NamirasoftCostServerBillWatchAWS = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
15
+ constructor(server) {
16
+ super(server);
17
+ this.Estimation = this.Estimation.bind(this);
18
+ }
19
+ Estimation(body) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ let path = `/estimation/bill-watch/watch/aws`;
22
+ let { data } = yield this.server._post(path, {}, body);
23
+ return data;
24
+ });
25
+ }
26
+ }
27
+ exports.NamirasoftCostServerBillWatchAWS = NamirasoftCostServerBillWatchAWS;
28
+ ;
29
+ //# sourceMappingURL=NamirasoftCostServerBillWatchAWS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAA8E;;YAE3F,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAgB,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { CostCreateRow } from "./row/CostCreateRow";
2
+ import { CostRow } from "./row/CostRow";
3
+ import { FilterItem } from "namirasoft-core";
4
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
5
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
6
+ import { SortItem } from "namirasoft-core";
7
+ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
8
+ constructor(server: NamirasoftCostServer);
9
+ List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
10
+ rows: CostRow[];
11
+ count: number;
12
+ }>;
13
+ _Create(body: CostCreateRow): Promise<CostRow>;
14
+ }
@@ -0,0 +1,41 @@
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.NamirasoftCostServerCost = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
15
+ const namirasoft_core_2 = require("namirasoft-core");
16
+ class NamirasoftCostServerCost extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
17
+ constructor(server) {
18
+ super(server);
19
+ this.List = this.List.bind(this);
20
+ this._Create = this._Create.bind(this);
21
+ }
22
+ List(filters, page, size, sorts) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
25
+ let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
26
+ let path = `/cost/list`;
27
+ let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
28
+ return data;
29
+ });
30
+ }
31
+ _Create(body) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ let path = `/application/cost`;
34
+ let { data } = yield this.server._post(path, {}, body);
35
+ return data;
36
+ });
37
+ }
38
+ }
39
+ exports.NamirasoftCostServerCost = NamirasoftCostServerCost;
40
+ ;
41
+ //# sourceMappingURL=NamirasoftCostServerCost.js.map
@@ -0,0 +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,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,YAAY,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC1J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,OAAO,CAAC,IAAmB;;YAE7B,IAAI,IAAI,GAAG,mBAAmB,CAAC;YAC/B,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;AAtBD,4DAsBC;AAAA,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
2
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
3
+ export declare class NamirasoftCostServerHealthz extends NamirasoftCostServerBase {
4
+ constructor(server: NamirasoftCostServer);
5
+ Get(): Promise<void>;
6
+ }
@@ -0,0 +1,28 @@
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.NamirasoftCostServerHealthz = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerHealthz extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
15
+ constructor(server) {
16
+ super(server);
17
+ this.Get = this.Get.bind(this);
18
+ }
19
+ Get() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ let path = `/healthz`;
22
+ yield this.server._get(path, {});
23
+ });
24
+ }
25
+ }
26
+ exports.NamirasoftCostServerHealthz = NamirasoftCostServerHealthz;
27
+ ;
28
+ //# sourceMappingURL=NamirasoftCostServerHealthz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerHealthz.js","sourceRoot":"","sources":["../src/NamirasoftCostServerHealthz.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,yEAAsE;AAEtE,MAAa,2BAA4B,SAAQ,mDAAwB;IAErE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IACK,GAAG;;YAEL,IAAI,IAAI,GAAG,UAAU,CAAC;YACtB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3C,CAAC;KAAA;CACJ;AAZD,kEAYC;AAAA,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
2
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
3
+ export declare class NamirasoftCostServerValue extends NamirasoftCostServerBase {
4
+ constructor(server: NamirasoftCostServer);
5
+ List(table: string, column: string, search: (string | null), field_id: (string | null), limit: (number | null)): Promise<string[]>;
6
+ }
@@ -0,0 +1,29 @@
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.NamirasoftCostServerValue = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerValue extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
15
+ constructor(server) {
16
+ super(server);
17
+ this.List = this.List.bind(this);
18
+ }
19
+ List(table, column, search, field_id, limit) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ let path = `/value/list/${table}/${column}`;
22
+ let { data } = yield this.server._get(path, { search, field_id, limit });
23
+ return data;
24
+ });
25
+ }
26
+ }
27
+ exports.NamirasoftCostServerValue = NamirasoftCostServerValue;
28
+ ;
29
+ //# sourceMappingURL=NamirasoftCostServerValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerValue.js","sourceRoot":"","sources":["../src/NamirasoftCostServerValue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,yEAAsE;AAEtE,MAAa,yBAA0B,SAAQ,mDAAwB;IAEnE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IACK,IAAI,CAAC,KAAa,EAAE,MAAc,EAAE,MAAuB,EAAE,QAAyB,EAAE,KAAsB;;YAEhH,IAAI,IAAI,GAAG,eAAe,KAAK,IAAI,MAAM,EAAE,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAW,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YACnF,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,8DAaC;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,15 @@
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 BillWatchAWSEstimationCommand_1 = require("./BillWatchAWSEstimationCommand");
6
+ class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
+ constructor(argv) {
8
+ super(argv, {
9
+ "estimation": BillWatchAWSEstimationCommand_1.BillWatchAWSEstimationCommand,
10
+ });
11
+ }
12
+ }
13
+ exports.BillWatchAWSCommand = BillWatchAWSCommand;
14
+ ;
15
+ //# sourceMappingURL=BillWatchAWSCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AARD,kDAQC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWSEstimationCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,67 @@
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.BillWatchAWSEstimationCommand = 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 BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: false,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
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
+ },
36
+ {
37
+ name: "regions",
38
+ short: "",
39
+ description: "Provides the value of 'regions' in body",
40
+ optional: false,
41
+ args: ["regions"],
42
+ defaults: [""]
43
+ }
44
+ ]);
45
+ }
46
+ exec() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ let token = this.app.storage.getNSAToken();
49
+ if (token == null)
50
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
51
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
52
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
53
+ manager.setValue(token, false);
54
+ let url = this.app.storage.getItem("ns-cost-server-url");
55
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
56
+ let ans = yield server.bill_watch_a_w_s.Estimation({
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
58
+ period: this.option_values.period,
59
+ regions: this.option_values.regions
60
+ });
61
+ this.app.logger.success(JSON.stringify(ans));
62
+ });
63
+ }
64
+ }
65
+ exports.BillWatchAWSEstimationCommand = BillWatchAWSEstimationCommand;
66
+ ;
67
+ //# sourceMappingURL=BillWatchAWSEstimationCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWSEstimationCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSEstimationCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,6BAA8B,SAAQ,sCAAgB;IAE/D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,wBAAwB,CAAC;gBAChC,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,SAAS;gBACf,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yCAAyC;gBACtD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,SAAS,CAAC;gBACjB,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,gBAAgB,CAAC,UAAU,CAAC;gBAC/C,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;aACtC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,sEAgDC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class CostCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CostCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const CostListCommand_1 = require("./CostListCommand");
6
+ const Cost_CreateCommand_1 = require("./Cost_CreateCommand");
7
+ class CostCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
8
+ constructor(argv) {
9
+ super(argv, {
10
+ "list": CostListCommand_1.CostListCommand,
11
+ "_create": Cost_CreateCommand_1.Cost_CreateCommand,
12
+ });
13
+ }
14
+ }
15
+ exports.CostCommand = CostCommand;
16
+ ;
17
+ //# sourceMappingURL=CostCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CostCommand.js","sourceRoot":"","sources":["../../src/command/CostCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uDAAoD;AACpD,6DAA0D;AAE1D,MAAa,WAAY,SAAQ,0CAAoB;IAEjD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,iCAAe;YACvB,SAAS,EAAE,uCAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kCASC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class CostListCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
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.CostListCommand = 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 CostListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["filters", "page", "size", "sorts"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-cost-server-url");
30
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.cost.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.CostListCommand = CostListCommand;
37
+ ;
38
+ //# sourceMappingURL=CostListCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CostListCommand.js","sourceRoot":"","sources":["../../src/command/CostListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,eAAgB,SAAQ,sCAAgB;IAEjD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1D,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,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACjH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,0CAmBC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class Cost_CreateCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,148 @@
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.Cost_CreateCommand = 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 Cost_CreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, [], [
20
+ {
21
+ name: "user_id",
22
+ short: "",
23
+ description: "Provides the value of 'user_id' in body",
24
+ optional: false,
25
+ args: ["user_id"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "workspace_id",
30
+ short: "",
31
+ description: "Provides the value of 'workspace_id' in body",
32
+ optional: false,
33
+ args: ["workspace_id"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "product_id",
38
+ short: "",
39
+ description: "Provides the value of 'product_id' in body",
40
+ optional: false,
41
+ args: ["product_id"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "resource_entity",
46
+ short: "",
47
+ description: "Provides the value of 'resource_entity' in body",
48
+ optional: false,
49
+ args: ["resource_entity"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "resource_id",
54
+ short: "",
55
+ description: "Provides the value of 'resource_id' in body",
56
+ optional: false,
57
+ args: ["resource_id"],
58
+ defaults: [""]
59
+ },
60
+ {
61
+ name: "usage_name",
62
+ short: "",
63
+ description: "Provides the value of 'usage_name' in body",
64
+ optional: false,
65
+ args: ["usage_name"],
66
+ defaults: [""]
67
+ },
68
+ {
69
+ name: "usage_value",
70
+ short: "",
71
+ description: "Provides the value of 'usage_value' in body",
72
+ optional: false,
73
+ args: ["usage_value"],
74
+ defaults: [""]
75
+ },
76
+ {
77
+ name: "usage_unit",
78
+ short: "",
79
+ description: "Provides the value of 'usage_unit' in body",
80
+ optional: false,
81
+ args: ["usage_unit"],
82
+ defaults: [""]
83
+ },
84
+ {
85
+ name: "period_start",
86
+ short: "",
87
+ description: "Provides the value of 'period_start' in body",
88
+ optional: false,
89
+ args: ["period_start"],
90
+ defaults: [""]
91
+ },
92
+ {
93
+ name: "period_end",
94
+ short: "",
95
+ description: "Provides the value of 'period_end' in body",
96
+ optional: false,
97
+ args: ["period_end"],
98
+ defaults: [""]
99
+ },
100
+ {
101
+ name: "amount",
102
+ short: "",
103
+ description: "Provides the value of 'amount' in body",
104
+ optional: false,
105
+ args: ["amount"],
106
+ defaults: [""]
107
+ },
108
+ {
109
+ name: "currency",
110
+ short: "",
111
+ description: "Provides the value of 'currency' in body",
112
+ optional: false,
113
+ args: ["currency"],
114
+ defaults: [""]
115
+ }
116
+ ]);
117
+ }
118
+ exec() {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ let token = this.app.storage.getNSAToken();
121
+ if (token == null)
122
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
123
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
124
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
125
+ manager.setValue(token, false);
126
+ let url = this.app.storage.getItem("ns-cost-server-url");
127
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
128
+ let ans = yield server.cost._Create({
129
+ user_id: this.option_values.user_id,
130
+ workspace_id: this.option_values.workspace_id,
131
+ product_id: this.option_values.product_id,
132
+ resource_entity: this.option_values.resource_entity,
133
+ resource_id: this.option_values.resource_id,
134
+ usage_name: this.option_values.usage_name,
135
+ usage_value: this.option_values.usage_value,
136
+ usage_unit: this.option_values.usage_unit,
137
+ period_start: this.option_values.period_start,
138
+ period_end: this.option_values.period_end,
139
+ amount: this.option_values.amount,
140
+ currency: this.option_values.currency
141
+ });
142
+ this.app.logger.success(JSON.stringify(ans));
143
+ });
144
+ }
145
+ }
146
+ exports.Cost_CreateCommand = Cost_CreateCommand;
147
+ ;
148
+ //# sourceMappingURL=Cost_CreateCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cost_CreateCommand.js","sourceRoot":"","sources":["../../src/command/Cost_CreateCommand.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class HealthzCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HealthzCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const HealthzGetCommand_1 = require("./HealthzGetCommand");
6
+ class HealthzCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
+ constructor(argv) {
8
+ super(argv, {
9
+ "get": HealthzGetCommand_1.HealthzGetCommand,
10
+ });
11
+ }
12
+ }
13
+ exports.HealthzCommand = HealthzCommand;
14
+ ;
15
+ //# sourceMappingURL=HealthzCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HealthzCommand.js","sourceRoot":"","sources":["../../src/command/HealthzCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2DAAwD;AAExD,MAAa,cAAe,SAAQ,0CAAoB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,KAAK,EAAE,qCAAiB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,wCAQC;AAAA,CAAC"}