namirasoft-cost 1.4.15 → 1.4.17
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-file-keep +1 -0
- package/dist/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -2
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -2
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -2
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -2
- package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
- package/dist/NamirasoftCostServerFieldField.d.ts +4 -2
- package/dist/NamirasoftCostServerFieldField.js.map +1 -1
- package/dist/command/BillWatchAWSEstimationCommand.js +14 -5
- package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchAWS_CreateForCommand.js +13 -4
- package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -1
- package/dist/command/BillWatchAzureEstimationCommand.js +14 -5
- package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchAzure_CreateForCommand.js +13 -4
- package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -1
- package/dist/command/BillWatchGCPEstimationCommand.js +14 -5
- package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
- package/dist/command/BillWatchGCP_CreateForCommand.js +13 -4
- package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -1
- package/dist/command/Cost_CreateForCommand.js +10 -1
- package/dist/command/Cost_CreateForCommand.js.map +1 -1
- package/dist/command/FieldCategoryEstimationCommand.js +14 -5
- package/dist/command/FieldCategoryEstimationCommand.js.map +1 -1
- package/dist/command/FieldCategory_CreateForCommand.js +13 -4
- package/dist/command/FieldCategory_CreateForCommand.js.map +1 -1
- package/dist/command/FieldFieldEstimationCommand.js +14 -5
- package/dist/command/FieldFieldEstimationCommand.js.map +1 -1
- package/dist/command/FieldField_CreateForCommand.js +13 -4
- package/dist/command/FieldField_CreateForCommand.js.map +1 -1
- package/dist/meta/CostMetaTable.d.ts +1 -0
- package/dist/meta/CostMetaTable.js +1 -0
- package/dist/meta/CostMetaTable.js.map +1 -1
- package/dist/row/CostCreateRow.d.ts +1 -0
- package/dist/row/CostRow.d.ts +1 -0
- package/dist/type/EstimationRow.d.ts +2 -1
- package/package.json +1 -1
- package/src/NamirasoftCostServer.ts +1 -1
- package/src/NamirasoftCostServerBillWatchAWS.ts +2 -2
- package/src/NamirasoftCostServerBillWatchAzure.ts +2 -2
- package/src/NamirasoftCostServerBillWatchGCP.ts +2 -2
- package/src/NamirasoftCostServerFieldCategory.ts +2 -2
- package/src/NamirasoftCostServerFieldField.ts +2 -2
- package/src/command/BillWatchAWSEstimationCommand.ts +14 -5
- package/src/command/BillWatchAWS_CreateForCommand.ts +13 -4
- package/src/command/BillWatchAzureEstimationCommand.ts +14 -5
- package/src/command/BillWatchAzure_CreateForCommand.ts +13 -4
- package/src/command/BillWatchGCPEstimationCommand.ts +14 -5
- package/src/command/BillWatchGCP_CreateForCommand.ts +13 -4
- package/src/command/Cost_CreateForCommand.ts +10 -1
- package/src/command/FieldCategoryEstimationCommand.ts +14 -5
- package/src/command/FieldCategory_CreateForCommand.ts +13 -4
- package/src/command/FieldFieldEstimationCommand.ts +14 -5
- package/src/command/FieldField_CreateForCommand.ts +13 -4
- package/src/meta/CostMetaTable.ts +2 -0
- package/src/row/CostCreateRow.ts +1 -0
- package/src/row/CostRow.ts +1 -0
- package/src/type/EstimationRow.ts +7 -7
@@ -37,11 +37,11 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
39
|
{
|
40
|
-
name: "
|
40
|
+
name: "number",
|
41
41
|
short: "",
|
42
|
-
description: "Provides the value of '
|
42
|
+
description: "Provides the value of 'number' in body",
|
43
43
|
optional: false,
|
44
|
-
args: ["
|
44
|
+
args: ["number"],
|
45
45
|
defaults: [""]
|
46
46
|
},
|
47
47
|
{
|
@@ -52,6 +52,14 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
52
52
|
args: ["active"],
|
53
53
|
defaults: [""]
|
54
54
|
},
|
55
|
+
{
|
56
|
+
name: "period",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'period' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["period"],
|
61
|
+
defaults: [""]
|
62
|
+
},
|
55
63
|
{
|
56
64
|
name: "workspace_id",
|
57
65
|
short: "",
|
@@ -82,8 +90,9 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
82
90
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
83
91
|
let ans = await server.field_category._CreateFor(this.arg_values[0], {
|
84
92
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
85
|
-
|
93
|
+
number: this.option_values.number,
|
86
94
|
active: this.option_values.active,
|
95
|
+
period: this.option_values.period,
|
87
96
|
workspace_id: this.option_values.workspace_id,
|
88
97
|
resource_id: this.option_values.resource_id
|
89
98
|
});
|
@@ -37,11 +37,11 @@ export class FieldFieldEstimationCommand extends BaseFinalCommand
|
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
39
|
{
|
40
|
-
name: "
|
40
|
+
name: "number",
|
41
41
|
short: "",
|
42
|
-
description: "Provides the value of '
|
42
|
+
description: "Provides the value of 'number' in body",
|
43
43
|
optional: false,
|
44
|
-
args: ["
|
44
|
+
args: ["number"],
|
45
45
|
defaults: [""]
|
46
46
|
},
|
47
47
|
{
|
@@ -51,6 +51,14 @@ export class FieldFieldEstimationCommand extends BaseFinalCommand
|
|
51
51
|
optional: false,
|
52
52
|
args: ["active"],
|
53
53
|
defaults: [""]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "period",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'period' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["period"],
|
61
|
+
defaults: [""]
|
54
62
|
}
|
55
63
|
]);
|
56
64
|
}
|
@@ -66,8 +74,9 @@ export class FieldFieldEstimationCommand extends BaseFinalCommand
|
|
66
74
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
67
75
|
let ans = await server.field_field.Estimation({
|
68
76
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
69
|
-
|
70
|
-
active: this.option_values.active
|
77
|
+
number: this.option_values.number,
|
78
|
+
active: this.option_values.active,
|
79
|
+
period: this.option_values.period
|
71
80
|
});
|
72
81
|
this.app.logger.success(JSON.stringify(ans));
|
73
82
|
}
|
@@ -37,11 +37,11 @@ export class FieldField_CreateForCommand extends BaseFinalCommand
|
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
39
|
{
|
40
|
-
name: "
|
40
|
+
name: "number",
|
41
41
|
short: "",
|
42
|
-
description: "Provides the value of '
|
42
|
+
description: "Provides the value of 'number' in body",
|
43
43
|
optional: false,
|
44
|
-
args: ["
|
44
|
+
args: ["number"],
|
45
45
|
defaults: [""]
|
46
46
|
},
|
47
47
|
{
|
@@ -52,6 +52,14 @@ export class FieldField_CreateForCommand extends BaseFinalCommand
|
|
52
52
|
args: ["active"],
|
53
53
|
defaults: [""]
|
54
54
|
},
|
55
|
+
{
|
56
|
+
name: "period",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'period' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["period"],
|
61
|
+
defaults: [""]
|
62
|
+
},
|
55
63
|
{
|
56
64
|
name: "workspace_id",
|
57
65
|
short: "",
|
@@ -82,8 +90,9 @@ export class FieldField_CreateForCommand extends BaseFinalCommand
|
|
82
90
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
83
91
|
let ans = await server.field_field._CreateFor(this.arg_values[0], {
|
84
92
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
85
|
-
|
93
|
+
number: this.option_values.number,
|
86
94
|
active: this.option_values.active,
|
95
|
+
period: this.option_values.period,
|
87
96
|
workspace_id: this.option_values.workspace_id,
|
88
97
|
resource_id: this.option_values.resource_id
|
89
98
|
});
|
@@ -42,6 +42,7 @@ export class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer, CostRow
|
|
42
42
|
period_end: BaseMetaColumn;
|
43
43
|
amount: BaseMetaColumn;
|
44
44
|
currency: BaseMetaColumn;
|
45
|
+
description: BaseMetaColumn;
|
45
46
|
created_at: BaseMetaColumn;
|
46
47
|
}
|
47
48
|
constructor(database: NSBaseMetaDatabase<NamirasoftCostServer>)
|
@@ -64,6 +65,7 @@ export class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer, CostRow
|
|
64
65
|
period_end: new BaseMetaColumn(this, "period_end", "Period End", "DateTime", true),
|
65
66
|
amount: new BaseMetaColumn(this, "amount", "Amount", "Double", true),
|
66
67
|
currency: new BaseMetaColumn(this, "currency", "Currency", "String", true),
|
68
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", true),
|
67
69
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
68
70
|
};
|
69
71
|
this.back_end.get = async (id: string) =>
|
package/src/row/CostCreateRow.ts
CHANGED
package/src/row/CostRow.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { EstimationUsage } from "./EstimationUsage";
|
2
2
|
import { Period } from "./Period";
|
3
3
|
|
4
|
-
export type EstimationRow =
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
export type EstimationRow = {
|
5
|
+
period: Period;
|
6
|
+
usage: EstimationUsage;
|
7
|
+
amount: number;
|
8
|
+
free: boolean;
|
9
|
+
free_reason: string;
|
10
|
+
};
|