namirasoft-cost 1.4.4 → 1.4.6
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 +3 -0
- package/.ns-sdkg-dir-keep +0 -0
- package/.ns-sdkg-file-keep +7 -0
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/TimeUtil.d.ts +7 -0
- package/dist/TimeUtil.js +44 -0
- package/dist/TimeUtil.js.map +1 -0
- package/dist/enum/TrialUnit.d.ts +5 -0
- package/dist/enum/TrialUnit.js +10 -0
- package/dist/enum/TrialUnit.js.map +1 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/type/Estimation.d.ts +5 -0
- package/dist/{row/EstimationRowRow.js → type/Estimation.js} +1 -1
- package/dist/type/Estimation.js.map +1 -0
- package/dist/type/EstimationRow.d.ts +5 -0
- package/dist/{row → type}/EstimationRow.js.map +1 -1
- package/dist/type/Period.d.ts +4 -0
- package/dist/{row/PeriodRow.js → type/Period.js} +1 -1
- package/dist/type/Period.js.map +1 -0
- package/dist/type/Trial.d.ts +5 -0
- package/dist/type/Trial.js +3 -0
- package/dist/type/Trial.js.map +1 -0
- package/dist/type/TrialDuration.d.ts +5 -0
- package/dist/type/TrialDuration.js +3 -0
- package/dist/type/TrialDuration.js.map +1 -0
- package/package.json +27 -27
- package/src/NamirasoftCostServer.ts +47 -47
- package/src/NamirasoftCostServerBase.ts +29 -29
- package/src/NamirasoftCostServerBillWatchAWS.ts +38 -38
- package/src/NamirasoftCostServerBillWatchAzure.ts +38 -38
- package/src/NamirasoftCostServerBillWatchGCP.ts +38 -38
- package/src/NamirasoftCostServerCost.ts +49 -49
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerValue.ts +36 -36
- package/src/TimeUtil.ts +53 -0
- package/src/command/BillWatchAWSCommand.ts +31 -31
- package/src/command/BillWatchAWSEstimationCommand.ts +64 -64
- package/src/command/BillWatchAzureCommand.ts +31 -31
- package/src/command/BillWatchAzureEstimationCommand.ts +64 -64
- package/src/command/BillWatchGCPCommand.ts +31 -31
- package/src/command/BillWatchGCPEstimationCommand.ts +64 -64
- 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 +6 -0
- package/src/index.ts +52 -48
- 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 +7 -0
- package/src/type/EstimationRow.ts +7 -0
- package/src/type/Period.ts +5 -0
- package/src/type/Trial.ts +7 -0
- package/src/type/TrialDuration.ts +7 -0
- package/dist/row/EstimationRow.d.ts +0 -5
- package/dist/row/EstimationRowRow.d.ts +0 -5
- package/dist/row/EstimationRowRow.js.map +0 -1
- package/dist/row/PeriodRow.d.ts +0 -4
- package/dist/row/PeriodRow.js.map +0 -1
- package/src/row/EstimationRow.ts +0 -27
- package/src/row/EstimationRowRow.ts +0 -27
- package/src/row/PeriodRow.ts +0 -25
- /package/dist/{row → type}/EstimationRow.js +0 -0
package/src/row/CostCreateRow.ts
CHANGED
@@ -1,37 +1,37 @@
|
|
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
|
-
export type CostCreateRow =
|
22
|
-
{
|
23
|
-
sales_item_id: string;
|
24
|
-
offer_id: string;
|
25
|
-
offer_item_id: string;
|
26
|
-
workspace_id: string;
|
27
|
-
product_id: string;
|
28
|
-
resource_entity: string;
|
29
|
-
resource_id: string;
|
30
|
-
usage_name: string;
|
31
|
-
usage_value: number;
|
32
|
-
usage_unit: string;
|
33
|
-
period_start: Date;
|
34
|
-
period_end: Date;
|
35
|
-
amount: number;
|
36
|
-
currency: string;
|
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
|
+
export type CostCreateRow =
|
22
|
+
{
|
23
|
+
sales_item_id: string;
|
24
|
+
offer_id: string;
|
25
|
+
offer_item_id: string;
|
26
|
+
workspace_id: string;
|
27
|
+
product_id: string;
|
28
|
+
resource_entity: string;
|
29
|
+
resource_id: string;
|
30
|
+
usage_name: string;
|
31
|
+
usage_value: number;
|
32
|
+
usage_unit: string;
|
33
|
+
period_start: Date;
|
34
|
+
period_end: Date;
|
35
|
+
amount: number;
|
36
|
+
currency: string;
|
37
37
|
}
|
package/src/row/CostRow.ts
CHANGED
@@ -1,40 +1,40 @@
|
|
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
|
-
export type CostRow =
|
22
|
-
{
|
23
|
-
id: string;
|
24
|
-
user_id: string;
|
25
|
-
sales_item_id: string;
|
26
|
-
offer_id: string;
|
27
|
-
offer_item_id: string;
|
28
|
-
workspace_id: string;
|
29
|
-
product_id: string;
|
30
|
-
resource_entity: string;
|
31
|
-
resource_id: string;
|
32
|
-
usage_name: string;
|
33
|
-
usage_value: number;
|
34
|
-
usage_unit: string;
|
35
|
-
period_start: Date;
|
36
|
-
period_end: Date;
|
37
|
-
amount: number;
|
38
|
-
currency: string;
|
39
|
-
created_at: Date;
|
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
|
+
export type CostRow =
|
22
|
+
{
|
23
|
+
id: string;
|
24
|
+
user_id: string;
|
25
|
+
sales_item_id: string;
|
26
|
+
offer_id: string;
|
27
|
+
offer_item_id: string;
|
28
|
+
workspace_id: string;
|
29
|
+
product_id: string;
|
30
|
+
resource_entity: string;
|
31
|
+
resource_id: string;
|
32
|
+
usage_name: string;
|
33
|
+
usage_value: number;
|
34
|
+
usage_unit: string;
|
35
|
+
period_start: Date;
|
36
|
+
period_end: Date;
|
37
|
+
amount: number;
|
38
|
+
currency: string;
|
39
|
+
created_at: Date;
|
40
40
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EstimationRowRow.js","sourceRoot":"","sources":["../../src/row/EstimationRowRow.ts"],"names":[],"mappings":""}
|
package/dist/row/PeriodRow.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PeriodRow.js","sourceRoot":"","sources":["../../src/row/PeriodRow.ts"],"names":[],"mappings":""}
|
package/src/row/EstimationRow.ts
DELETED
@@ -1,27 +0,0 @@
|
|
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 { EstimationRowRow } from "./EstimationRowRow";
|
22
|
-
|
23
|
-
export type EstimationRow =
|
24
|
-
{
|
25
|
-
sum: number;
|
26
|
-
rows: EstimationRowRow[];
|
27
|
-
}
|
@@ -1,27 +0,0 @@
|
|
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 { PeriodRow } from "./PeriodRow";
|
22
|
-
|
23
|
-
export type EstimationRowRow =
|
24
|
-
{
|
25
|
-
period: PeriodRow;
|
26
|
-
amount: number;
|
27
|
-
}
|
package/src/row/PeriodRow.ts
DELETED
@@ -1,25 +0,0 @@
|
|
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
|
-
export type PeriodRow =
|
22
|
-
{
|
23
|
-
start: string;
|
24
|
-
end: string;
|
25
|
-
}
|
File without changes
|