namirasoft-cost 1.4.10 → 1.4.12

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 (91) hide show
  1. package/dist/NamirasoftCostServer.d.ts +8 -2
  2. package/dist/NamirasoftCostServer.js +9 -3
  3. package/dist/NamirasoftCostServer.js.map +1 -1
  4. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +2 -2
  5. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  6. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +2 -2
  7. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  8. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +2 -2
  9. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  10. package/dist/NamirasoftCostServerFieldCategory.d.ts +20 -0
  11. package/dist/NamirasoftCostServerFieldCategory.js +37 -0
  12. package/dist/NamirasoftCostServerFieldCategory.js.map +1 -0
  13. package/dist/NamirasoftCostServerFieldField.d.ts +20 -0
  14. package/dist/NamirasoftCostServerFieldField.js +37 -0
  15. package/dist/NamirasoftCostServerFieldField.js.map +1 -0
  16. package/dist/NamirasoftCostServerMetrics.d.ts +6 -0
  17. package/dist/NamirasoftCostServerMetrics.js +28 -0
  18. package/dist/NamirasoftCostServerMetrics.js.map +1 -0
  19. package/dist/TimeUtil.d.ts +1 -1
  20. package/dist/TimeUtil.js +19 -16
  21. package/dist/TimeUtil.js.map +1 -1
  22. package/dist/command/BillWatchAWSEstimationCommand.js +5 -5
  23. package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
  24. package/dist/command/BillWatchAWS_CreateForCommand.js +5 -5
  25. package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -1
  26. package/dist/command/BillWatchAzureEstimationCommand.js +4 -4
  27. package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
  28. package/dist/command/BillWatchAzure_CreateForCommand.js +4 -4
  29. package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -1
  30. package/dist/command/BillWatchGCPEstimationCommand.js +5 -5
  31. package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
  32. package/dist/command/BillWatchGCP_CreateForCommand.js +5 -5
  33. package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -1
  34. package/dist/command/FieldCategoryCommand.d.ts +4 -0
  35. package/dist/command/FieldCategoryCommand.js +17 -0
  36. package/dist/command/FieldCategoryCommand.js.map +1 -0
  37. package/dist/command/FieldCategoryEstimationCommand.d.ts +5 -0
  38. package/dist/command/FieldCategoryEstimationCommand.js +67 -0
  39. package/dist/command/FieldCategoryEstimationCommand.js.map +1 -0
  40. package/dist/command/FieldCategory_CreateForCommand.d.ts +5 -0
  41. package/dist/command/FieldCategory_CreateForCommand.js +85 -0
  42. package/dist/command/FieldCategory_CreateForCommand.js.map +1 -0
  43. package/dist/command/FieldFieldCommand.d.ts +4 -0
  44. package/dist/command/FieldFieldCommand.js +17 -0
  45. package/dist/command/FieldFieldCommand.js.map +1 -0
  46. package/dist/command/FieldFieldEstimationCommand.d.ts +5 -0
  47. package/dist/command/FieldFieldEstimationCommand.js +67 -0
  48. package/dist/command/FieldFieldEstimationCommand.js.map +1 -0
  49. package/dist/command/FieldField_CreateForCommand.d.ts +5 -0
  50. package/dist/command/FieldField_CreateForCommand.js +85 -0
  51. package/dist/command/FieldField_CreateForCommand.js.map +1 -0
  52. package/dist/command/MetricsCommand.d.ts +4 -0
  53. package/dist/command/MetricsCommand.js +15 -0
  54. package/dist/command/MetricsCommand.js.map +1 -0
  55. package/dist/command/MetricsGetCommand.d.ts +5 -0
  56. package/dist/command/MetricsGetCommand.js +38 -0
  57. package/dist/command/MetricsGetCommand.js.map +1 -0
  58. package/dist/command/cli.js +6 -0
  59. package/dist/command/cli.js.map +1 -1
  60. package/dist/index.d.ts +11 -0
  61. package/dist/index.js +11 -0
  62. package/dist/index.js.map +1 -1
  63. package/dist/meta/NamirasoftCostMetaDatabase.js +1 -1
  64. package/dist/meta/NamirasoftCostMetaDatabase.js.map +1 -1
  65. package/logo.png +0 -0
  66. package/package.json +4 -4
  67. package/src/NamirasoftCostServer.ts +14 -5
  68. package/src/NamirasoftCostServerBillWatchAWS.ts +2 -2
  69. package/src/NamirasoftCostServerBillWatchAzure.ts +2 -2
  70. package/src/NamirasoftCostServerBillWatchGCP.ts +2 -2
  71. package/src/NamirasoftCostServerFieldCategory.ts +47 -0
  72. package/src/NamirasoftCostServerFieldField.ts +47 -0
  73. package/src/NamirasoftCostServerMetrics.ts +36 -0
  74. package/src/TimeUtil.ts +22 -19
  75. package/src/command/BillWatchAWSEstimationCommand.ts +5 -5
  76. package/src/command/BillWatchAWS_CreateForCommand.ts +5 -5
  77. package/src/command/BillWatchAzureEstimationCommand.ts +4 -4
  78. package/src/command/BillWatchAzure_CreateForCommand.ts +4 -4
  79. package/src/command/BillWatchGCPEstimationCommand.ts +5 -5
  80. package/src/command/BillWatchGCP_CreateForCommand.ts +5 -5
  81. package/src/command/FieldCategoryCommand.ts +34 -0
  82. package/src/command/FieldCategoryEstimationCommand.ts +74 -0
  83. package/src/command/FieldCategory_CreateForCommand.ts +92 -0
  84. package/src/command/FieldFieldCommand.ts +34 -0
  85. package/src/command/FieldFieldEstimationCommand.ts +74 -0
  86. package/src/command/FieldField_CreateForCommand.ts +92 -0
  87. package/src/command/MetricsCommand.ts +32 -0
  88. package/src/command/MetricsGetCommand.ts +45 -0
  89. package/src/command/cli.ts +6 -0
  90. package/src/index.ts +11 -0
  91. package/src/meta/NamirasoftCostMetaDatabase.ts +1 -1
