namirasoft-cost 1.4.19 → 1.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamirasoftCostServer.d.ts +2 -0
- package/dist/NamirasoftCostServer.js +3 -1
- package/dist/NamirasoftCostServer.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAWS.js +6 -6
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAzure.js +6 -6
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchGCP.js +6 -6
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -4
- package/dist/NamirasoftCostServerFieldCategory.js +6 -6
- package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
- package/dist/NamirasoftCostServerFieldField.d.ts +4 -4
- package/dist/NamirasoftCostServerFieldField.js +6 -6
- package/dist/NamirasoftCostServerFieldField.js.map +1 -1
- package/dist/NamirasoftCostServerSecretSecret.d.ts +36 -0
- package/dist/NamirasoftCostServerSecretSecret.js +53 -0
- package/dist/NamirasoftCostServerSecretSecret.js.map +1 -0
- package/dist/TimeUtil.js +18 -11
- package/dist/TimeUtil.js.map +1 -1
- package/dist/command/BillWatchAWSCommand.js +4 -4
- package/dist/command/BillWatchAWSCommand.js.map +1 -1
- package/dist/command/{BillWatchAWSEstimationCommand.d.ts → BillWatchAWSEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{BillWatchAWSEstimationCommand.js → BillWatchAWSEstimateHourlyCommand.js} +15 -15
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{FieldCategory_CreateForCommand.js → BillWatchAWS_CreateForHourlyCommand.js} +14 -14
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAzureCommand.js +4 -4
- package/dist/command/BillWatchAzureCommand.js.map +1 -1
- package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js +76 -0
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +94 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchGCPCommand.js +4 -4
- package/dist/command/BillWatchGCPCommand.js.map +1 -1
- package/dist/command/{BillWatchAWS_CreateForCommand.d.ts → BillWatchGCPEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{BillWatchGCPEstimationCommand.js → BillWatchGCPEstimateHourlyCommand.js} +15 -15
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchAzure_CreateForCommand.js → BillWatchGCP_CreateForHourlyCommand.js} +14 -14
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/FieldCategoryCommand.js +4 -4
- package/dist/command/FieldCategoryCommand.js.map +1 -1
- package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/FieldCategoryEstimateHourlyCommand.js +76 -0
- package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +1 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.js +94 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/FieldFieldCommand.js +4 -4
- package/dist/command/FieldFieldCommand.js.map +1 -1
- package/dist/command/{BillWatchAzureEstimationCommand.d.ts → FieldFieldEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{BillWatchAzureEstimationCommand.js → FieldFieldEstimateHourlyCommand.js} +15 -15
- package/dist/command/{BillWatchAzureEstimationCommand.js.map → FieldFieldEstimateHourlyCommand.js.map} +1 -1
- package/dist/command/FieldField_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchAWS_CreateForCommand.js → FieldField_CreateForHourlyCommand.js} +14 -14
- package/dist/command/FieldField_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/SecretSecretCommand.d.ts +4 -0
- package/dist/command/SecretSecretCommand.js +21 -0
- package/dist/command/SecretSecretCommand.js.map +1 -0
- package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/{FieldCategoryEstimationCommand.js → SecretSecretEstimateHourlyCommand.js} +15 -15
- package/dist/command/SecretSecretEstimateHourlyCommand.js.map +1 -0
- package/dist/command/{BillWatchAzure_CreateForCommand.d.ts → SecretSecretEstimateReadCommand.d.ts} +1 -1
- package/dist/command/{FieldFieldEstimationCommand.js → SecretSecretEstimateReadCommand.js} +17 -17
- package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchGCP_CreateForCommand.js → SecretSecret_CreateForHourlyCommand.js} +14 -14
- package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
- package/dist/command/{FieldField_CreateForCommand.js → SecretSecret_CreateForReadCommand.js} +16 -16
- package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
- package/dist/command/cli.js +2 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/index.d.ts +16 -10
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/NamirasoftCostServer.ts +4 -1
- package/src/NamirasoftCostServerBillWatchAWS.ts +6 -6
- package/src/NamirasoftCostServerBillWatchAzure.ts +6 -6
- package/src/NamirasoftCostServerBillWatchGCP.ts +6 -6
- package/src/NamirasoftCostServerFieldCategory.ts +6 -6
- package/src/NamirasoftCostServerFieldField.ts +6 -6
- package/src/NamirasoftCostServerSecretSecret.ts +61 -0
- package/src/TimeUtil.ts +20 -10
- package/src/command/BillWatchAWSCommand.ts +4 -4
- package/src/command/{FieldCategoryEstimationCommand.ts → BillWatchAWSEstimateHourlyCommand.ts} +12 -12
- package/src/command/{FieldCategory_CreateForCommand.ts → BillWatchAWS_CreateForHourlyCommand.ts} +11 -11
- package/src/command/BillWatchAzureCommand.ts +4 -4
- package/src/command/BillWatchAzureEstimateHourlyCommand.ts +83 -0
- package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +101 -0
- package/src/command/BillWatchGCPCommand.ts +4 -4
- package/src/command/{BillWatchGCPEstimationCommand.ts → BillWatchGCPEstimateHourlyCommand.ts} +12 -12
- package/src/command/{BillWatchAzure_CreateForCommand.ts → BillWatchGCP_CreateForHourlyCommand.ts} +11 -11
- package/src/command/FieldCategoryCommand.ts +4 -4
- package/src/command/FieldCategoryEstimateHourlyCommand.ts +83 -0
- package/src/command/FieldCategory_CreateForHourlyCommand.ts +101 -0
- package/src/command/FieldFieldCommand.ts +4 -4
- package/src/command/{BillWatchAzureEstimationCommand.ts → FieldFieldEstimateHourlyCommand.ts} +12 -12
- package/src/command/{BillWatchGCP_CreateForCommand.ts → FieldField_CreateForHourlyCommand.ts} +11 -11
- package/src/command/SecretSecretCommand.ts +38 -0
- package/src/command/{BillWatchAWSEstimationCommand.ts → SecretSecretEstimateHourlyCommand.ts} +12 -12
- package/src/command/{FieldFieldEstimationCommand.ts → SecretSecretEstimateReadCommand.ts} +14 -14
- package/src/command/{BillWatchAWS_CreateForCommand.ts → SecretSecret_CreateForHourlyCommand.ts} +11 -11
- package/src/command/{FieldField_CreateForCommand.ts → SecretSecret_CreateForReadCommand.ts} +13 -13
- package/src/command/cli.ts +2 -0
- package/src/index.ts +16 -10
- package/dist/command/BillWatchAWSEstimationCommand.js.map +0 -1
- package/dist/command/BillWatchAWS_CreateForCommand.js.map +0 -1
- package/dist/command/BillWatchAzure_CreateForCommand.js.map +0 -1
- package/dist/command/BillWatchGCPEstimationCommand.d.ts +0 -5
- package/dist/command/BillWatchGCPEstimationCommand.js.map +0 -1
- package/dist/command/BillWatchGCP_CreateForCommand.d.ts +0 -5
- package/dist/command/BillWatchGCP_CreateForCommand.js.map +0 -1
- package/dist/command/FieldCategoryEstimationCommand.d.ts +0 -5
- package/dist/command/FieldCategoryEstimationCommand.js.map +0 -1
- package/dist/command/FieldCategory_CreateForCommand.d.ts +0 -5
- package/dist/command/FieldCategory_CreateForCommand.js.map +0 -1
- package/dist/command/FieldFieldEstimationCommand.d.ts +0 -5
- package/dist/command/FieldFieldEstimationCommand.js.map +0 -1
- package/dist/command/FieldField_CreateForCommand.d.ts +0 -5
- package/dist/command/FieldField_CreateForCommand.js.map +0 -1
@@ -7,6 +7,7 @@ import { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCa
|
|
7
7
|
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
8
8
|
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
9
9
|
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
10
|
+
import { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
|
10
11
|
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
11
12
|
import { TokenManager } from "namirasoft-account";
|
12
13
|
export declare class NamirasoftCostServer extends NSABaseServer {
|
@@ -18,6 +19,7 @@ export declare class NamirasoftCostServer extends NSABaseServer {
|
|
18
19
|
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
19
20
|
field_category: NamirasoftCostServerFieldCategory;
|
20
21
|
field_field: NamirasoftCostServerFieldField;
|
22
|
+
secret_secret: NamirasoftCostServerSecretSecret;
|
21
23
|
cost: NamirasoftCostServerCost;
|
22
24
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
23
25
|
}
|
@@ -10,10 +10,11 @@ const NamirasoftCostServerFieldCategory_1 = require("./NamirasoftCostServerField
|
|
10
10
|
const NamirasoftCostServerFieldField_1 = require("./NamirasoftCostServerFieldField");
|
11
11
|
const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
|
12
12
|
const NamirasoftCostServerMetrics_1 = require("./NamirasoftCostServerMetrics");
|
13
|
+
const NamirasoftCostServerSecretSecret_1 = require("./NamirasoftCostServerSecretSecret");
|
13
14
|
const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
|
14
15
|
class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
15
16
|
constructor(base_url, manager, onError) {
|
16
|
-
super(base_url, `1.4.
|
17
|
+
super(base_url, `1.4.21`, manager, onError);
|
17
18
|
this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
|
18
19
|
this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
|
19
20
|
this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
|
@@ -22,6 +23,7 @@ class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
|
22
23
|
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP_1.NamirasoftCostServerBillWatchGCP(this);
|
23
24
|
this.field_category = new NamirasoftCostServerFieldCategory_1.NamirasoftCostServerFieldCategory(this);
|
24
25
|
this.field_field = new NamirasoftCostServerFieldField_1.NamirasoftCostServerFieldField(this);
|
26
|
+
this.secret_secret = new NamirasoftCostServerSecretSecret_1.NamirasoftCostServerSecretSecret(this);
|
25
27
|
this.cost = new NamirasoftCostServerCost_1.NamirasoftCostServerCost(this);
|
26
28
|
}
|
27
29
|
}
|
@@ -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,2FAAwF;AACxF,qFAAkF;AAClF,+EAA4E;AAC5E,+EAA4E;AAC5E,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;
|
1
|
+
{"version":3,"file":"NamirasoftCostServer.js","sourceRoot":"","sources":["../src/NamirasoftCostServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,yEAAsE;AACtE,2FAAwF;AACxF,qFAAkF;AAClF,+EAA4E;AAC5E,+EAA4E;AAC5E,yFAAsF;AACtF,2EAAwE;AAGxE,MAAa,oBAAqB,SAAQ,kCAAa;IAYnD,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,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,yDAA2B,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,gBAAgB,GAAG,IAAI,uEAAkC,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,cAAc,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,cAAc,GAAG,IAAI,qEAAiC,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,CAAC,WAAW,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,aAAa,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QAChE,IAAI,CAAC,IAAI,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACJ;AA1BD,oDA0BC;AAAA,CAAC"}
|
@@ -5,17 +5,17 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateHourly(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
10
11
|
row_number: number;
|
11
12
|
active: boolean;
|
12
|
-
period: Period;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
16
17
|
row_number: number;
|
17
18
|
active: boolean;
|
18
|
-
period: Period;
|
19
19
|
workspace_id: string;
|
20
20
|
resource_id: string;
|
21
21
|
}): Promise<CostRow>;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateHourly(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/aws`;
|
22
|
+
let path = `/estimation/bill-watch/aws/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForHourly(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/aws`;
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/aws/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -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,
|
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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,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,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,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"}
|
@@ -5,17 +5,17 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateHourly(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
10
11
|
row_number: number;
|
11
12
|
active: boolean;
|
12
|
-
period: Period;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
16
17
|
row_number: number;
|
17
18
|
active: boolean;
|
18
|
-
period: Period;
|
19
19
|
workspace_id: string;
|
20
20
|
resource_id: string;
|
21
21
|
}): Promise<CostRow>;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateHourly(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/azure`;
|
22
|
+
let path = `/estimation/bill-watch/azure/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForHourly(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/azure`;
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/azure/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -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,
|
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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,qCAAqC,CAAC;YACjD,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,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,+BAA+B,CAAC;YACvE,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"}
|
@@ -5,17 +5,17 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateHourly(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
10
11
|
row_number: number;
|
11
12
|
active: boolean;
|
12
|
-
period: Period;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
16
17
|
row_number: number;
|
17
18
|
active: boolean;
|
18
|
-
period: Period;
|
19
19
|
workspace_id: string;
|
20
20
|
resource_id: string;
|
21
21
|
}): Promise<CostRow>;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateHourly(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/bill-watch/gcp`;
|
22
|
+
let path = `/estimation/bill-watch/gcp/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForHourly(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
|
29
|
+
let path = `/application/user/${user_id}/cost/bill-watch/gcp/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -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,
|
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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,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,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,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"}
|
@@ -5,17 +5,17 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateHourly(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
10
11
|
row_number: number;
|
11
12
|
active: boolean;
|
12
|
-
period: Period;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
16
17
|
row_number: number;
|
17
18
|
active: boolean;
|
18
|
-
period: Period;
|
19
19
|
workspace_id: string;
|
20
20
|
resource_id: string;
|
21
21
|
}): Promise<CostRow>;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateHourly(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/field/category`;
|
22
|
+
let path = `/estimation/field/category/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForHourly(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/field/category`;
|
29
|
+
let path = `/application/user/${user_id}/cost/field/category/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +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,
|
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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,mCAAmC,CAAC;YAC/C,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,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,6BAA6B,CAAC;YACrE,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"}
|
@@ -5,17 +5,17 @@ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
5
5
|
import { Period } from "./type/Period";
|
6
6
|
export declare class NamirasoftCostServerFieldField extends NamirasoftCostServerBase {
|
7
7
|
constructor(server: NamirasoftCostServer);
|
8
|
-
|
8
|
+
EstimateHourly(body: {
|
9
9
|
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
10
11
|
row_number: number;
|
11
12
|
active: boolean;
|
12
|
-
period: Period;
|
13
13
|
}): Promise<Estimation>;
|
14
|
-
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
15
|
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
16
17
|
row_number: number;
|
17
18
|
active: boolean;
|
18
|
-
period: Period;
|
19
19
|
workspace_id: string;
|
20
20
|
resource_id: string;
|
21
21
|
}): Promise<CostRow>;
|
@@ -14,19 +14,19 @@ const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
|
14
14
|
class NamirasoftCostServerFieldField extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
15
|
constructor(server) {
|
16
16
|
super(server);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
19
|
}
|
20
|
-
|
20
|
+
EstimateHourly(body) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
let path = `/estimation/field/field`;
|
22
|
+
let path = `/estimation/field/field/hourly`;
|
23
23
|
let { data } = yield this.server._post(path, {}, body);
|
24
24
|
return data;
|
25
25
|
});
|
26
26
|
}
|
27
|
-
|
27
|
+
_CreateForHourly(user_id, body) {
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
let path = `/application/user/${user_id}/cost/field/field`;
|
29
|
+
let path = `/application/user/${user_id}/cost/field/field/hourly`;
|
30
30
|
let { data } = yield this.server._post(path, {}, body);
|
31
31
|
return data;
|
32
32
|
});
|
@@ -1 +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,
|
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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,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,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,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,36 @@
|
|
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 NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase {
|
7
|
+
constructor(server: NamirasoftCostServer);
|
8
|
+
EstimateHourly(body: {
|
9
|
+
first_entity_created_at: (Date | null);
|
10
|
+
period: Period;
|
11
|
+
row_number: number;
|
12
|
+
active: boolean;
|
13
|
+
}): Promise<Estimation>;
|
14
|
+
_CreateForHourly(user_id: string, body: {
|
15
|
+
first_entity_created_at: (Date | null);
|
16
|
+
period: Period;
|
17
|
+
row_number: number;
|
18
|
+
active: boolean;
|
19
|
+
workspace_id: string;
|
20
|
+
resource_id: string;
|
21
|
+
}): Promise<CostRow>;
|
22
|
+
EstimateRead(body: {
|
23
|
+
first_entity_created_at: (Date | null);
|
24
|
+
period: Period;
|
25
|
+
total: number;
|
26
|
+
count: number;
|
27
|
+
}): Promise<Estimation>;
|
28
|
+
_CreateForRead(user_id: string, body: {
|
29
|
+
first_entity_created_at: (Date | null);
|
30
|
+
period: Period;
|
31
|
+
total: number;
|
32
|
+
count: number;
|
33
|
+
workspace_id: string;
|
34
|
+
resource_id: string;
|
35
|
+
}): Promise<CostRow>;
|
36
|
+
}
|
@@ -0,0 +1,53 @@
|
|
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.NamirasoftCostServerSecretSecret = void 0;
|
13
|
+
const NamirasoftCostServerBase_1 = require("./NamirasoftCostServerBase");
|
14
|
+
class NamirasoftCostServerSecretSecret extends NamirasoftCostServerBase_1.NamirasoftCostServerBase {
|
15
|
+
constructor(server) {
|
16
|
+
super(server);
|
17
|
+
this.EstimateHourly = this.EstimateHourly.bind(this);
|
18
|
+
this._CreateForHourly = this._CreateForHourly.bind(this);
|
19
|
+
this.EstimateRead = this.EstimateRead.bind(this);
|
20
|
+
this._CreateForRead = this._CreateForRead.bind(this);
|
21
|
+
}
|
22
|
+
EstimateHourly(body) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
let path = `/estimation/secret/secret/hourly`;
|
25
|
+
let { data } = yield this.server._post(path, {}, body);
|
26
|
+
return data;
|
27
|
+
});
|
28
|
+
}
|
29
|
+
_CreateForHourly(user_id, body) {
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
31
|
+
let path = `/application/user/${user_id}/cost/secret/secret/hourly`;
|
32
|
+
let { data } = yield this.server._post(path, {}, body);
|
33
|
+
return data;
|
34
|
+
});
|
35
|
+
}
|
36
|
+
EstimateRead(body) {
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
38
|
+
let path = `/estimation/secret/secret/read`;
|
39
|
+
let { data } = yield this.server._post(path, {}, body);
|
40
|
+
return data;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
_CreateForRead(user_id, body) {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
let path = `/application/user/${user_id}/cost/secret/secret/read`;
|
46
|
+
let { data } = yield this.server._post(path, {}, body);
|
47
|
+
return data;
|
48
|
+
});
|
49
|
+
}
|
50
|
+
}
|
51
|
+
exports.NamirasoftCostServerSecretSecret = NamirasoftCostServerSecretSecret;
|
52
|
+
;
|
53
|
+
//# sourceMappingURL=NamirasoftCostServerSecretSecret.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NamirasoftCostServerSecretSecret.js","sourceRoot":"","sources":["../src/NamirasoftCostServerSecretSecret.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IACK,cAAc,CAAC,IAAqG;;YAEtH,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;IACK,gBAAgB,CAAC,OAAe,EAAE,IAAgJ;;YAEpL,IAAI,IAAI,GAAG,qBAAqB,OAAO,4BAA4B,CAAC;YACpE,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;IACK,YAAY,CAAC,IAA8F;;YAE7G,IAAI,IAAI,GAAG,gCAAgC,CAAC;YAC5C,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,cAAc,CAAC,OAAe,EAAE,IAAyI;;YAE3K,IAAI,IAAI,GAAG,qBAAqB,OAAO,0BAA0B,CAAC;YAClE,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;AAlCD,4EAkCC;AAAA,CAAC"}
|
package/dist/TimeUtil.js
CHANGED
@@ -22,6 +22,11 @@ class TimeUtil {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
23
23
|
if (period.end <= period.start)
|
24
24
|
return;
|
25
|
+
let pre_estimate_hour = (period, trial) => __awaiter(this, void 0, void 0, function* () {
|
26
|
+
if (period.end <= period.start)
|
27
|
+
return;
|
28
|
+
return yield estimate_hour(period, trial);
|
29
|
+
});
|
25
30
|
let trial_ends_at = null;
|
26
31
|
if (trial)
|
27
32
|
trial_ends_at = TimeUtil.trialEndsAt(trial);
|
@@ -32,24 +37,26 @@ class TimeUtil {
|
|
32
37
|
next_start.setMilliseconds(0);
|
33
38
|
next_start.setSeconds(0);
|
34
39
|
next_start.setMinutes(0);
|
35
|
-
if (period.end < next_start)
|
40
|
+
if (period.end < next_start) {
|
36
41
|
next_start = period.end;
|
37
|
-
|
42
|
+
end = period.end;
|
43
|
+
}
|
44
|
+
else
|
45
|
+
end = namirasoft_core_1.TimeOperation.secondsAgo(1, next_start);
|
38
46
|
if (trial_ends_at) {
|
39
|
-
if (trial_ends_at <
|
40
|
-
yield
|
41
|
-
else if (trial_ends_at <=
|
47
|
+
if (trial_ends_at < start)
|
48
|
+
yield pre_estimate_hour({ start, end }, false);
|
49
|
+
else if (trial_ends_at <= end) {
|
42
50
|
let trial_ends_at_e = namirasoft_core_1.TimeOperation.secondsAgo(1, trial_ends_at);
|
43
51
|
let trial_ends_at_s = trial_ends_at;
|
44
|
-
|
45
|
-
|
46
|
-
yield estimate_hour({ start: trial_ends_at_s, end }, false);
|
52
|
+
yield pre_estimate_hour({ start, end: trial_ends_at_e }, true);
|
53
|
+
yield pre_estimate_hour({ start: trial_ends_at_s, end }, false);
|
47
54
|
}
|
48
|
-
else if (
|
49
|
-
yield
|
55
|
+
else if (end < trial_ends_at)
|
56
|
+
yield pre_estimate_hour({ start: period.start, end }, true);
|
50
57
|
}
|
51
58
|
else
|
52
|
-
yield
|
59
|
+
yield pre_estimate_hour({ start, end }, false);
|
53
60
|
start = next_start;
|
54
61
|
} while (end < period.end);
|
55
62
|
});
|
package/dist/TimeUtil.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAInE,MAAa,QAAQ;IAEjB,MAAM,CAAC,WAAW,CAAC,KAAY;QAE3B,OAAO,mCAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACvG,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,aAAgE;;YAEzH,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK;gBAC1B,OAAO;YAEX,IAAI,aAAa,GAAgB,IAAI,CAAC;YACtC,IAAI,KAAK;gBACL,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEhD,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YACzB,IAAI,GAAG,GAAG,IAAI,CAAC;YAEf,GACA,CAAC;gBACG,IAAI,UAAU,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;gBACpD,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAC9B,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,MAAM,CAAC,GAAG,GAAG,UAAU;
|
1
|
+
{"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAInE,MAAa,QAAQ;IAEjB,MAAM,CAAC,WAAW,CAAC,KAAY;QAE3B,OAAO,mCAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACvG,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,aAAgE;;YAEzH,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK;gBAC1B,OAAO;YAEX,IAAI,iBAAiB,GAAG,CAAO,MAAc,EAAE,KAAc,EAAE,EAAE;gBAE7D,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK;oBAC1B,OAAO;gBACX,OAAO,MAAM,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YAC9C,CAAC,CAAA,CAAA;YAED,IAAI,aAAa,GAAgB,IAAI,CAAC;YACtC,IAAI,KAAK;gBACL,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEhD,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YACzB,IAAI,GAAG,GAAG,IAAI,CAAC;YAEf,GACA,CAAC;gBACG,IAAI,UAAU,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;gBACpD,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAC9B,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,MAAM,CAAC,GAAG,GAAG,UAAU,EAC3B,CAAC;oBACG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC;oBACxB,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;gBACrB,CAAC;;oBAEG,GAAG,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;gBAClD,IAAI,aAAa,EACjB,CAAC;oBACG,IAAI,aAAa,GAAG,KAAK;wBACrB,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;yBAC9C,IAAI,aAAa,IAAI,GAAG,EAC7B,CAAC;wBACG,IAAI,eAAe,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;wBACjE,IAAI,eAAe,GAAG,aAAa,CAAC;wBACpC,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC;wBAC/D,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;oBACpE,CAAC;yBACI,IAAI,GAAG,GAAG,aAAa;wBACxB,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;gBACpE,CAAC;;oBAEG,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;gBACnD,KAAK,GAAG,UAAU,CAAC;YACvB,CAAC,QACM,GAAG,GAAG,MAAM,CAAC,GAAG,EAAC;QAC5B,CAAC;KAAA;CACJ;AA9DD,4BA8DC"}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BillWatchAWSCommand = void 0;
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const BillWatchAWSEstimateHourlyCommand_1 = require("./BillWatchAWSEstimateHourlyCommand");
|
6
|
+
const BillWatchAWS_CreateForHourlyCommand_1 = require("./BillWatchAWS_CreateForHourlyCommand");
|
7
7
|
class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
8
8
|
constructor(argv) {
|
9
9
|
super(argv, {
|
10
|
-
"
|
11
|
-
"
|
10
|
+
"estimatehourly": BillWatchAWSEstimateHourlyCommand_1.BillWatchAWSEstimateHourlyCommand,
|
11
|
+
"_createforhourly": BillWatchAWS_CreateForHourlyCommand_1.BillWatchAWS_CreateForHourlyCommand,
|
12
12
|
});
|
13
13
|
}
|
14
14
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,
|
1
|
+
{"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2FAAwF;AACxF,+FAA4F;AAE5F,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,qEAAiC;YACnD,kBAAkB,EAAE,yEAAmC;SAC1D,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
|
package/dist/command/{BillWatchAWSEstimationCommand.d.ts → BillWatchAWSEstimateHourlyCommand.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BaseFinalCommand } from "namirasoft-node-cli";
|
2
|
-
export declare class
|
2
|
+
export declare class BillWatchAWSEstimateHourlyCommand extends BaseFinalCommand {
|
3
3
|
constructor(argv: string[]);
|
4
4
|
exec(): Promise<void>;
|
5
5
|
}
|
package/dist/command/{BillWatchAWSEstimationCommand.js → BillWatchAWSEstimateHourlyCommand.js}
RENAMED
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.BillWatchAWSEstimateHourlyCommand = void 0;
|
13
13
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
14
14
|
const namirasoft_core_1 = require("namirasoft-core");
|
15
15
|
const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
|
16
16
|
const namirasoft_account_1 = require("namirasoft-account");
|
17
|
-
class
|
17
|
+
class BillWatchAWSEstimateHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, [], [
|
20
20
|
{
|
@@ -25,6 +25,14 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
25
25
|
args: ["first_entity_created_at"],
|
26
26
|
defaults: [""]
|
27
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
|
+
},
|
28
36
|
{
|
29
37
|
name: "row_number",
|
30
38
|
short: "",
|
@@ -40,14 +48,6 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
40
48
|
optional: false,
|
41
49
|
args: ["active"],
|
42
50
|
defaults: [""]
|
43
|
-
},
|
44
|
-
{
|
45
|
-
name: "period",
|
46
|
-
short: "",
|
47
|
-
description: "Provides the value of 'period' in body",
|
48
|
-
optional: false,
|
49
|
-
args: ["period"],
|
50
|
-
defaults: [""]
|
51
51
|
}
|
52
52
|
]);
|
53
53
|
}
|
@@ -61,16 +61,16 @@ class BillWatchAWSEstimationCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
61
61
|
manager.setValue(token, false);
|
62
62
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
63
63
|
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
64
|
-
let ans = yield server.bill_watch_aws.
|
64
|
+
let ans = yield server.bill_watch_aws.EstimateHourly({
|
65
65
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
66
|
+
period: this.option_values.period,
|
66
67
|
row_number: this.option_values.row_number,
|
67
|
-
active: this.option_values.active
|
68
|
-
period: this.option_values.period
|
68
|
+
active: this.option_values.active
|
69
69
|
});
|
70
70
|
this.app.logger.success(JSON.stringify(ans));
|
71
71
|
});
|
72
72
|
}
|
73
73
|
}
|
74
|
-
exports.
|
74
|
+
exports.BillWatchAWSEstimateHourlyCommand = BillWatchAWSEstimateHourlyCommand;
|
75
75
|
;
|
76
|
-
//# sourceMappingURL=
|
76
|
+
//# sourceMappingURL=BillWatchAWSEstimateHourlyCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BillWatchAWSEstimateHourlyCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSEstimateHourlyCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,iCAAkC,SAAQ,sCAAgB;IAEnE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,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,cAAc,CAAC,cAAc,CAAC;gBACjD,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,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;AAzDD,8EAyDC;AAAA,CAAC"}
|