namirasoft-cost 1.4.6 → 1.4.8

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 (84) hide show
  1. package/.ns-sdkg-dir-deep +2 -2
  2. package/.ns-sdkg-file-keep +6 -6
  3. package/dist/NamirasoftCostServer.js +1 -1
  4. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +7 -0
  5. package/dist/NamirasoftCostServerBillWatchAWS.js +9 -1
  6. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  7. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +7 -0
  8. package/dist/NamirasoftCostServerBillWatchAzure.js +9 -1
  9. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  10. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +7 -0
  11. package/dist/NamirasoftCostServerBillWatchGCP.js +9 -1
  12. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  13. package/dist/TimeUtil.d.ts +1 -1
  14. package/dist/TimeUtil.js +31 -20
  15. package/dist/TimeUtil.js.map +1 -1
  16. package/dist/command/BillWatchAWSCommand.js +2 -0
  17. package/dist/command/BillWatchAWSCommand.js.map +1 -1
  18. package/dist/command/BillWatchAWSEstimationCommand.js +9 -0
  19. package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
  20. package/dist/command/BillWatchAWS_CreateForCommand.d.ts +5 -0
  21. package/dist/command/BillWatchAWS_CreateForCommand.js +67 -0
  22. package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -0
  23. package/dist/command/BillWatchAzureCommand.js +2 -0
  24. package/dist/command/BillWatchAzureCommand.js.map +1 -1
  25. package/dist/command/BillWatchAzureEstimationCommand.js +9 -0
  26. package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
  27. package/dist/command/BillWatchAzure_CreateForCommand.d.ts +5 -0
  28. package/dist/command/BillWatchAzure_CreateForCommand.js +67 -0
  29. package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -0
  30. package/dist/command/BillWatchGCPCommand.js +2 -0
  31. package/dist/command/BillWatchGCPCommand.js.map +1 -1
  32. package/dist/command/BillWatchGCPEstimationCommand.js +9 -0
  33. package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
  34. package/dist/command/BillWatchGCP_CreateForCommand.d.ts +5 -0
  35. package/dist/command/BillWatchGCP_CreateForCommand.js +67 -0
  36. package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -0
  37. package/dist/command/Cost_CreateForCommand.js +17 -17
  38. package/dist/command/Cost_CreateForCommand.js.map +1 -1
  39. package/dist/index.d.ts +5 -2
  40. package/dist/index.js +5 -2
  41. package/dist/index.js.map +1 -1
  42. package/dist/meta/CostMetaTable.d.ts +2 -2
  43. package/dist/meta/CostMetaTable.js +2 -2
  44. package/dist/meta/CostMetaTable.js.map +1 -1
  45. package/dist/row/CostCreateRow.d.ts +2 -2
  46. package/dist/row/CostRow.d.ts +2 -2
  47. package/package.json +27 -27
  48. package/src/NamirasoftCostServer.ts +47 -47
  49. package/src/NamirasoftCostServerBase.ts +29 -29
  50. package/src/NamirasoftCostServerBillWatchAWS.ts +46 -38
  51. package/src/NamirasoftCostServerBillWatchAzure.ts +46 -38
  52. package/src/NamirasoftCostServerBillWatchGCP.ts +46 -38
  53. package/src/NamirasoftCostServerCost.ts +49 -49
  54. package/src/NamirasoftCostServerHealthz.ts +35 -35
  55. package/src/NamirasoftCostServerValue.ts +36 -36
  56. package/src/TimeUtil.ts +52 -52
  57. package/src/command/BillWatchAWSCommand.ts +33 -31
  58. package/src/command/BillWatchAWSEstimationCommand.ts +73 -64
  59. package/src/command/BillWatchAWS_CreateForCommand.ts +74 -0
  60. package/src/command/BillWatchAzureCommand.ts +33 -31
  61. package/src/command/BillWatchAzureEstimationCommand.ts +73 -64
  62. package/src/command/BillWatchAzure_CreateForCommand.ts +74 -0
  63. package/src/command/BillWatchGCPCommand.ts +33 -31
  64. package/src/command/BillWatchGCPEstimationCommand.ts +73 -64
  65. package/src/command/BillWatchGCP_CreateForCommand.ts +74 -0
  66. package/src/command/CostCommand.ts +33 -33
  67. package/src/command/CostListCommand.ts +44 -44
  68. package/src/command/Cost_CreateForCommand.ts +172 -172
  69. package/src/command/HealthzCommand.ts +31 -31
  70. package/src/command/HealthzGetCommand.ts +44 -44
  71. package/src/command/ValueCommand.ts +31 -31
  72. package/src/command/ValueListCommand.ts +44 -44
  73. package/src/command/cli.ts +42 -42
  74. package/src/enum/TrialUnit.ts +5 -5
  75. package/src/index.ts +55 -52
  76. package/src/meta/CostMetaTable.ts +79 -79
  77. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  78. package/src/row/CostCreateRow.ts +36 -36
  79. package/src/row/CostRow.ts +39 -39
  80. package/src/type/Estimation.ts +6 -6
  81. package/src/type/EstimationRow.ts +6 -6
  82. package/src/type/Period.ts +4 -4
  83. package/src/type/Trial.ts +6 -6
  84. package/src/type/TrialDuration.ts +6 -6
