namirasoft-cost 1.4.6 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ns-sdkg-dir-deep +2 -2
- package/.ns-sdkg-file-keep +6 -6
- package/dist/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +7 -0
- package/dist/NamirasoftCostServerBillWatchAWS.js +9 -1
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +7 -0
- package/dist/NamirasoftCostServerBillWatchAzure.js +9 -1
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +7 -0
- package/dist/NamirasoftCostServerBillWatchGCP.js +9 -1
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/TimeUtil.d.ts +1 -1
- package/dist/TimeUtil.js +31 -20
- package/dist/TimeUtil.js.map +1 -1
- package/dist/command/BillWatchAWSCommand.js +2 -0
- package/dist/command/BillWatchAWSCommand.js.map +1 -1
- package/dist/command/BillWatchAWSEstimationCommand.js +9 -0
- package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchAWS_CreateForCommand.d.ts +5 -0
- package/dist/command/BillWatchAWS_CreateForCommand.js +67 -0
- package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -0
- package/dist/command/BillWatchAzureCommand.js +2 -0
- package/dist/command/BillWatchAzureCommand.js.map +1 -1
- package/dist/command/BillWatchAzureEstimationCommand.js +9 -0
- package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchAzure_CreateForCommand.d.ts +5 -0
- package/dist/command/BillWatchAzure_CreateForCommand.js +67 -0
- package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -0
- package/dist/command/BillWatchGCPCommand.js +2 -0
- package/dist/command/BillWatchGCPCommand.js.map +1 -1
- package/dist/command/BillWatchGCPEstimationCommand.js +9 -0
- package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchGCP_CreateForCommand.d.ts +5 -0
- package/dist/command/BillWatchGCP_CreateForCommand.js +67 -0
- package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -0
- package/dist/command/Cost_CreateForCommand.js +17 -17
- package/dist/command/Cost_CreateForCommand.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/CostMetaTable.d.ts +2 -2
- package/dist/meta/CostMetaTable.js +2 -2
- package/dist/meta/CostMetaTable.js.map +1 -1
- package/dist/row/CostCreateRow.d.ts +2 -2
- package/dist/row/CostRow.d.ts +2 -2
- package/package.json +27 -27
- package/src/NamirasoftCostServer.ts +47 -47
- package/src/NamirasoftCostServerBase.ts +29 -29
- package/src/NamirasoftCostServerBillWatchAWS.ts +46 -38
- package/src/NamirasoftCostServerBillWatchAzure.ts +46 -38
- package/src/NamirasoftCostServerBillWatchGCP.ts +46 -38
- package/src/NamirasoftCostServerCost.ts +49 -49
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerValue.ts +36 -36
- package/src/TimeUtil.ts +52 -52
- package/src/command/BillWatchAWSCommand.ts +33 -31
- package/src/command/BillWatchAWSEstimationCommand.ts +73 -64
- package/src/command/BillWatchAWS_CreateForCommand.ts +74 -0
- package/src/command/BillWatchAzureCommand.ts +33 -31
- package/src/command/BillWatchAzureEstimationCommand.ts +73 -64
- package/src/command/BillWatchAzure_CreateForCommand.ts +74 -0
- package/src/command/BillWatchGCPCommand.ts +33 -31
- package/src/command/BillWatchGCPEstimationCommand.ts +73 -64
- package/src/command/BillWatchGCP_CreateForCommand.ts +74 -0
- package/src/command/CostCommand.ts +33 -33
- package/src/command/CostListCommand.ts +44 -44
- package/src/command/Cost_CreateForCommand.ts +172 -172
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +42 -42
- package/src/enum/TrialUnit.ts +5 -5
- package/src/index.ts +55 -52
- package/src/meta/CostMetaTable.ts +79 -79
- package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
- package/src/row/CostCreateRow.ts +36 -36
- package/src/row/CostRow.ts +39 -39
- package/src/type/Estimation.ts +6 -6
- package/src/type/EstimationRow.ts +6 -6
- package/src/type/Period.ts +4 -4
- package/src/type/Trial.ts +6 -6
- package/src/type/TrialDuration.ts +6 -6
@@ -0,0 +1,67 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.BillWatchGCP_CreateForCommand = void 0;
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
15
|
+
const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
17
|
+
class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
18
|
+
constructor(argv) {
|
19
|
+
super(argv, ["user_id"], [
|
20
|
+
{
|
21
|
+
name: "first_watch_created_at",
|
22
|
+
short: "",
|
23
|
+
description: "Provides the value of 'first_watch_created_at' in body",
|
24
|
+
optional: true,
|
25
|
+
args: ["first_watch_created_at"],
|
26
|
+
defaults: [""]
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: "period",
|
30
|
+
short: "",
|
31
|
+
description: "Provides the value of 'period' in body",
|
32
|
+
optional: false,
|
33
|
+
args: ["period"],
|
34
|
+
defaults: [""]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: "active",
|
38
|
+
short: "",
|
39
|
+
description: "Provides the value of 'active' in body",
|
40
|
+
optional: false,
|
41
|
+
args: ["active"],
|
42
|
+
defaults: [""]
|
43
|
+
}
|
44
|
+
]);
|
45
|
+
}
|
46
|
+
exec() {
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
48
|
+
let token = this.app.storage.getNSAToken();
|
49
|
+
if (token == null)
|
50
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
51
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
52
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
53
|
+
manager.setValue(token, false);
|
54
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
55
|
+
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
56
|
+
let ans = yield server.bill_watch_g_c_p._CreateFor(this.arg_values[0], {
|
57
|
+
first_watch_created_at: this.option_values.first_watch_created_at,
|
58
|
+
period: this.option_values.period,
|
59
|
+
active: this.option_values.active
|
60
|
+
});
|
61
|
+
this.app.logger.success(JSON.stringify(ans));
|
62
|
+
});
|
63
|
+
}
|
64
|
+
}
|
65
|
+
exports.BillWatchGCP_CreateForCommand = BillWatchGCP_CreateForCommand;
|
66
|
+
;
|
67
|
+
//# sourceMappingURL=BillWatchGCP_CreateForCommand.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BillWatchGCP_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCP_CreateForComm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,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACnE,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;aACpC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,sEAgDC;AAAA,CAAC"}
|
@@ -18,43 +18,43 @@ class Cost_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
18
|
constructor(argv) {
|
19
19
|
super(argv, ["user_id"], [
|
20
20
|
{
|
21
|
-
name: "
|
21
|
+
name: "workspace_id",
|
22
22
|
short: "",
|
23
|
-
description: "Provides the value of '
|
23
|
+
description: "Provides the value of 'workspace_id' in body",
|
24
24
|
optional: false,
|
25
|
-
args: ["
|
25
|
+
args: ["workspace_id"],
|
26
26
|
defaults: [""]
|
27
27
|
},
|
28
28
|
{
|
29
|
-
name: "
|
29
|
+
name: "product_id",
|
30
30
|
short: "",
|
31
|
-
description: "Provides the value of '
|
31
|
+
description: "Provides the value of 'product_id' in body",
|
32
32
|
optional: false,
|
33
|
-
args: ["
|
33
|
+
args: ["product_id"],
|
34
34
|
defaults: [""]
|
35
35
|
},
|
36
36
|
{
|
37
|
-
name: "
|
37
|
+
name: "sales_item_id",
|
38
38
|
short: "",
|
39
|
-
description: "Provides the value of '
|
39
|
+
description: "Provides the value of 'sales_item_id' in body",
|
40
40
|
optional: false,
|
41
|
-
args: ["
|
41
|
+
args: ["sales_item_id"],
|
42
42
|
defaults: [""]
|
43
43
|
},
|
44
44
|
{
|
45
|
-
name: "
|
45
|
+
name: "offer_id",
|
46
46
|
short: "",
|
47
|
-
description: "Provides the value of '
|
47
|
+
description: "Provides the value of 'offer_id' in body",
|
48
48
|
optional: false,
|
49
|
-
args: ["
|
49
|
+
args: ["offer_id"],
|
50
50
|
defaults: [""]
|
51
51
|
},
|
52
52
|
{
|
53
|
-
name: "
|
53
|
+
name: "offer_item_id",
|
54
54
|
short: "",
|
55
|
-
description: "Provides the value of '
|
55
|
+
description: "Provides the value of 'offer_item_id' in body",
|
56
56
|
optional: false,
|
57
|
-
args: ["
|
57
|
+
args: ["offer_item_id"],
|
58
58
|
defaults: [""]
|
59
59
|
},
|
60
60
|
{
|
@@ -142,11 +142,11 @@ class Cost_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
142
142
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
143
143
|
let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
144
144
|
let ans = yield server.cost._CreateFor(this.arg_values[0], {
|
145
|
+
workspace_id: this.option_values.workspace_id,
|
146
|
+
product_id: this.option_values.product_id,
|
145
147
|
sales_item_id: this.option_values.sales_item_id,
|
146
148
|
offer_id: this.option_values.offer_id,
|
147
149
|
offer_item_id: this.option_values.offer_item_id,
|
148
|
-
workspace_id: this.option_values.workspace_id,
|
149
|
-
product_id: this.option_values.product_id,
|
150
150
|
resource_entity: this.option_values.resource_entity,
|
151
151
|
resource_id: this.option_values.resource_id,
|
152
152
|
usage_name: this.option_values.usage_name,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cost_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/Cost_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,qBAAsB,SAAQ,sCAAgB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"Cost_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/Cost_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,qBAAsB,SAAQ,sCAAgB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,cAAc,CAAC;gBACtB,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,eAAe;gBACrB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,+CAA+C;gBAC5D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,eAAe,CAAC;gBACvB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EA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export * from "./NamirasoftCostServerHealthz";
|
8
8
|
export * from "./NamirasoftCostServerValue";
|
9
|
+
export * from "./TimeUtil";
|
9
10
|
export * from "./command/BillWatchAWSCommand";
|
10
11
|
export * from "./command/BillWatchAWSEstimationCommand";
|
12
|
+
export * from "./command/BillWatchAWS_CreateForCommand";
|
11
13
|
export * from "./command/BillWatchAzureCommand";
|
12
14
|
export * from "./command/BillWatchAzureEstimationCommand";
|
15
|
+
export * from "./command/BillWatchAzure_CreateForCommand";
|
13
16
|
export * from "./command/BillWatchGCPCommand";
|
14
17
|
export * from "./command/BillWatchGCPEstimationCommand";
|
18
|
+
export * from "./command/BillWatchGCP_CreateForCommand";
|
15
19
|
export * from "./command/CostCommand";
|
16
20
|
export * from "./command/CostListCommand";
|
17
21
|
export * from "./command/Cost_CreateForCommand";
|
@@ -19,14 +23,13 @@ export * from "./command/HealthzCommand";
|
|
19
23
|
export * from "./command/HealthzGetCommand";
|
20
24
|
export * from "./command/ValueCommand";
|
21
25
|
export * from "./command/ValueListCommand";
|
26
|
+
export * from "./enum/TrialUnit";
|
22
27
|
export * from "./meta/CostMetaTable";
|
23
28
|
export * from "./meta/NamirasoftCostMetaDatabase";
|
24
29
|
export * from "./row/CostCreateRow";
|
25
30
|
export * from "./row/CostRow";
|
26
|
-
export * from "./enum/TrialUnit";
|
27
31
|
export * from "./type/Estimation";
|
28
32
|
export * from "./type/EstimationRow";
|
29
33
|
export * from "./type/Period";
|
30
34
|
export * from "./type/Trial";
|
31
35
|
export * from "./type/TrialDuration";
|
32
|
-
export * from "./TimeUtil";
|
package/dist/index.js
CHANGED
@@ -22,12 +22,16 @@ __exportStar(require("./NamirasoftCostServerBillWatchGCP"), exports);
|
|
22
22
|
__exportStar(require("./NamirasoftCostServerCost"), exports);
|
23
23
|
__exportStar(require("./NamirasoftCostServerHealthz"), exports);
|
24
24
|
__exportStar(require("./NamirasoftCostServerValue"), exports);
|
25
|
+
__exportStar(require("./TimeUtil"), exports);
|
25
26
|
__exportStar(require("./command/BillWatchAWSCommand"), exports);
|
26
27
|
__exportStar(require("./command/BillWatchAWSEstimationCommand"), exports);
|
28
|
+
__exportStar(require("./command/BillWatchAWS_CreateForCommand"), exports);
|
27
29
|
__exportStar(require("./command/BillWatchAzureCommand"), exports);
|
28
30
|
__exportStar(require("./command/BillWatchAzureEstimationCommand"), exports);
|
31
|
+
__exportStar(require("./command/BillWatchAzure_CreateForCommand"), exports);
|
29
32
|
__exportStar(require("./command/BillWatchGCPCommand"), exports);
|
30
33
|
__exportStar(require("./command/BillWatchGCPEstimationCommand"), exports);
|
34
|
+
__exportStar(require("./command/BillWatchGCP_CreateForCommand"), exports);
|
31
35
|
__exportStar(require("./command/CostCommand"), exports);
|
32
36
|
__exportStar(require("./command/CostListCommand"), exports);
|
33
37
|
__exportStar(require("./command/Cost_CreateForCommand"), exports);
|
@@ -35,15 +39,14 @@ __exportStar(require("./command/HealthzCommand"), exports);
|
|
35
39
|
__exportStar(require("./command/HealthzGetCommand"), exports);
|
36
40
|
__exportStar(require("./command/ValueCommand"), exports);
|
37
41
|
__exportStar(require("./command/ValueListCommand"), exports);
|
42
|
+
__exportStar(require("./enum/TrialUnit"), exports);
|
38
43
|
__exportStar(require("./meta/CostMetaTable"), exports);
|
39
44
|
__exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
|
40
45
|
__exportStar(require("./row/CostCreateRow"), exports);
|
41
46
|
__exportStar(require("./row/CostRow"), exports);
|
42
|
-
__exportStar(require("./enum/TrialUnit"), exports);
|
43
47
|
__exportStar(require("./type/Estimation"), exports);
|
44
48
|
__exportStar(require("./type/EstimationRow"), exports);
|
45
49
|
__exportStar(require("./type/Period"), exports);
|
46
50
|
__exportStar(require("./type/Trial"), exports);
|
47
51
|
__exportStar(require("./type/TrialDuration"), exports);
|
48
|
-
__exportStar(require("./TimeUtil"), exports);
|
49
52
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C;AAC9C,8DAA4C;AAC5C,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,4EAA0D;AAC1D,gEAA8C;AAC9C,0EAAwD;AACxD,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C;AAC9C,8DAA4C;AAC5C,6CAA2B;AAC3B,gEAA8C;AAC9C,0EAAwD;AACxD,0EAAwD;AACxD,kEAAgD;AAChD,4EAA0D;AAC1D,4EAA0D;AAC1D,gEAA8C;AAC9C,0EAAwD;AACxD,0EAAwD;AACxD,wDAAsC;AACtC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,uDAAqC;AACrC,oEAAkD;AAClD,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,uDAAqC"}
|
@@ -6,11 +6,11 @@ export declare class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer,
|
|
6
6
|
columns: {
|
7
7
|
id: BaseMetaColumn;
|
8
8
|
user_id: BaseMetaColumn;
|
9
|
+
workspace_id: BaseMetaColumn;
|
10
|
+
product_id: BaseMetaColumn;
|
9
11
|
sales_item_id: BaseMetaColumn;
|
10
12
|
offer_id: BaseMetaColumn;
|
11
13
|
offer_item_id: BaseMetaColumn;
|
12
|
-
workspace_id: BaseMetaColumn;
|
13
|
-
product_id: BaseMetaColumn;
|
14
14
|
resource_entity: BaseMetaColumn;
|
15
15
|
resource_id: BaseMetaColumn;
|
16
16
|
usage_name: BaseMetaColumn;
|
@@ -18,11 +18,11 @@ class CostMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
18
18
|
this.columns = {
|
19
19
|
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
20
20
|
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
21
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
22
|
+
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
21
23
|
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item ID", "String", true),
|
22
24
|
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer ID", "String", true),
|
23
25
|
offer_item_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_item_id", "Offer Item ID", "String", true),
|
24
|
-
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
25
|
-
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
26
26
|
resource_entity: new namirasoft_core_1.BaseMetaColumn(this, "resource_entity", "Resource Entity", "String", true),
|
27
27
|
resource_id: new namirasoft_core_1.BaseMetaColumn(this, "resource_id", "Resource ID", "String", true),
|
28
28
|
usage_name: new namirasoft_core_1.BaseMetaColumn(this, "usage_name", "Usage Name", "String", true),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CostMetaTable.js","sourceRoot":"","sources":["../../src/meta/CostMetaTable.ts"],"names":[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IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACnD,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC9D,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAtDD,sCAsDC;AAAA,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
export type CostCreateRow = {
|
2
|
+
workspace_id: string;
|
3
|
+
product_id: string;
|
2
4
|
sales_item_id: string;
|
3
5
|
offer_id: string;
|
4
6
|
offer_item_id: string;
|
5
|
-
workspace_id: string;
|
6
|
-
product_id: string;
|
7
7
|
resource_entity: string;
|
8
8
|
resource_id: string;
|
9
9
|
usage_name: string;
|
package/dist/row/CostRow.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
export type CostRow = {
|
2
2
|
id: string;
|
3
3
|
user_id: string;
|
4
|
+
workspace_id: string;
|
5
|
+
product_id: string;
|
4
6
|
sales_item_id: string;
|
5
7
|
offer_id: string;
|
6
8
|
offer_item_id: string;
|
7
|
-
workspace_id: string;
|
8
|
-
product_id: string;
|
9
9
|
resource_entity: string;
|
10
10
|
resource_id: string;
|
11
11
|
usage_name: string;
|
package/package.json
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
{
|
2
|
-
"name": "namirasoft-cost",
|
3
|
-
"title": "Namirasoft Cost NPM Package",
|
4
|
-
"description": "Namira Software Corporation Cost NPM Package",
|
5
|
-
"icon": "logo.png",
|
6
|
-
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
7
|
-
"language": "ts",
|
8
|
-
"framework": "npm",
|
9
|
-
"application": "package",
|
10
|
-
"private": false,
|
11
|
-
"version": "1.4.
|
12
|
-
"author": "Amir Abolhasani",
|
13
|
-
"license": "MIT",
|
14
|
-
"main": "./dist/index.js",
|
15
|
-
"types": "./dist/index.d.ts",
|
16
|
-
"scripts": {
|
17
|
-
"build": ""
|
18
|
-
},
|
19
|
-
"dependencies": {
|
20
|
-
"namirasoft-core": "^1.4.71",
|
21
|
-
"namirasoft-site": "^1.4.
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
23
|
-
"namirasoft-account": "^1.4.72"
|
24
|
-
},
|
25
|
-
"bin": {
|
26
|
-
"ns-cost": "./dist/command/cli.js"
|
27
|
-
}
|
1
|
+
{
|
2
|
+
"name": "namirasoft-cost",
|
3
|
+
"title": "Namirasoft Cost NPM Package",
|
4
|
+
"description": "Namira Software Corporation Cost NPM Package",
|
5
|
+
"icon": "logo.png",
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/cost/logo/base.png",
|
7
|
+
"language": "ts",
|
8
|
+
"framework": "npm",
|
9
|
+
"application": "package",
|
10
|
+
"private": false,
|
11
|
+
"version": "1.4.8",
|
12
|
+
"author": "Amir Abolhasani",
|
13
|
+
"license": "MIT",
|
14
|
+
"main": "./dist/index.js",
|
15
|
+
"types": "./dist/index.d.ts",
|
16
|
+
"scripts": {
|
17
|
+
"build": ""
|
18
|
+
},
|
19
|
+
"dependencies": {
|
20
|
+
"namirasoft-core": "^1.4.71",
|
21
|
+
"namirasoft-site": "^1.4.37",
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
23
|
+
"namirasoft-account": "^1.4.72"
|
24
|
+
},
|
25
|
+
"bin": {
|
26
|
+
"ns-cost": "./dist/command/cli.js"
|
27
|
+
}
|
28
28
|
}
|
@@ -1,48 +1,48 @@
|
|
1
|
-
/****************************************************************/
|
2
|
-
/* */
|
3
|
-
/* This is an Auto-Generated File */
|
4
|
-
/* Made By */
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
6
|
-
/* */
|
7
|
-
/****************************************************************/
|
8
|
-
/****************************************************************/
|
9
|
-
/* */
|
10
|
-
/* Please do not make any change to this file */
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
12
|
-
/* */
|
13
|
-
/****************************************************************/
|
14
|
-
/****************************************************************/
|
15
|
-
/* */
|
16
|
-
/* Namira Software Corporation */
|
17
|
-
/* https://namirasoft.com */
|
18
|
-
/* */
|
19
|
-
/****************************************************************/
|
20
|
-
|
21
|
-
import { NSABaseServer } from "namirasoft-account";
|
22
|
-
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
23
|
-
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
24
|
-
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
25
|
-
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
26
|
-
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
27
|
-
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
28
|
-
import { TokenManager } from "namirasoft-account";
|
29
|
-
|
30
|
-
export class NamirasoftCostServer extends NSABaseServer
|
31
|
-
{
|
32
|
-
healthz: NamirasoftCostServerHealthz;
|
33
|
-
value: NamirasoftCostServerValue;
|
34
|
-
bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
|
35
|
-
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
36
|
-
bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
|
37
|
-
cost: NamirasoftCostServerCost;
|
38
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
39
|
-
{
|
40
|
-
super(base_url, `1.4.
|
41
|
-
this.healthz = new NamirasoftCostServerHealthz(this);
|
42
|
-
this.value = new NamirasoftCostServerValue(this);
|
43
|
-
this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
|
44
|
-
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
45
|
-
this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
|
46
|
-
this.cost = new NamirasoftCostServerCost(this);
|
47
|
-
}
|
1
|
+
/****************************************************************/
|
2
|
+
/* */
|
3
|
+
/* This is an Auto-Generated File */
|
4
|
+
/* Made By */
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
6
|
+
/* */
|
7
|
+
/****************************************************************/
|
8
|
+
/****************************************************************/
|
9
|
+
/* */
|
10
|
+
/* Please do not make any change to this file */
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
12
|
+
/* */
|
13
|
+
/****************************************************************/
|
14
|
+
/****************************************************************/
|
15
|
+
/* */
|
16
|
+
/* Namira Software Corporation */
|
17
|
+
/* https://namirasoft.com */
|
18
|
+
/* */
|
19
|
+
/****************************************************************/
|
20
|
+
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
22
|
+
import { NamirasoftCostServerBillWatchAWS } from "./NamirasoftCostServerBillWatchAWS";
|
23
|
+
import { NamirasoftCostServerBillWatchAzure } from "./NamirasoftCostServerBillWatchAzure";
|
24
|
+
import { NamirasoftCostServerBillWatchGCP } from "./NamirasoftCostServerBillWatchGCP";
|
25
|
+
import { NamirasoftCostServerCost } from "./NamirasoftCostServerCost";
|
26
|
+
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
27
|
+
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
28
|
+
import { TokenManager } from "namirasoft-account";
|
29
|
+
|
30
|
+
export class NamirasoftCostServer extends NSABaseServer
|
31
|
+
{
|
32
|
+
healthz: NamirasoftCostServerHealthz;
|
33
|
+
value: NamirasoftCostServerValue;
|
34
|
+
bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
|
35
|
+
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
36
|
+
bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
|
37
|
+
cost: NamirasoftCostServerCost;
|
38
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
39
|
+
{
|
40
|
+
super(base_url, `1.4.8`, manager, onError);
|
41
|
+
this.healthz = new NamirasoftCostServerHealthz(this);
|
42
|
+
this.value = new NamirasoftCostServerValue(this);
|
43
|
+
this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
|
44
|
+
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
45
|
+
this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
|
46
|
+
this.cost = new NamirasoftCostServerCost(this);
|
47
|
+
}
|
48
48
|
};
|
@@ -1,30 +1,30 @@
|
|
1
|
-
/****************************************************************/
|
2
|
-
/* */
|
3
|
-
/* This is an Auto-Generated File */
|
4
|
-
/* Made By */
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
6
|
-
/* */
|
7
|
-
/****************************************************************/
|
8
|
-
/****************************************************************/
|
9
|
-
/* */
|
10
|
-
/* Please do not make any change to this file */
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
12
|
-
/* */
|
13
|
-
/****************************************************************/
|
14
|
-
/****************************************************************/
|
15
|
-
/* */
|
16
|
-
/* Namira Software Corporation */
|
17
|
-
/* https://namirasoft.com */
|
18
|
-
/* */
|
19
|
-
/****************************************************************/
|
20
|
-
|
21
|
-
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
22
|
-
|
23
|
-
export class NamirasoftCostServerBase
|
24
|
-
{
|
25
|
-
public server: NamirasoftCostServer;
|
26
|
-
constructor(server: NamirasoftCostServer)
|
27
|
-
{
|
28
|
-
this.server = server;
|
29
|
-
}
|
1
|
+
/****************************************************************/
|
2
|
+
/* */
|
3
|
+
/* This is an Auto-Generated File */
|
4
|
+
/* Made By */
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
6
|
+
/* */
|
7
|
+
/****************************************************************/
|
8
|
+
/****************************************************************/
|
9
|
+
/* */
|
10
|
+
/* Please do not make any change to this file */
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
12
|
+
/* */
|
13
|
+
/****************************************************************/
|
14
|
+
/****************************************************************/
|
15
|
+
/* */
|
16
|
+
/* Namira Software Corporation */
|
17
|
+
/* https://namirasoft.com */
|
18
|
+
/* */
|
19
|
+
/****************************************************************/
|
20
|
+
|
21
|
+
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
22
|
+
|
23
|
+
export class NamirasoftCostServerBase
|
24
|
+
{
|
25
|
+
public server: NamirasoftCostServer;
|
26
|
+
constructor(server: NamirasoftCostServer)
|
27
|
+
{
|
28
|
+
this.server = server;
|
29
|
+
}
|
30
30
|
};
|
@@ -1,39 +1,47 @@
|
|
1
|
-
/****************************************************************/
|
2
|
-
/* */
|
3
|
-
/* This is an Auto-Generated File */
|
4
|
-
/* Made By */
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
6
|
-
/* */
|
7
|
-
/****************************************************************/
|
8
|
-
/****************************************************************/
|
9
|
-
/* */
|
10
|
-
/* Please do not make any change to this file */
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
12
|
-
/* */
|
13
|
-
/****************************************************************/
|
14
|
-
/****************************************************************/
|
15
|
-
/* */
|
16
|
-
/* Namira Software Corporation */
|
17
|
-
/* https://namirasoft.com */
|
18
|
-
/* */
|
19
|
-
/****************************************************************/
|
20
|
-
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
1
|
+
/****************************************************************/
|
2
|
+
/* */
|
3
|
+
/* This is an Auto-Generated File */
|
4
|
+
/* Made By */
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
6
|
+
/* */
|
7
|
+
/****************************************************************/
|
8
|
+
/****************************************************************/
|
9
|
+
/* */
|
10
|
+
/* Please do not make any change to this file */
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
12
|
+
/* */
|
13
|
+
/****************************************************************/
|
14
|
+
/****************************************************************/
|
15
|
+
/* */
|
16
|
+
/* Namira Software Corporation */
|
17
|
+
/* https://namirasoft.com */
|
18
|
+
/* */
|
19
|
+
/****************************************************************/
|
20
|
+
|
21
|
+
import { CostRow } from "./row/CostRow";
|
22
|
+
import { Estimation } from "./type/Estimation";
|
23
|
+
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
24
|
+
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
25
|
+
import { Period } from "./type/Period";
|
26
|
+
|
27
|
+
export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
|
28
|
+
{
|
29
|
+
constructor(server: NamirasoftCostServer)
|
30
|
+
{
|
31
|
+
super(server);
|
32
|
+
this.Estimation = this.Estimation.bind(this);
|
33
|
+
this._CreateFor = this._CreateFor.bind(this);
|
34
|
+
}
|
35
|
+
async Estimation(body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<Estimation>
|
36
|
+
{
|
37
|
+
let path = `/estimation/bill-watch/aws`;
|
38
|
+
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
|
+
return data;
|
40
|
+
}
|
41
|
+
async _CreateFor(user_id: string, body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<CostRow>
|
42
|
+
{
|
43
|
+
let path = `/application/user/${user_id}/cost/bill-watch/aws`;
|
44
|
+
let { data } = await this.server._post<CostRow>(path, {}, body);
|
45
|
+
return data;
|
46
|
+
}
|
39
47
|
};
|