@@ -3,15 +3,21 @@ import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatc
3
3
  import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
4
4
  import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
5
5
  import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
6
+ import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
7
+ import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
6
8
  import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
9
+ import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
7
10
  import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
8
11
  import { TokenManager } from "namirasoft-account";
9
12
  export declare class NamirasoftCostServer extends NSABaseServer {
10
13
  healthz: NamirasoftCostServerHealthz;
14
+ metrics: NamirasoftCostServerMetrics;
11
15
  value: NamirasoftCostServerValue;
12
- bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
16
+ bill_watch_aws: NamirasoftCostServerBillWatchAWS;
13
17
  bill_watch_azure: NamirasoftCostServerBillWatchAzure;
14
- bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
18
+ bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
19
+ field_category: NamirasoftCostServerFieldCategory;
20
+ field_field: NamirasoftCostServerFieldField;
15
21
  cost: NamirasoftCostServerCost;
16
22
  constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
17
23
  }
@@ -6,16 +6,22 @@ const NamirasoftCostServerBillWatchAWS_1 = require("./NamirasoftCostServerBillWa
6
6
  const NamirasoftCostServerBillWatchAzure_1 = require("./NamirasoftCostServerBillWatchAzure");
7
7
  const NamirasoftCostServerBillWatchGCP_1 = require("./NamirasoftCostServerBillWatchGCP");
8
8
  const NamirasoftCostServerCost_1 = require("./NamirasoftCostServerCost");
9
+ const NamirasoftCostServerFieldCategory_1 = require("./NamirasoftCostServerFieldCategory");
10
+ const NamirasoftCostServerFieldField_1 = require("./NamirasoftCostServerFieldField");
9
11
  const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
12
+ const NamirasoftCostServerMetrics_1 = require("./NamirasoftCostServerMetrics");
10
13
  const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
11
14
  class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
12
15
  constructor(base_url, manager, onError) {
13
- super(base_url, `1.4.10`, manager, onError);
16
+ super(base_url, `1.4.11`, manager, onError);
14
17
  this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
18
+ this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
15
19
  this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
16
- this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
20
+ this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
17
21
  this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure_1.NamirasoftCostServerBillWatchAzure(this);
18
- this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP_1.NamirasoftCostServerBillWatchGCP(this);
22
+ this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP_1.NamirasoftCostServerBillWatchGCP(this);
23
+ this.field_category = new NamirasoftCostServerFieldCategory_1.NamirasoftCostServerFieldCategory(this);
24
+ this.field_field = new NamirasoftCostServerFieldField_1.NamirasoftCostServerFieldField(this);
19
25
  this.cost = new NamirasoftCostServerCost_1.NamirasoftCostServerCost(this);
20
26
  }
21
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServer.js","sourceRoot":"","sources":["../src/NamirasoftCostServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,yEAAsE;AACtE,+EAA4E;AAC5E,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;IAQnD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,yDAA2B,CAAC,IAAI,CAA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,cAAc,GAAG,IAAI,qEAAiC,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,CAAC,WAAW,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACJ;AAxBD,oDAwBC;AAAA,CAAC"}
@@ -6,12 +6,12 @@ import { Period } from "./type/Period";
6
6
  export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
7
7
  constructor(server: NamirasoftCostServer);
8
8
  Estimation(body: {
9
- first_watch_created_at: (Date | null);
9
+ first_entity_created_at: (Date | null);
10
10
  period: Period;
11
11
  active: boolean;
12
12
  }): Promise<Estimation>;
13
13
  _CreateFor(user_id: string, body: {
14
- first_watch_created_at: (Date | null);
14
+ first_entity_created_at: (Date | null);
15
15
  period: Period;
16
16
  active: boolean;
17
17
  workspace_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,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;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,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;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@ import { Period } from "./type/Period";
6
6
  export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
7
7
  constructor(server: NamirasoftCostServer);
8
8
  Estimation(body: {
9
- first_watch_created_at: (Date | null);
9
+ first_entity_created_at: (Date | null);
10
10
  period: Period;
11
11
  active: boolean;
12
12
  }): Promise<Estimation>;
13
13
  _CreateFor(user_id: string, body: {
14
- first_watch_created_at: (Date | null);
14
+ first_entity_created_at: (Date | null);
15
15
  period: Period;
16
16
  active: boolean;
17
17
  workspace_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,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;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,8BAA8B,CAAC;YAC1C,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA2H;;YAEzJ,IAAI,IAAI,GAAG,qBAAqB,OAAO,wBAAwB,CAAC;YAChE,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;AApBD,gFAoBC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,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;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAiF;;YAE9F,IAAI,IAAI,GAAG,8BAA8B,CAAC;YAC1C,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA4H;;YAE1J,IAAI,IAAI,GAAG,qBAAqB,OAAO,wBAAwB,CAAC;YAChE,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;AApBD,gFAoBC;AAAA,CAAC"}
@@ -6,12 +6,12 @@ import { Period } from "./type/Period";
6
6
  export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
7
7
  constructor(server: NamirasoftCostServer);
8
8
  Estimation(body: {
9
- first_watch_created_at: (Date | null);
9
+ first_entity_created_at: (Date | null);
10
10
  period: Period;
11
11
  active: boolean;
12
12
  }): Promise<Estimation>;
13
13
  _CreateFor(user_id: string, body: {
14
- first_watch_created_at: (Date | null);
14
+ first_entity_created_at: (Date | null);
15
15
  period: Period;
16
16
  active: boolean;
17
17
  workspace_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,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;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAgF;;YAE7F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA2H;;YAEzJ,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,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;AApBD,4EAoBC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,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;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAiF;;YAE9F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA4H;;YAE1J,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,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;AApBD,4EAoBC;AAAA,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { CostRow } from "./row/CostRow";
2
+ import { Estimation } from "./type/Estimation";
3
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
+ import { Period } from "./type/Period";
6
+ export declare class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase {
7
+ constructor(server: NamirasoftCostServer);
8
+ Estimation(body: {
9
+ first_entity_created_at: (Date | null);
10
+ period: Period;
11
+ active: boolean;
12
+ }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_entity_created_at: (Date | null);
15
+ period: Period;
16
+ active: boolean;
17
+ workspace_id: string;
18
+ resource_id: string;
19
+ }): Promise<CostRow>;
20
+ }
@@ -0,0 +1,37 @@
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.NamirasoftCostServerFieldCategory = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
15
+ constructor(server) {
16
+ super(server);
17
+ this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
19
+ }
20
+ Estimation(body) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ let path = `/estimation/field/category`;
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/field/category`;
30
+ let { data } = yield this.server._post(path, {}, body);
31
+ return data;
32
+ });
33
+ }
34
+ }
35
+ exports.NamirasoftCostServerFieldCategory = NamirasoftCostServerFieldCategory;
36
+ ;
37
+ //# sourceMappingURL=NamirasoftCostServerFieldCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerFieldCategory.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,iCAAkC,SAAQ,mDAAwB;IAE3E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAiF;;YAE9F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA4H;;YAE1J,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,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;AApBD,8EAoBC;AAAA,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { CostRow } from "./row/CostRow";
2
+ import { Estimation } from "./type/Estimation";
3
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
4
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
5
+ import { Period } from "./type/Period";
6
+ export declare class NamirasoftCostServerFieldField extends NamirasoftCostServerBase {
7
+ constructor(server: NamirasoftCostServer);
8
+ Estimation(body: {
9
+ first_entity_created_at: (Date | null);
10
+ period: Period;
11
+ active: boolean;
12
+ }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_entity_created_at: (Date | null);
15
+ period: Period;
16
+ active: boolean;
17
+ workspace_id: string;
18
+ resource_id: string;
19
+ }): Promise<CostRow>;
20
+ }
@@ -0,0 +1,37 @@
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.NamirasoftCostServerFieldField = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerFieldField extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
15
+ constructor(server) {
16
+ super(server);
17
+ this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
19
+ }
20
+ Estimation(body) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ let path = `/estimation/field/field`;
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/field/field`;
30
+ let { data } = yield this.server._post(path, {}, body);
31
+ return data;
32
+ });
33
+ }
34
+ }
35
+ exports.NamirasoftCostServerFieldField = NamirasoftCostServerFieldField;
36
+ ;
37
+ //# sourceMappingURL=NamirasoftCostServerFieldField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerFieldField.js","sourceRoot":"","sources":["../src/NamirasoftCostServerFieldField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,8BAA+B,SAAQ,mDAAwB;IAExE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAiF;;YAE9F,IAAI,IAAI,GAAG,yBAAyB,CAAC;YACrC,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;IACK,UAAU,CAAC,OAAe,EAAE,IAA4H;;YAE1J,IAAI,IAAI,GAAG,qBAAqB,OAAO,mBAAmB,CAAC;YAC3D,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;AApBD,wEAoBC;AAAA,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
2
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
3
+ export declare class NamirasoftCostServerMetrics 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.NamirasoftCostServerMetrics = void 0;
13
+ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
14
+ class NamirasoftCostServerMetrics 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 = `/metrics`;
22
+ yield this.server._get(path, {});
23
+ });
24
+ }
25
+ }
26
+ exports.NamirasoftCostServerMetrics = NamirasoftCostServerMetrics;
27
+ ;
28
+ //# sourceMappingURL=NamirasoftCostServerMetrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftCostServerMetrics.js","sourceRoot":"","sources":["../src/NamirasoftCostServerMetrics.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"}
@@ -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) => Promise<void>): Promise<void>;
6
+ static loopHourly(trial: Trial | null, period: Period, estimate_hour: (period: Period, trial: boolean) => Promise<void>): Promise<void>;
7
7
  }
