namirasoft-cost 1.4.5 → 1.4.7

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 (56) 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 +1 -0
  5. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  6. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +1 -0
  7. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  8. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +1 -0
  9. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  10. package/dist/TimeUtil.d.ts +1 -1
  11. package/dist/TimeUtil.js +31 -20
  12. package/dist/TimeUtil.js.map +1 -1
  13. package/dist/command/BillWatchAWSEstimationCommand.js +9 -0
  14. package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
  15. package/dist/command/BillWatchAzureEstimationCommand.js +9 -0
  16. package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
  17. package/dist/command/BillWatchGCPEstimationCommand.js +9 -0
  18. package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +2 -2
  21. package/dist/index.js.map +1 -1
  22. package/package.json +27 -27
  23. package/src/NamirasoftCostServer.ts +47 -47
  24. package/src/NamirasoftCostServerBase.ts +29 -29
  25. package/src/NamirasoftCostServerBillWatchAWS.ts +38 -38
  26. package/src/NamirasoftCostServerBillWatchAzure.ts +38 -38
  27. package/src/NamirasoftCostServerBillWatchGCP.ts +38 -38
  28. package/src/NamirasoftCostServerCost.ts +49 -49
  29. package/src/NamirasoftCostServerHealthz.ts +35 -35
  30. package/src/NamirasoftCostServerValue.ts +36 -36
  31. package/src/TimeUtil.ts +52 -52
  32. package/src/command/BillWatchAWSCommand.ts +31 -31
  33. package/src/command/BillWatchAWSEstimationCommand.ts +73 -64
  34. package/src/command/BillWatchAzureCommand.ts +31 -31
  35. package/src/command/BillWatchAzureEstimationCommand.ts +73 -64
  36. package/src/command/BillWatchGCPCommand.ts +31 -31
  37. package/src/command/BillWatchGCPEstimationCommand.ts +73 -64
  38. package/src/command/CostCommand.ts +33 -33
  39. package/src/command/CostListCommand.ts +44 -44
  40. package/src/command/Cost_CreateForCommand.ts +172 -172
  41. package/src/command/HealthzCommand.ts +31 -31
  42. package/src/command/HealthzGetCommand.ts +44 -44
  43. package/src/command/ValueCommand.ts +31 -31
  44. package/src/command/ValueListCommand.ts +44 -44
  45. package/src/command/cli.ts +42 -42
  46. package/src/enum/TrialUnit.ts +5 -5
  47. package/src/index.ts +52 -52
  48. package/src/meta/CostMetaTable.ts +79 -79
  49. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  50. package/src/row/CostCreateRow.ts +36 -36
  51. package/src/row/CostRow.ts +39 -39
  52. package/src/type/Estimation.ts +6 -6
  53. package/src/type/EstimationRow.ts +6 -6
  54. package/src/type/Period.ts +4 -4
  55. package/src/type/Trial.ts +6 -6
  56. 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.6`, 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);
@@ -5,6 +5,7 @@ import { Period } from "./type/Period";
5
5
  export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
6
6
  constructor(server: NamirasoftCostServer);
7
7
  Estimation(body: {
8
+ first_watch_created_at: (string | null);
8
9
  period: Period;
9
10
  active: boolean;
10
11
  }): Promise<Estimation>;
@@ -1 +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,IAAyC;;YAEtD,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
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,IAAkF;;YAE/F,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
@@ -5,6 +5,7 @@ import { Period } from "./type/Period";
5
5
  export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
6
6
  constructor(server: NamirasoftCostServer);
7
7
  Estimation(body: {
8
+ first_watch_created_at: (string | null);
8
9
  period: Period;
9
10
  active: boolean;
10
11
  }): Promise<Estimation>;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,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,IAAyC;;YAEtD,IAAI,IAAI,GAAG,oCAAoC,CAAC;YAChD,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,gFAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,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,IAAkF;;YAE/F,IAAI,IAAI,GAAG,oCAAoC,CAAC;YAChD,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,gFAaC;AAAA,CAAC"}
@@ -5,6 +5,7 @@ import { Period } from "./type/Period";
5
5
  export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
6
6
  constructor(server: NamirasoftCostServer);
7
7
  Estimation(body: {
8
+ first_watch_created_at: (string | null);
8
9
  period: Period;
9
10
  active: boolean;
10
11
  }): Promise<Estimation>;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.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,IAAyC;;YAEtD,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.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,IAAkF;;YAE/F,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;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":";;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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,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,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;SACA,CAAC,CAAC;IACX,CAAC;IACc,IA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AAC,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"}
@@ -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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AAa,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;AAvCD,0EAuCC;AAAA,CAAC"}
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,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,0EAgDC;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,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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AAC,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"}
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from "./NamirasoftCostServerBillWatchGCP";
6
6
  export * from "./NamirasoftCostServerCost";
7
7
  export * from "./NamirasoftCostServerHealthz";
8
8
  export * from "./NamirasoftCostServerValue";
9
+ export * from "./TimeUtil";
9
10
  export * from "./command/BillWatchAWSCommand";
10
11
  export * from "./command/BillWatchAWSEstimationCommand";
11
12
  export * from "./command/BillWatchAzureCommand";
@@ -19,14 +20,13 @@ export * from "./command/HealthzCommand";
19
20
  export * from "./command/HealthzGetCommand";
20
21
  export * from "./command/ValueCommand";
21
22
  export * from "./command/ValueListCommand";
23
+ export * from "./enum/TrialUnit";
22
24
  export * from "./meta/CostMetaTable";
23
25
  export * from "./meta/NamirasoftCostMetaDatabase";
24
26
  export * from "./row/CostCreateRow";
25
27
  export * from "./row/CostRow";
26
- export * from "./enum/TrialUnit";
27
28
  export * from "./type/Estimation";
28
29
  export * from "./type/EstimationRow";
29
30
  export * from "./type/Period";
30
31
  export * from "./type/Trial";
31
32
  export * from "./type/TrialDuration";
32
- export * from "./TimeUtil";
package/dist/index.js CHANGED
@@ -22,6 +22,7 @@ __exportStar(require("./NamirasoftCostServerBillWatchGCP"), exports);
22
22
  __exportStar(require("./NamirasoftCostServerCost"), exports);
23
23
  __exportStar(require("./NamirasoftCostServerHealthz"), exports);
24
24
  __exportStar(require("./NamirasoftCostServerValue"), exports);
25
+ __exportStar(require("./TimeUtil"), exports);
25
26
  __exportStar(require("./command/BillWatchAWSCommand"), exports);
26
27
  __exportStar(require("./command/BillWatchAWSEstimationCommand"), exports);
27
28
  __exportStar(require("./command/BillWatchAzureCommand"), exports);
@@ -35,15 +36,14 @@ __exportStar(require("./command/HealthzCommand"), exports);
35
36
  __exportStar(require("./command/HealthzGetCommand"), exports);
36
37
  __exportStar(require("./command/ValueCommand"), exports);
37
38
  __exportStar(require("./command/ValueListCommand"), exports);
39
+ __exportStar(require("./enum/TrialUnit"), exports);
38
40
  __exportStar(require("./meta/CostMetaTable"), exports);
39
41
  __exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
40
42
  __exportStar(require("./row/CostCreateRow"), exports);
41
43
  __exportStar(require("./row/CostRow"), exports);
42
- __exportStar(require("./enum/TrialUnit"), exports);
43
44
  __exportStar(require("./type/Estimation"), exports);
44
45
  __exportStar(require("./type/EstimationRow"), exports);
45
46
  __exportStar(require("./type/Period"), exports);
46
47
  __exportStar(require("./type/Trial"), exports);
47
48
  __exportStar(require("./type/TrialDuration"), exports);
48
- __exportStar(require("./TimeUtil"), exports);
49
49
  //# sourceMappingURL=index.js.map
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,gEAA8C;AAC9C,8DAA4C;AAC5C,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,4EAA0D;AAC1D,gEAA8C;AAC9C,0EAAwD;AACxD,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,uDAAqC;AACrC,6CAA2B"}
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,gEAA8C;AAC9C,8DAA4C;AAC5C,6CAA2B;AAC3B,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,4EAA0D;AAC1D,gEAA8C;AAC9C,0EAAwD;AACxD,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,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.5",
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.71",
21
- "namirasoft-site": "^1.4.36",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.72"
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.7",
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.71",
21
+ "namirasoft-site": "^1.4.36",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.72"
24
+ },
25
+ "bin": {
26
+ "ns-cost": "./dist/command/cli.js"
27
+ }
28
28
  }
@@ -1,48 +1,48 @@
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 { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
27
- import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
28
- import { TokenManager } from "namirasoft-account";
29
-
30
- export class NamirasoftCostServer extends NSABaseServer
31
- {
32
- healthz: NamirasoftCostServerHealthz;
33
- value: NamirasoftCostServerValue;
34
- bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
35
- bill_watch_azure: NamirasoftCostServerBillWatchAzure;
36
- bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
37
- cost: NamirasoftCostServerCost;
38
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
39
- {
40
- super(base_url, `1.4.4`, manager, onError);
41
- this.healthz = new NamirasoftCostServerHealthz(this);
42
- this.value = new NamirasoftCostServerValue(this);
43
- this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
44
- this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
45
- this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
46
- this.cost = new NamirasoftCostServerCost(this);
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 { 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 { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
27
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
28
+ import { TokenManager } from "namirasoft-account";
29
+
30
+ export class NamirasoftCostServer extends NSABaseServer
31
+ {
32
+ healthz: NamirasoftCostServerHealthz;
33
+ value: NamirasoftCostServerValue;
34
+ bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
35
+ bill_watch_azure: NamirasoftCostServerBillWatchAzure;
36
+ bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
37
+ cost: NamirasoftCostServerCost;
38
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
39
+ {
40
+ super(base_url, `1.4.6`, manager, onError);
41
+ this.healthz = new NamirasoftCostServerHealthz(this);
42
+ this.value = new NamirasoftCostServerValue(this);
43
+ this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
44
+ this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
45
+ this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
46
+ this.cost = new NamirasoftCostServerCost(this);
47
+ }
48
48
  };
@@ -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,39 +1,39 @@
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 { Estimation } from "./type/Estimation";
22
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
23
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
24
- import { Period } from "./type/Period";
25
-
26
- export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
27
- {
28
- constructor(server: NamirasoftCostServer)
29
- {
30
- super(server);
31
- this.Estimation = this.Estimation.bind(this);
32
- }
33
- async Estimation(body: { period: Period, active: boolean }): Promise<Estimation>
34
- {
35
- let path = `/estimation/bill-watch/watch/aws`;
36
- let { data } = await this.server._post<Estimation>(path, {}, body);
37
- return data;
38
- }
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 { Estimation } from "./type/Estimation";
22
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
23
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
24
+ import { Period } from "./type/Period";
25
+
26
+ export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
27
+ {
28
+ constructor(server: NamirasoftCostServer)
29
+ {
30
+ super(server);
31
+ this.Estimation = this.Estimation.bind(this);
32
+ }
33
+ async Estimation(body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<Estimation>
34
+ {
35
+ let path = `/estimation/bill-watch/watch/aws`;
36
+ let { data } = await this.server._post<Estimation>(path, {}, body);
37
+ return data;
38
+ }
39
39
  };