package/.ns-sdkg-dir-deep CHANGED
@@ -1,3 +1,3 @@
1
- /src
2
- /src/type
1
+ /src
2
+ /src/type
3
3
  /src/enum
@@ -1,7 +1,7 @@
1
- src/enum/TrialUnit.ts
2
- src/type/Estimation.ts
3
- src/type/EstimationRow.ts
4
- src/type/Period.ts
5
- src/type/Trial.ts
6
- src/type/TrialDuration.ts
1
+ src/enum/TrialUnit.ts
2
+ src/type/Estimation.ts
3
+ src/type/EstimationRow.ts
4
+ src/type/Period.ts
5
+ src/type/Trial.ts
6
+ src/type/TrialDuration.ts
7
7
  src/TimeUtil.ts
@@ -10,7 +10,7 @@ const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
10
10
  const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
11
11
  class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
12
12
  constructor(base_url, manager, onError) {
13
- super(base_url, `1.4.4`, manager, onError);
13
+ super(base_url, `1.4.8`, manager, onError);
14
14
  this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
15
15
  this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
16
16
  this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -5,7 +6,13 @@ import { Period } from "./type/Period";
5
6
  export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
6
7
  constructor(server: NamirasoftCostServer);
7
8
  Estimation(body: {
9
+ first_watch_created_at: (string | null);
8
10
  period: Period;
9
11
  active: boolean;
10
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ }): Promise<CostRow>;
11
18
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.Namira
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/aws`;
22
+ let path = `/estimation/bill-watch/aws`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/aws`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAs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,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -5,7 +6,13 @@ import { Period } from "./type/Period";
5
6
  export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
6
7
  constructor(server: NamirasoftCostServer);
7
8
  Estimation(body: {
9
+ first_watch_created_at: (string | null);
8
10
  period: Period;
9
11
  active: boolean;
10
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ }): Promise<CostRow>;
11
18
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.Nami
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/azure`;
22
+ let path = `/estimation/bill-watch/azure`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/azure`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yE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CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,gFAoBC;AAAA,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -5,7 +6,13 @@ import { Period } from "./type/Period";
5
6
  export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
6
7
  constructor(server: NamirasoftCostServer);
7
8
  Estimation(body: {
9
+ first_watch_created_at: (string | null);
8
10
  period: Period;
9
11
  active: boolean;
10
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ }): Promise<CostRow>;
11
18
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.Namira
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/gcp`;
22
+ let path = `/estimation/bill-watch/gcp`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAs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AC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -3,5 +3,5 @@ import { Period } from "./type/Period";
3
3
  export declare class TimeUtil {
4
4
  static trialEndsAt(trial: Trial): Date;
5
5
  static isTrial(trial: Trial, date: Date): boolean;
6
- static loopHourly(trial: Trial | null, period: Period, estimate_hour: (period: Period) => void): void;
6
+ static loopHourly(trial: Trial | null, period: Period, estimate_hour: (period: Period) => Promise<void>): Promise<void>;
7
7
  }
package/dist/TimeUtil.js CHANGED
@@ -1,4 +1,13 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.TimeUtil = void 0;
4
13
  const namirasoft_core_1 = require("namirasoft-core");
@@ -17,27 +26,29 @@ class TimeUtil {
17
26
  return date <= TimeUtil.trialEndsAt(trial);
18
27
  }
19
28
  static loopHourly(trial, period, estimate_hour) {
20
- if (period.end <= period.start)
21
- return;
22
- if (trial) {
23
- let ends_at = TimeUtil.trialEndsAt(trial);
24
- if (period.end <= ends_at)
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ if (period.end <= period.start)
25
31
  return;
26
- if (period.start <= ends_at)
27
- period.start = ends_at;
28
- }
29
- let start = period.start;
30
- let end = null;
31
- do {
32
- end = namirasoft_core_1.TimeOperation.hoursLater(1, start);
33
- end.setMilliseconds(0);
34
- end.setSeconds(0);
35
- end.setMinutes(0);
36
- if (period.end < end)
37
- end = period.end;
38
- estimate_hour({ start, end });
39
- start = end;
40
- } while (end < period.end);
32
+ if (trial) {
33
+ let ends_at = TimeUtil.trialEndsAt(trial);
34
+ if (period.end <= ends_at)
35
+ return;
36
+ if (period.start <= ends_at)
37
+ period.start = ends_at;
38
+ }
39
+ let start = period.start;
40
+ let end = null;
41
+ do {
42
+ end = namirasoft_core_1.TimeOperation.hoursLater(1, start);
43
+ end.setMilliseconds(0);
44
+ end.setSeconds(0);
45
+ end.setMinutes(0);
46
+ if (period.end < end)
47
+ end = period.end;
48
+ yield estimate_hour({ start, end });
49
+ start = end;
50
+ } while (end < period.end);
51
+ });
41
52
  }
42
53
  }
43
54
  exports.TimeUtil = TimeUtil;
@@ -1 +1 @@
1
- {"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAGhD,gDAA6C;AAE7C,MAAa,QAAQ;IAEjB,MAAM,CAAC,WAAW,CAAC,KAAY;QAE3B,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,qBAAS,CAAC,GAAG;YACpC,OAAO,+BAAa,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3E,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,qBAAS,CAAC,IAAI;YACrC,OAAO,+BAAa,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QAC/E,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,qBAAS,CAAC,KAAK;YACtC,OAAO,+BAAa,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,C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AC;YACzB,IAAI,GAAG,GAAG,IAAI,CAAC;YAEf,GACA,CAAC;gBACG,GAAG,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;gBACzC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBACvB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAClB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAClB,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG;oBAChB,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;gBAErB,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;gBACpC,KAAK,GAAG,GAAG,CAAC;YAChB,CAAC,QACM,GAAG,GAAG,MAAM,CAAC,GAAG,EAAC;QAC5B,CAAC;KAAA;CACJ;AA/CD,4BA+CC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchAWSCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchAWSEstimationCommand_1 = require("./BillWatchAWSEstimationCommand");
6
+ const BillWatchAWS_CreateForCommand_1 = require("./BillWatchAWS_CreateForCommand");
6
7
  class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchAWSEstimationCommand_1.BillWatchAWSEstimationCommand,
11
+ "_createfor": BillWatchAWS_CreateForCommand_1.BillWatchAWS_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +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"}
1
+ {"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAChF,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;YAC3C,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
@@ -17,6 +17,14 @@ const namirasoft_account_1 = require("namirasoft-account");
17
17
  class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
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: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
20
28
  {
21
29
  name: "period",
22
30
  short: "",
@@ -46,6 +54,7 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
46
54
  let url = this.app.storage.getItem("ns-cost-server-url");
47
55
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
48
56
  let ans = yield server.bill_watch_a_w_s.Estimation({
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
49
58
  period: this.option_values.period,
50
59
  active: this.option_values.active
51
60
  });
@@ -1 +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,sCA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AAC,MAAM;gBACjC,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;AAvCD,sEAuCC;AAAA,CAAC"}
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,IAAI;gBACd,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,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,gBAAgB,CAAC,UAAU,CAAC;gBAC/C,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,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;AAhDD,sEAgDC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWS_CreateForCommand 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.BillWatchAWS_CreateForCommand = 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 BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["user_id"], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: true,
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: "active",
38
+ short: "",
39
+ description: "Provides the value of 'active' in body",
40
+ optional: false,
41
+ args: ["active"],
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._CreateFor(this.arg_values[0], {
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
58
+ period: this.option_values.period,
59
+ active: this.option_values.active
60
+ });
61
+ this.app.logger.success(JSON.stringify(ans));
62
+ });
63
+ }
64
+ }
65
+ exports.BillWatchAWS_CreateForCommand = BillWatchAWS_CreateForCommand;
66
+ ;
67
+ //# sourceMappingURL=BillWatchAWS_CreateForCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWS_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWS_CreateForCommand.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,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,IAAI;gBACd,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,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,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACnE,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,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;AAhDD,sEAgDC;AAAA,CAAC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchAzureCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchAzureEstimationCommand_1 = require("./BillWatchAzureEstimationCommand");
6
+ const BillWatchAzure_CreateForCommand_1 = require("./BillWatchAzure_CreateForCommand");
6
7
  class BillWatchAzureCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchAzureEstimationCommand_1.BillWatchAzureEstimationCommand,
11
+ "_createfor": BillWatchAzure_CreateForCommand_1.BillWatchAzure_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchAzureCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzureCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uFAAoF;AAEpF,MAAa,qBAAsB,SAAQ,0CAAoB;IAE3D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,iEAA+B;SAChD,CAAC,CAAC;IACP,CAAC;CACJ;AARD,sDAQC;AAAA,CAAC"}
1
+ {"version":3,"file":"BillWatchAzureCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzureCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uFAAoF;AACpF,uFAAoF;AAEpF,MAAa,qBAAsB,SAAQ,0CAAoB;IAE3D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,iEAA+B;YAC7C,YAAY,EAAE,iEAA+B;SAChD,CAAC,CAAC;IACP,CAAC;CACJ;AATD,sDASC;AAAA,CAAC"}
@@ -17,6 +17,14 @@ const namirasoft_account_1 = require("namirasoft-account");
17
17
  class BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
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: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
20
28
  {
21
29
  name: "period",
22
30
  short: "",
@@ -46,6 +54,7 @@ class BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
46
54
  let url = this.app.storage.getItem("ns-cost-server-url");
47
55
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
48
56
  let ans = yield server.bill_watch_azure.Estimation({
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
49
58
  period: this.option_values.period,
50
59
  active: this.option_values.active
51
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchAzureEstimationCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzureEstimationCommand.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,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,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;YAC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MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,0EAgDC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAzure_CreateForCommand 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.BillWatchAzure_CreateForCommand = 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 BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["user_id"], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: true,
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: "active",
38
+ short: "",
39
+ description: "Provides the value of 'active' in body",
40
+ optional: false,
41
+ args: ["active"],
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_azure._CreateFor(this.arg_values[0], {
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
58
+ period: this.option_values.period,
59
+ active: this.option_values.active
60
+ });
61
+ this.app.logger.success(JSON.stringify(ans));
62
+ });
63
+ }
64
+ }
65
+ exports.BillWatchAzure_CreateForCommand = BillWatchAzure_CreateForCommand;
66
+ ;
67
+ //# sourceMappingURL=BillWatchAzure_CreateForCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAzure_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzure_CreateForCommand.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,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,wBAAwB,CAAC;gBAChC,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAA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AAE,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;AAhDD,0EAgDC;AAAA,CAAC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchGCPCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchGCPEstimationCommand_1 = require("./BillWatchGCPEstimationCommand");
6
+ const BillWatchGCP_CreateForCommand_1 = require("./BillWatchGCP_CreateForCommand");
6
7
  class BillWatchGCPCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchGCPEstimationCommand_1.BillWatchGCPEstimationCommand,
11
+ "_createfor": BillWatchGCP_CreateForCommand_1.BillWatchGCP_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchGCPCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCPCommand.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"}
1
+ {"version":3,"file":"BillWatchGCPCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCPCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAChF,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;YAC3C,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
@@ -17,6 +17,14 @@ const namirasoft_account_1 = require("namirasoft-account");
17
17
  class BillWatchGCPEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
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: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
20
28
  {
21
29
  name: "period",
22
30
  short: "",
@@ -46,6 +54,7 @@ class BillWatchGCPEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
46
54
  let url = this.app.storage.getItem("ns-cost-server-url");
47
55
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
48
56
  let ans = yield server.bill_watch_g_c_p.Estimation({
57
+ first_watch_created_at: this.option_values.first_watch_created_at,
49
58
  period: this.option_values.period,
50
59
  active: this.option_values.active
51
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchGCPEstimationCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCPEstimationCommand.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,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,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ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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,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;AAhDD,sEAgDC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchGCP_CreateForCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }