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
@@ -0,0 +1,94 @@
|
|
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.FieldCategory_CreateForHourlyCommand = void 0;
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
15
|
+
const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
17
|
+
class FieldCategory_CreateForHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
+
constructor(argv) {
|
19
|
+
super(argv, ["user_id"], [
|
20
|
+
{
|
21
|
+
name: "first_entity_created_at",
|
22
|
+
short: "",
|
23
|
+
description: "Provides the value of 'first_entity_created_at' in body",
|
24
|
+
optional: true,
|
25
|
+
args: ["first_entity_created_at"],
|
26
|
+
defaults: [""]
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: "period",
|
30
|
+
short: "",
|
31
|
+
description: "Provides the value of 'period' in body",
|
32
|
+
optional: false,
|
33
|
+
args: ["period"],
|
34
|
+
defaults: [""]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: "row_number",
|
38
|
+
short: "",
|
39
|
+
description: "Provides the value of 'row_number' in body",
|
40
|
+
optional: false,
|
41
|
+
args: ["row_number"],
|
42
|
+
defaults: [""]
|
43
|
+
},
|
44
|
+
{
|
45
|
+
name: "active",
|
46
|
+
short: "",
|
47
|
+
description: "Provides the value of 'active' in body",
|
48
|
+
optional: false,
|
49
|
+
args: ["active"],
|
50
|
+
defaults: [""]
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: "workspace_id",
|
54
|
+
short: "",
|
55
|
+
description: "Provides the value of 'workspace_id' in body",
|
56
|
+
optional: false,
|
57
|
+
args: ["workspace_id"],
|
58
|
+
defaults: [""]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: "resource_id",
|
62
|
+
short: "",
|
63
|
+
description: "Provides the value of 'resource_id' in body",
|
64
|
+
optional: false,
|
65
|
+
args: ["resource_id"],
|
66
|
+
defaults: [""]
|
67
|
+
}
|
68
|
+
]);
|
69
|
+
}
|
70
|
+
exec() {
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
72
|
+
let token = this.app.storage.getNSAToken();
|
73
|
+
if (token == null)
|
74
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
75
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
76
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
77
|
+
manager.setValue(token, false);
|
78
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
79
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
80
|
+
let ans = yield server.field_category._CreateForHourly(this.arg_values[0], {
|
81
|
+
first_entity_created_at: this.option_values.first_entity_created_at,
|
82
|
+
period: this.option_values.period,
|
83
|
+
row_number: this.option_values.row_number,
|
84
|
+
active: this.option_values.active,
|
85
|
+
workspace_id: this.option_values.workspace_id,
|
86
|
+
resource_id: this.option_values.resource_id
|
87
|
+
});
|
88
|
+
this.app.logger.success(JSON.stringify(ans));
|
89
|
+
});
|
90
|
+
}
|
91
|
+
}
|
92
|
+
exports.FieldCategory_CreateForHourlyCommand = FieldCategory_CreateForHourlyCommand;
|
93
|
+
;
|
94
|
+
//# sourceMappingURL=FieldCategory_CreateForHourlyCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldCategory_CreateForHourlyCommand.js","sourceRoot":"","sources":["../../src/command/FieldCategory_CreateForHourlyCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,oCAAqC,SAAQ,sCAAgB;IAEtE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;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;aACj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AY,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,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACvE,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;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;AA3ED,oFA2EC;AAAA,CAAC"}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FieldFieldCommand = void 0;
|
4
4
|
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const FieldFieldEstimateHourlyCommand_1 = require("./FieldFieldEstimateHourlyCommand");
|
6
|
+
const FieldField_CreateForHourlyCommand_1 = require("./FieldField_CreateForHourlyCommand");
|
7
7
|
class FieldFieldCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
8
8
|
constructor(argv) {
|
9
9
|
super(argv, {
|
10
|
-
"
|
11
|
-
"
|
10
|
+
"estimatehourly": FieldFieldEstimateHourlyCommand_1.FieldFieldEstimateHourlyCommand,
|
11
|
+
"_createforhourly": FieldField_CreateForHourlyCommand_1.FieldField_CreateForHourlyCommand,
|
12
12
|
});
|
13
13
|
}
|
14
14
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FieldFieldCommand.js","sourceRoot":"","sources":["../../src/command/FieldFieldCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D
|
1
|
+
{"version":3,"file":"FieldFieldCommand.js","sourceRoot":"","sources":["../../src/command/FieldFieldCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uFAAoF;AACpF,2FAAwF;AAExF,MAAa,iBAAkB,SAAQ,0CAAoB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,iEAA+B;YACjD,kBAAkB,EAAE,qEAAiC;SACxD,CAAC,CAAC;IACP,CAAC;CACJ;AATD,8CASC;AAAA,CAAC"}
|
package/dist/command/{BillWatchAzureEstimationCommand.d.ts → FieldFieldEstimateHourlyCommand.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BaseFinalCommand } from "namirasoft-node-cli";
|
2
|
-
export declare class
|
2
|
+
export declare class FieldFieldEstimateHourlyCommand extends BaseFinalCommand {
|
3
3
|
constructor(argv: string[]);
|
4
4
|
exec(): Promise<void>;
|
5
5
|
}
|
package/dist/command/{BillWatchAzureEstimationCommand.js → FieldFieldEstimateHourlyCommand.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.FieldFieldEstimateHourlyCommand = 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 FieldFieldEstimateHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, [], [
|
20
20
|
{
|
@@ -25,6 +25,14 @@ class BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
|
|
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 BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
|
|
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 BillWatchAzureEstimationCommand extends namirasoft_node_cli_1.BaseFinalCom
|
|
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.
|
64
|
+
let ans = yield server.field_field.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.FieldFieldEstimateHourlyCommand = FieldFieldEstimateHourlyCommand;
|
75
75
|
;
|
76
|
-
//# sourceMappingURL=
|
76
|
+
//# sourceMappingURL=FieldFieldEstimateHourlyCommand.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"FieldFieldEstimateHourlyCommand.js","sourceRoot":"","sources":["../../src/command/FieldFieldEstimateHourlyCommand.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,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,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,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,0EAyDC;AAAA,CAAC"}
|
package/dist/command/{BillWatchAWS_CreateForCommand.js → FieldField_CreateForHourlyCommand.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.FieldField_CreateForHourlyCommand = 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 FieldField_CreateForHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, ["user_id"], [
|
20
20
|
{
|
@@ -25,6 +25,14 @@ class BillWatchAWS_CreateForCommand 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: "",
|
@@ -41,14 +49,6 @@ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
41
49
|
args: ["active"],
|
42
50
|
defaults: [""]
|
43
51
|
},
|
44
|
-
{
|
45
|
-
name: "period",
|
46
|
-
short: "",
|
47
|
-
description: "Provides the value of 'period' in body",
|
48
|
-
optional: false,
|
49
|
-
args: ["period"],
|
50
|
-
defaults: [""]
|
51
|
-
},
|
52
52
|
{
|
53
53
|
name: "workspace_id",
|
54
54
|
short: "",
|
@@ -77,11 +77,11 @@ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
77
77
|
manager.setValue(token, false);
|
78
78
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
79
79
|
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
80
|
-
let ans = yield server.
|
80
|
+
let ans = yield server.field_field._CreateForHourly(this.arg_values[0], {
|
81
81
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
82
|
+
period: this.option_values.period,
|
82
83
|
row_number: this.option_values.row_number,
|
83
84
|
active: this.option_values.active,
|
84
|
-
period: this.option_values.period,
|
85
85
|
workspace_id: this.option_values.workspace_id,
|
86
86
|
resource_id: this.option_values.resource_id
|
87
87
|
});
|
@@ -89,6 +89,6 @@ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
89
89
|
});
|
90
90
|
}
|
91
91
|
}
|
92
|
-
exports.
|
92
|
+
exports.FieldField_CreateForHourlyCommand = FieldField_CreateForHourlyCommand;
|
93
93
|
;
|
94
|
-
//# sourceMappingURL=
|
94
|
+
//# sourceMappingURL=FieldField_CreateForHourlyCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldField_CreateForHourlyCommand.js","sourceRoot":"","sources":["../../src/command/FieldField_CreateForHourlyCommand.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,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,E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_1 = require("namirasoft-node-cli");
|
5
|
+
const SecretSecretEstimateHourlyCommand_1 = require("./SecretSecretEstimateHourlyCommand");
|
6
|
+
const SecretSecretEstimateReadCommand_1 = require("./SecretSecretEstimateReadCommand");
|
7
|
+
const SecretSecret_CreateForHourlyCommand_1 = require("./SecretSecret_CreateForHourlyCommand");
|
8
|
+
const SecretSecret_CreateForReadCommand_1 = require("./SecretSecret_CreateForReadCommand");
|
9
|
+
class SecretSecretCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
10
|
+
constructor(argv) {
|
11
|
+
super(argv, {
|
12
|
+
"estimatehourly": SecretSecretEstimateHourlyCommand_1.SecretSecretEstimateHourlyCommand,
|
13
|
+
"_createforhourly": SecretSecret_CreateForHourlyCommand_1.SecretSecret_CreateForHourlyCommand,
|
14
|
+
"estimateread": SecretSecretEstimateReadCommand_1.SecretSecretEstimateReadCommand,
|
15
|
+
"_createforread": SecretSecret_CreateForReadCommand_1.SecretSecret_CreateForReadCommand,
|
16
|
+
});
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.SecretSecretCommand = SecretSecretCommand;
|
20
|
+
;
|
21
|
+
//# sourceMappingURL=SecretSecretCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecretCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2FAAwF;AACxF,uFAAoF;AACpF,+FAA4F;AAC5F,2FAAwF;AAExF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,gBAAgB,EAAE,qEAAiC;YACnD,kBAAkB,EAAE,yEAAmC;YACvD,cAAc,EAAE,iEAA+B;YAC/C,gBAAgB,EAAE,qEAAiC;SACtD,CAAC,CAAC;IACP,CAAC;CACJ;AAXD,kDAWC;AAAA,CAAC"}
|
package/dist/command/{FieldCategoryEstimationCommand.js → SecretSecretEstimateHourlyCommand.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.SecretSecretEstimateHourlyCommand = 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 SecretSecretEstimateHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, [], [
|
20
20
|
{
|
@@ -25,6 +25,14 @@ class FieldCategoryEstimationCommand extends namirasoft_node_cli_1.BaseFinalComm
|
|
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 FieldCategoryEstimationCommand extends namirasoft_node_cli_1.BaseFinalComm
|
|
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 FieldCategoryEstimationCommand extends namirasoft_node_cli_1.BaseFinalComm
|
|
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.
|
64
|
+
let ans = yield server.secret_secret.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.SecretSecretEstimateHourlyCommand = SecretSecretEstimateHourlyCommand;
|
75
75
|
;
|
76
|
-
//# sourceMappingURL=
|
76
|
+
//# sourceMappingURL=SecretSecretEstimateHourlyCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecretEstimateHourlyCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretEstimateHourlyCommand.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;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ACjC,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"}
|
package/dist/command/{BillWatchAzure_CreateForCommand.d.ts → SecretSecretEstimateReadCommand.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BaseFinalCommand } from "namirasoft-node-cli";
|
2
|
-
export declare class
|
2
|
+
export declare class SecretSecretEstimateReadCommand extends BaseFinalCommand {
|
3
3
|
constructor(argv: string[]);
|
4
4
|
exec(): Promise<void>;
|
5
5
|
}
|
@@ -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.SecretSecretEstimateReadCommand = 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 SecretSecretEstimateReadCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, [], [
|
20
20
|
{
|
@@ -26,27 +26,27 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
|
|
26
26
|
defaults: [""]
|
27
27
|
},
|
28
28
|
{
|
29
|
-
name: "
|
29
|
+
name: "period",
|
30
30
|
short: "",
|
31
|
-
description: "Provides the value of '
|
31
|
+
description: "Provides the value of 'period' in body",
|
32
32
|
optional: false,
|
33
|
-
args: ["
|
33
|
+
args: ["period"],
|
34
34
|
defaults: [""]
|
35
35
|
},
|
36
36
|
{
|
37
|
-
name: "
|
37
|
+
name: "total",
|
38
38
|
short: "",
|
39
|
-
description: "Provides the value of '
|
39
|
+
description: "Provides the value of 'total' in body",
|
40
40
|
optional: false,
|
41
|
-
args: ["
|
41
|
+
args: ["total"],
|
42
42
|
defaults: [""]
|
43
43
|
},
|
44
44
|
{
|
45
|
-
name: "
|
45
|
+
name: "count",
|
46
46
|
short: "",
|
47
|
-
description: "Provides the value of '
|
47
|
+
description: "Provides the value of 'count' in body",
|
48
48
|
optional: false,
|
49
|
-
args: ["
|
49
|
+
args: ["count"],
|
50
50
|
defaults: [""]
|
51
51
|
}
|
52
52
|
]);
|
@@ -61,16 +61,16 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
|
|
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.
|
64
|
+
let ans = yield server.secret_secret.EstimateRead({
|
65
65
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
period: this.option_values.period,
|
67
|
+
total: this.option_values.total,
|
68
|
+
count: this.option_values.count
|
69
69
|
});
|
70
70
|
this.app.logger.success(JSON.stringify(ans));
|
71
71
|
});
|
72
72
|
}
|
73
73
|
}
|
74
|
-
exports.
|
74
|
+
exports.SecretSecretEstimateReadCommand = SecretSecretEstimateReadCommand;
|
75
75
|
;
|
76
|
-
//# sourceMappingURL=
|
76
|
+
//# sourceMappingURL=SecretSecretEstimateReadCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecretEstimateReadCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecretEstimateReadCommand.ts"],"names":[],"mappings":";;;;;;;;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,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,aAAa,CAAC,YAAY,CAAC;gBAC9C,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,uBAAuB;gBACnE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;aAClC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,0EAyDC;AAAA,CAAC"}
|
package/dist/command/{BillWatchGCP_CreateForCommand.js → SecretSecret_CreateForHourlyCommand.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.SecretSecret_CreateForHourlyCommand = 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 SecretSecret_CreateForHourlyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, ["user_id"], [
|
20
20
|
{
|
@@ -25,6 +25,14 @@ class BillWatchGCP_CreateForCommand 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: "",
|
@@ -41,14 +49,6 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
41
49
|
args: ["active"],
|
42
50
|
defaults: [""]
|
43
51
|
},
|
44
|
-
{
|
45
|
-
name: "period",
|
46
|
-
short: "",
|
47
|
-
description: "Provides the value of 'period' in body",
|
48
|
-
optional: false,
|
49
|
-
args: ["period"],
|
50
|
-
defaults: [""]
|
51
|
-
},
|
52
52
|
{
|
53
53
|
name: "workspace_id",
|
54
54
|
short: "",
|
@@ -77,11 +77,11 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
77
77
|
manager.setValue(token, false);
|
78
78
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
79
79
|
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
80
|
-
let ans = yield server.
|
80
|
+
let ans = yield server.secret_secret._CreateForHourly(this.arg_values[0], {
|
81
81
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
82
|
+
period: this.option_values.period,
|
82
83
|
row_number: this.option_values.row_number,
|
83
84
|
active: this.option_values.active,
|
84
|
-
period: this.option_values.period,
|
85
85
|
workspace_id: this.option_values.workspace_id,
|
86
86
|
resource_id: this.option_values.resource_id
|
87
87
|
});
|
@@ -89,6 +89,6 @@ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalComma
|
|
89
89
|
});
|
90
90
|
}
|
91
91
|
}
|
92
|
-
exports.
|
92
|
+
exports.SecretSecret_CreateForHourlyCommand = SecretSecret_CreateForHourlyCommand;
|
93
93
|
;
|
94
|
-
//# sourceMappingURL=
|
94
|
+
//# sourceMappingURL=SecretSecret_CreateForHourlyCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SecretSecret_CreateForHourlyCommand.js","sourceRoot":"","sources":["../../src/command/SecretSecret_CreateForHourlyCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,mCAAoC,SAAQ,sCAAgB;IAErE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;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;g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