namirasoft-cost 1.4.19 → 1.4.20
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 +7 -7
- package/dist/TimeUtil.js +18 -11
- package/dist/TimeUtil.js.map +1 -1
- package/package.json +27 -27
- package/src/NamirasoftCostServer.ts +56 -56
- package/src/NamirasoftCostServerBase.ts +29 -29
- package/src/NamirasoftCostServerBillWatchAWS.ts +46 -46
- package/src/NamirasoftCostServerBillWatchAzure.ts +46 -46
- package/src/NamirasoftCostServerBillWatchGCP.ts +46 -46
- package/src/NamirasoftCostServerCost.ts +49 -49
- package/src/NamirasoftCostServerFieldCategory.ts +46 -46
- package/src/NamirasoftCostServerFieldField.ts +46 -46
- package/src/NamirasoftCostServerHealthz.ts +35 -35
- package/src/NamirasoftCostServerMetrics.ts +35 -35
- package/src/NamirasoftCostServerValue.ts +36 -36
- package/src/TimeUtil.ts +66 -56
- package/src/command/BillWatchAWSCommand.ts +33 -33
- package/src/command/BillWatchAWSEstimationCommand.ts +82 -82
- package/src/command/BillWatchAWS_CreateForCommand.ts +100 -100
- package/src/command/BillWatchAzureCommand.ts +33 -33
- package/src/command/BillWatchAzureEstimationCommand.ts +82 -82
- package/src/command/BillWatchAzure_CreateForCommand.ts +100 -100
- package/src/command/BillWatchGCPCommand.ts +33 -33
- package/src/command/BillWatchGCPEstimationCommand.ts +82 -82
- package/src/command/BillWatchGCP_CreateForCommand.ts +100 -100
- package/src/command/CostCommand.ts +33 -33
- package/src/command/CostListCommand.ts +44 -44
- package/src/command/Cost_CreateForCommand.ts +181 -181
- package/src/command/FieldCategoryCommand.ts +33 -33
- package/src/command/FieldCategoryEstimationCommand.ts +82 -82
- package/src/command/FieldCategory_CreateForCommand.ts +100 -100
- package/src/command/FieldFieldCommand.ts +33 -33
- package/src/command/FieldFieldEstimationCommand.ts +82 -82
- package/src/command/FieldField_CreateForCommand.ts +100 -100
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/MetricsCommand.ts +31 -31
- package/src/command/MetricsGetCommand.ts +44 -44
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +48 -48
- package/src/enum/TrialUnit.ts +5 -5
- package/src/index.ts +66 -66
- package/src/meta/CostMetaTable.ts +81 -81
- package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
- package/src/row/CostCreateRow.ts +37 -37
- package/src/row/CostRow.ts +40 -40
- package/src/type/Estimation.ts +6 -6
- package/src/type/EstimationRow.ts +9 -9
- package/src/type/EstimationUsage.ts +5 -5
- package/src/type/Period.ts +4 -4
- package/src/type/Trial.ts +6 -6
- package/src/type/TrialDuration.ts +6 -6
package/.ns-sdkg-dir-deep
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
/src
|
2
|
-
/src/type
|
1
|
+
/src
|
2
|
+
/src/type
|
3
3
|
/src/enum
|
package/.ns-sdkg-file-keep
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
src/enum/TrialUnit.ts
|
2
|
-
src/type/Estimation.ts
|
3
|
-
src/type/EstimationRow.ts
|
4
|
-
src/type/EstimationUsage.ts
|
5
|
-
src/type/Period.ts
|
6
|
-
src/type/Trial.ts
|
7
|
-
src/type/TrialDuration.ts
|
1
|
+
src/enum/TrialUnit.ts
|
2
|
+
src/type/Estimation.ts
|
3
|
+
src/type/EstimationRow.ts
|
4
|
+
src/type/EstimationUsage.ts
|
5
|
+
src/type/Period.ts
|
6
|
+
src/type/Trial.ts
|
7
|
+
src/type/TrialDuration.ts
|
8
8
|
src/TimeUtil.ts
|
package/dist/TimeUtil.js
CHANGED
@@ -22,6 +22,11 @@ class TimeUtil {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
23
23
|
if (period.end <= period.start)
|
24
24
|
return;
|
25
|
+
let pre_estimate_hour = (period, trial) => __awaiter(this, void 0, void 0, function* () {
|
26
|
+
if (period.end <= period.start)
|
27
|
+
return;
|
28
|
+
return yield estimate_hour(period, trial);
|
29
|
+
});
|
25
30
|
let trial_ends_at = null;
|
26
31
|
if (trial)
|
27
32
|
trial_ends_at = TimeUtil.trialEndsAt(trial);
|
@@ -32,24 +37,26 @@ class TimeUtil {
|
|
32
37
|
next_start.setMilliseconds(0);
|
33
38
|
next_start.setSeconds(0);
|
34
39
|
next_start.setMinutes(0);
|
35
|
-
if (period.end < next_start)
|
40
|
+
if (period.end < next_start) {
|
36
41
|
next_start = period.end;
|
37
|
-
|
42
|
+
end = period.end;
|
43
|
+
}
|
44
|
+
else
|
45
|
+
end = namirasoft_core_1.TimeOperation.secondsAgo(1, next_start);
|
38
46
|
if (trial_ends_at) {
|
39
|
-
if (trial_ends_at <
|
40
|
-
yield
|
41
|
-
else if (trial_ends_at <=
|
47
|
+
if (trial_ends_at < start)
|
48
|
+
yield pre_estimate_hour({ start, end }, false);
|
49
|
+
else if (trial_ends_at <= end) {
|
42
50
|
let trial_ends_at_e = namirasoft_core_1.TimeOperation.secondsAgo(1, trial_ends_at);
|
43
51
|
let trial_ends_at_s = trial_ends_at;
|
44
|
-
|
45
|
-
|
46
|
-
yield estimate_hour({ start: trial_ends_at_s, end }, false);
|
52
|
+
yield pre_estimate_hour({ start, end: trial_ends_at_e }, true);
|
53
|
+
yield pre_estimate_hour({ start: trial_ends_at_s, end }, false);
|
47
54
|
}
|
48
|
-
else if (
|
49
|
-
yield
|
55
|
+
else if (end < trial_ends_at)
|
56
|
+
yield pre_estimate_hour({ start: period.start, end }, true);
|
50
57
|
}
|
51
58
|
else
|
52
|
-
yield
|
59
|
+
yield pre_estimate_hour({ start, end }, false);
|
53
60
|
start = next_start;
|
54
61
|
} while (end < period.end);
|
55
62
|
});
|
package/dist/TimeUtil.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.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AAE,UAAU,CAAC,CAAC;gBAClD,IAAI,aAAa,EACjB,CAAC;oBACG,IAAI,aAAa,GAAG,KAAK;wBACrB,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;yBAC9C,IAAI,aAAa,IAAI,GAAG,EAC7B,CAAC;wBACG,IAAI,eAAe,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;wBACjE,IAAI,eAAe,GAAG,aAAa,CAAC;wBACpC,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC;wBAC/D,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;oBACpE,CAAC;yBACI,IAAI,GAAG,GAAG,aAAa;wBACxB,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;gBACpE,CAAC;;oBAEG,MAAM,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;gBACnD,KAAK,GAAG,UAAU,CAAC;YACvB,CAAC,QACM,GAAG,GAAG,MAAM,CAAC,GAAG,EAAC;QAC5B,CAAC;KAAA;CACJ;AA9DD,4BA8DC"}
|
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.79",
|
21
|
-
"namirasoft-site": "^1.4.39",
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
23
|
-
"namirasoft-account": "^1.4.84"
|
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.20",
|
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.79",
|
21
|
+
"namirasoft-site": "^1.4.39",
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
23
|
+
"namirasoft-account": "^1.4.84"
|
24
|
+
},
|
25
|
+
"bin": {
|
26
|
+
"ns-cost": "./dist/command/cli.js"
|
27
|
+
}
|
28
28
|
}
|
@@ -1,57 +1,57 @@
|
|
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 { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
27
|
-
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
28
|
-
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
29
|
-
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
30
|
-
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
31
|
-
import { TokenManager } from "namirasoft-account";
|
32
|
-
|
33
|
-
export class NamirasoftCostServer extends NSABaseServer
|
34
|
-
{
|
35
|
-
healthz: NamirasoftCostServerHealthz;
|
36
|
-
metrics: NamirasoftCostServerMetrics;
|
37
|
-
value: NamirasoftCostServerValue;
|
38
|
-
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
39
|
-
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
40
|
-
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
41
|
-
field_category: NamirasoftCostServerFieldCategory;
|
42
|
-
field_field: NamirasoftCostServerFieldField;
|
43
|
-
cost: NamirasoftCostServerCost;
|
44
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
45
|
-
{
|
46
|
-
super(base_url, `1.4.19`, manager, onError);
|
47
|
-
this.healthz = new NamirasoftCostServerHealthz(this);
|
48
|
-
this.metrics = new NamirasoftCostServerMetrics(this);
|
49
|
-
this.value = new NamirasoftCostServerValue(this);
|
50
|
-
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
51
|
-
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
52
|
-
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
53
|
-
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
54
|
-
this.field_field = new NamirasoftCostServerFieldField(this);
|
55
|
-
this.cost = new NamirasoftCostServerCost(this);
|
56
|
-
}
|
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 { NamirasoftCostServerFieldCategory } from "./NamirasoftCostServerFieldCategory";
|
27
|
+
import { NamirasoftCostServerFieldField } from "./NamirasoftCostServerFieldField";
|
28
|
+
import { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
|
29
|
+
import { NamirasoftCostServerMetrics } from "./NamirasoftCostServerMetrics";
|
30
|
+
import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
|
31
|
+
import { TokenManager } from "namirasoft-account";
|
32
|
+
|
33
|
+
export class NamirasoftCostServer extends NSABaseServer
|
34
|
+
{
|
35
|
+
healthz: NamirasoftCostServerHealthz;
|
36
|
+
metrics: NamirasoftCostServerMetrics;
|
37
|
+
value: NamirasoftCostServerValue;
|
38
|
+
bill_watch_aws: NamirasoftCostServerBillWatchAWS;
|
39
|
+
bill_watch_azure: NamirasoftCostServerBillWatchAzure;
|
40
|
+
bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
|
41
|
+
field_category: NamirasoftCostServerFieldCategory;
|
42
|
+
field_field: NamirasoftCostServerFieldField;
|
43
|
+
cost: NamirasoftCostServerCost;
|
44
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
45
|
+
{
|
46
|
+
super(base_url, `1.4.19`, manager, onError);
|
47
|
+
this.healthz = new NamirasoftCostServerHealthz(this);
|
48
|
+
this.metrics = new NamirasoftCostServerMetrics(this);
|
49
|
+
this.value = new NamirasoftCostServerValue(this);
|
50
|
+
this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
|
51
|
+
this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
|
52
|
+
this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
|
53
|
+
this.field_category = new NamirasoftCostServerFieldCategory(this);
|
54
|
+
this.field_field = new NamirasoftCostServerFieldField(this);
|
55
|
+
this.cost = new NamirasoftCostServerCost(this);
|
56
|
+
}
|
57
57
|
};
|
@@ -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,47 +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 { 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): 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
|
-
}
|
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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): 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
|
+
}
|
47
47
|
};
|
@@ -1,47 +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 { 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 NamirasoftCostServerBillWatchAzure 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): Promise<Estimation>
|
36
|
-
{
|
37
|
-
let path = `/estimation/bill-watch/azure`;
|
38
|
-
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
|
-
return data;
|
40
|
-
}
|
41
|
-
async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
|
-
{
|
43
|
-
let path = `/application/user/${user_id}/cost/bill-watch/azure`;
|
44
|
-
let { data } = await this.server._post<CostRow>(path, {}, body);
|
45
|
-
return data;
|
46
|
-
}
|
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 NamirasoftCostServerBillWatchAzure 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): Promise<Estimation>
|
36
|
+
{
|
37
|
+
let path = `/estimation/bill-watch/azure`;
|
38
|
+
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
|
+
return data;
|
40
|
+
}
|
41
|
+
async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
|
+
{
|
43
|
+
let path = `/application/user/${user_id}/cost/bill-watch/azure`;
|
44
|
+
let { data } = await this.server._post<CostRow>(path, {}, body);
|
45
|
+
return data;
|
46
|
+
}
|
47
47
|
};
|
@@ -1,47 +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 { 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 NamirasoftCostServerBillWatchGCP 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): Promise<Estimation>
|
36
|
-
{
|
37
|
-
let path = `/estimation/bill-watch/gcp`;
|
38
|
-
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
|
-
return data;
|
40
|
-
}
|
41
|
-
async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
|
-
{
|
43
|
-
let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
|
44
|
-
let { data } = await this.server._post<CostRow>(path, {}, body);
|
45
|
-
return data;
|
46
|
-
}
|
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 NamirasoftCostServerBillWatchGCP 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_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period }): Promise<Estimation>
|
36
|
+
{
|
37
|
+
let path = `/estimation/bill-watch/gcp`;
|
38
|
+
let { data } = await this.server._post<Estimation>(path, {}, body);
|
39
|
+
return data;
|
40
|
+
}
|
41
|
+
async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), row_number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
|
42
|
+
{
|
43
|
+
let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
|
44
|
+
let { data } = await this.server._post<CostRow>(path, {}, body);
|
45
|
+
return data;
|
46
|
+
}
|
47
47
|
};
|