package/dist/TimeUtil.js CHANGED
@@ -11,16 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TimeUtil = void 0;
13
13
  const namirasoft_core_1 = require("namirasoft-core");
14
- const TrialUnit_1 = require("./enum/TrialUnit");
15
14
  class TimeUtil {
16
15
  static trialEndsAt(trial) {
17
- if (trial.duration.unit == TrialUnit_1.TrialUnit.Day)
18
- return namirasoft_core_1.TimeOperation.daysLater(trial.duration.value, trial.started_at);
19
- if (trial.duration.unit == TrialUnit_1.TrialUnit.Week)
20
- return namirasoft_core_1.TimeOperation.daysLater(trial.duration.value * 7, trial.started_at);
21
- if (trial.duration.unit == TrialUnit_1.TrialUnit.Month)
22
- return namirasoft_core_1.TimeOperation.monthsLater(trial.duration.value, trial.started_at);
23
- return trial.started_at;
16
+ return namirasoft_core_1.TimeUnitOperation.later(trial.duration.value, trial.duration.unit, trial.started_at);
24
17
  }
25
18
  static isTrial(trial, date) {
26
19
  return date <= TimeUtil.trialEndsAt(trial);
@@ -29,13 +22,9 @@ class TimeUtil {
29
22
  return __awaiter(this, void 0, void 0, function* () {
30
23
  if (period.end <= period.start)
31
24
  return;
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
- }
25
+ let trial_ends_at = null;
26
+ if (trial)
27
+ trial_ends_at = TimeUtil.trialEndsAt(trial);
39
28
  let start = period.start;
40
29
  let end = null;
41
30
  do {
@@ -45,7 +34,21 @@ class TimeUtil {
45
34
  end.setMinutes(0);
46
35
  if (period.end < end)
47
36
  end = period.end;
48
- yield estimate_hour({ start, end });
37
+ if (trial_ends_at) {
38
+ if (trial_ends_at < period.start)
39
+ yield estimate_hour({ start, end }, false);
40
+ else if (trial_ends_at <= period.end) {
41
+ let trial_ends_at_e = namirasoft_core_1.TimeOperation.secondsAgo(1, trial_ends_at);
42
+ let trial_ends_at_s = trial_ends_at;
43
+ if (start < trial_ends_at_e)
44
+ yield estimate_hour({ start, end: trial_ends_at_e }, true);
45
+ yield estimate_hour({ start: trial_ends_at_s, end }, false);
46
+ }
47
+ else if (period.end < trial_ends_at)
48
+ yield estimate_hour({ start: period.start, end: trial_ends_at }, true);
49
+ }
50
+ else
51
+ yield estimate_hour({ start, end }, false);
49
52
  start = end;
50
53
  } while (end < period.end);
51
54
  });
@@ -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,CAAC;QAC7E,OAAO,KAAK,CAAC,UAAU,CAAC;IAC5B,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,KAAY,EAAE,IAAU;QAEnC,OAAO,IAAI,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,CAAO,UAAU,CAAC,KAAmB,EAAE,MAAc,EAAE,aAAgD;;YAEzG,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK;gBAC1B,OAAO;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GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;oBAChE,CAAC;yBACI,IAAI,MAAM,CAAC,GAAG,GAAG,aAAa;wBAC/B,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC/E,CAAC;;oBAEG,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;gBAC/C,KAAK,GAAG,GAAG,CAAC;YAChB,CAAC,QACM,GAAG,GAAG,MAAM,CAAC,GAAG,EAAC;QAC5B,CAAC;KAAA;CACJ;AAnDD,4BAmDC"}
@@ -18,11 +18,11 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
18
18
  constructor(argv) {
19
19
  super(argv, [], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -53,8 +53,8 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
53
53
  manager.setValue(token, false);
54
54
  let url = this.app.storage.getItem("ns-cost-server-url");
55
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,
56
+ let ans = yield server.bill_watch_aws.Estimation({
57
+ first_entity_created_at: this.option_values.first_entity_created_at,
58
58
  period: this.option_values.period,
59
59
  active: this.option_values.active
60
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchAWSEstimationCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSEstimationCommand.ts"],"names":[],"mappings":";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A;CACJ;AAhDD,sEAgDC;AAAA,CAAC"}
@@ -18,11 +18,11 @@ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -69,8 +69,8 @@ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
69
69
  manager.setValue(token, false);
70
70
  let url = this.app.storage.getItem("ns-cost-server-url");
71
71
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
- let ans = yield server.bill_watch_a_w_s._CreateFor(this.arg_values[0], {
73
- first_watch_created_at: this.option_values.first_watch_created_at,
72
+ let ans = yield server.bill_watch_aws._CreateFor(this.arg_values[0], {
73
+ first_entity_created_at: this.option_values.first_entity_created_at,
74
74
  period: this.option_values.period,
75
75
  active: this.option_values.active,
76
76
  workspace_id: this.option_values.workspace_id,
@@ -1 +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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AAG,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,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACjE,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,sEAkEC;AAAA,CAAC"}
@@ -18,11 +18,11 @@ class BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
18
18
  constructor(argv) {
19
19
  super(argv, [], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -54,7 +54,7 @@ class BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
54
54
  let url = this.app.storage.getItem("ns-cost-server-url");
55
55
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
56
56
  let ans = yield server.bill_watch_azure.Estimation({
57
- first_watch_created_at: this.option_values.first_watch_created_at,
57
+ first_entity_created_at: this.option_values.first_entity_created_at,
58
58
  period: this.option_values.period,
59
59
  active: this.option_values.active
60
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,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/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/C,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,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"}
@@ -18,11 +18,11 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -70,7 +70,7 @@ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCom
70
70
  let url = this.app.storage.getItem("ns-cost-server-url");
71
71
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
72
  let ans = yield server.bill_watch_azure._CreateFor(this.arg_values[0], {
73
- first_watch_created_at: this.option_values.first_watch_created_at,
73
+ first_entity_created_at: this.option_values.first_entity_created_at,
74
74
  period: this.option_values.period,
75
75
  active: this.option_values.active,
76
76
  workspace_id: this.option_values.workspace_id,
@@ -1 +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,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AI,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,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,0EAkEC;AAAA,CAAC"}
@@ -18,11 +18,11 @@ class BillWatchGCPEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
18
18
  constructor(argv) {
19
19
  super(argv, [], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -53,8 +53,8 @@ class BillWatchGCPEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
53
53
  manager.setValue(token, false);
54
54
  let url = this.app.storage.getItem("ns-cost-server-url");
55
55
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
56
- let ans = yield server.bill_watch_g_c_p.Estimation({
57
- first_watch_created_at: this.option_values.first_watch_created_at,
56
+ let ans = yield server.bill_watch_gcp.Estimation({
57
+ first_entity_created_at: this.option_values.first_entity_created_at,
58
58
  period: this.option_values.period,
59
59
  active: this.option_values.active
60
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,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,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C,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,cAAc,CAAC,UAAU,CAAC;gBAC7C,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,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"}
@@ -18,11 +18,11 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
21
- name: "first_watch_created_at",
21
+ name: "first_entity_created_at",
22
22
  short: "",
23
- description: "Provides the value of 'first_watch_created_at' in body",
23
+ description: "Provides the value of 'first_entity_created_at' in body",
24
24
  optional: true,
25
- args: ["first_watch_created_at"],
25
+ args: ["first_entity_created_at"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
@@ -69,8 +69,8 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
69
69
  manager.setValue(token, false);
70
70
  let url = this.app.storage.getItem("ns-cost-server-url");
71
71
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
- let ans = yield server.bill_watch_g_c_p._CreateFor(this.arg_values[0], {
73
- first_watch_created_at: this.option_values.first_watch_created_at,
72
+ let ans = yield server.bill_watch_gcp._CreateFor(this.arg_values[0], {
73
+ first_entity_created_at: this.option_values.first_entity_created_at,
74
74
  period: this.option_values.period,
75
75
  active: this.option_values.active,
76
76
  workspace_id: this.option_values.workspace_id,