namirasoft-cost 1.4.11 → 1.4.13
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/TimeUtil.d.ts +1 -1
- package/dist/TimeUtil.js +19 -16
- package/dist/TimeUtil.js.map +1 -1
- package/dist/type/EstimationRow.d.ts +1 -0
- 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 +55 -52
- package/src/command/BillWatchAWSCommand.ts +33 -33
- package/src/command/BillWatchAWSEstimationCommand.ts +73 -73
- package/src/command/BillWatchAWS_CreateForCommand.ts +91 -91
- package/src/command/BillWatchAzureCommand.ts +33 -33
- package/src/command/BillWatchAzureEstimationCommand.ts +73 -73
- package/src/command/BillWatchAzure_CreateForCommand.ts +91 -91
- package/src/command/BillWatchGCPCommand.ts +33 -33
- package/src/command/BillWatchGCPEstimationCommand.ts +73 -73
- package/src/command/BillWatchGCP_CreateForCommand.ts +91 -91
- 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/FieldCategoryCommand.ts +33 -33
- package/src/command/FieldCategoryEstimationCommand.ts +73 -73
- package/src/command/FieldCategory_CreateForCommand.ts +91 -91
- package/src/command/FieldFieldCommand.ts +33 -33
- package/src/command/FieldFieldEstimationCommand.ts +73 -73
- package/src/command/FieldField_CreateForCommand.ts +91 -91
- 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 +65 -65
- 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 +7 -6
- 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,7 +1,7 @@
|
|
1
|
-
src/enum/TrialUnit.ts
|
2
|
-
src/type/Estimation.ts
|
3
|
-
src/type/EstimationRow.ts
|
4
|
-
src/type/Period.ts
|
5
|
-
src/type/Trial.ts
|
6
|
-
src/type/TrialDuration.ts
|
1
|
+
src/enum/TrialUnit.ts
|
2
|
+
src/type/Estimation.ts
|
3
|
+
src/type/EstimationRow.ts
|
4
|
+
src/type/Period.ts
|
5
|
+
src/type/Trial.ts
|
6
|
+
src/type/TrialDuration.ts
|
7
7
|
src/TimeUtil.ts
|
package/dist/TimeUtil.d.ts
CHANGED
@@ -3,5 +3,5 @@ import { Period } from "./type/Period";
|
|
3
3
|
export declare class TimeUtil {
|
4
4
|
static trialEndsAt(trial: Trial): Date;
|
5
5
|
static isTrial(trial: Trial, date: Date): boolean;
|
6
|
-
static loopHourly(trial: Trial | null, period: Period, estimate_hour: (period: Period) => Promise<void>): Promise<void>;
|
6
|
+
static loopHourly(trial: Trial | null, period: Period, estimate_hour: (period: Period, trial: boolean) => Promise<void>): Promise<void>;
|
7
7
|
}
|
package/dist/TimeUtil.js
CHANGED
@@ -11,16 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.TimeUtil = void 0;
|
13
13
|
const namirasoft_core_1 = require("namirasoft-core");
|
14
|
-
const TrialUnit_1 = require("./enum/TrialUnit");
|
15
14
|
class TimeUtil {
|
16
15
|
static trialEndsAt(trial) {
|
17
|
-
|
18
|
-
return namirasoft_core_1.TimeOperation.daysLater(trial.duration.value, trial.started_at);
|
19
|
-
if (trial.duration.unit == TrialUnit_1.TrialUnit.Week)
|
20
|
-
return namirasoft_core_1.TimeOperation.daysLater(trial.duration.value * 7, trial.started_at);
|
21
|
-
if (trial.duration.unit == TrialUnit_1.TrialUnit.Month)
|
22
|
-
return namirasoft_core_1.TimeOperation.monthsLater(trial.duration.value, trial.started_at);
|
23
|
-
return trial.started_at;
|
16
|
+
return namirasoft_core_1.TimeUnitOperation.later(trial.duration.value, trial.duration.unit, trial.started_at);
|
24
17
|
}
|
25
18
|
static isTrial(trial, date) {
|
26
19
|
return date <= TimeUtil.trialEndsAt(trial);
|
@@ -29,13 +22,9 @@ class TimeUtil {
|
|
29
22
|
return __awaiter(this, void 0, void 0, function* () {
|
30
23
|
if (period.end <= period.start)
|
31
24
|
return;
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
return;
|
36
|
-
if (period.start <= ends_at)
|
37
|
-
period.start = ends_at;
|
38
|
-
}
|
25
|
+
let trial_ends_at = null;
|
26
|
+
if (trial)
|
27
|
+
trial_ends_at = TimeUtil.trialEndsAt(trial);
|
39
28
|
let start = period.start;
|
40
29
|
let end = null;
|
41
30
|
do {
|
@@ -45,7 +34,21 @@ class TimeUtil {
|
|
45
34
|
end.setMinutes(0);
|
46
35
|
if (period.end < end)
|
47
36
|
end = period.end;
|
48
|
-
|
37
|
+
if (trial_ends_at) {
|
38
|
+
if (trial_ends_at < period.start)
|
39
|
+
yield estimate_hour({ start, end }, false);
|
40
|
+
else if (trial_ends_at <= period.end) {
|
41
|
+
let trial_ends_at_e = namirasoft_core_1.TimeOperation.secondsAgo(1, trial_ends_at);
|
42
|
+
let trial_ends_at_s = trial_ends_at;
|
43
|
+
if (start < trial_ends_at_e)
|
44
|
+
yield estimate_hour({ start, end: trial_ends_at_e }, true);
|
45
|
+
yield estimate_hour({ start: trial_ends_at_s, end }, false);
|
46
|
+
}
|
47
|
+
else if (period.end < trial_ends_at)
|
48
|
+
yield estimate_hour({ start: period.start, end: trial_ends_at }, true);
|
49
|
+
}
|
50
|
+
else
|
51
|
+
yield estimate_hour({ start, end }, false);
|
49
52
|
start = end;
|
50
53
|
} while (end < period.end);
|
51
54
|
});
|
package/dist/TimeUtil.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"TimeUtil.js","sourceRoot":"","sources":["../src/TimeUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAInE,MAAa,QAAQ;IAEjB,MAAM,CAAC,WAAW,CAAC,KAAY;QAE3B,OAAO,mCAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACvG,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,KAAY,EAAE,IAAU;QAEnC,OAAO,IAAI,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,CAAO,UAAU,CAAC,KAAmB,EAAE,MAAc,EAAE,aAAgE;;YAEzH,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK;gBAC1B,OAAO;YAEX,IAAI,aAAa,GAAgB,IAAI,CAAC;YACtC,IAAI,KAAK;gBACL,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEhD,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YACzB,IAAI,GAAG,GAAG,IAAI,CAAC;YAEf,GACA,CAAC;gBACG,GAAG,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;gBACzC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBACvB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAClB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAClB,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG;oBAChB,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;gBACrB,IAAI,aAAa,EACjB,CAAC;oBACG,IAAI,aAAa,GAAG,MAAM,CAAC,KAAK;wBAC5B,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;yBAC1C,IAAI,aAAa,IAAI,MAAM,CAAC,GAAG,EACpC,CAAC;wBACG,IAAI,eAAe,GAAG,+BAAa,CAAC,UAAU,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;wBACjE,IAAI,eAAe,GAAG,aAAa,CAAC;wBACpC,IAAI,KAAK,GAAG,eAAe;4BACvB,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,IAAI,CAAC,CAAC;wBAC/D,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;oBAChE,CAAC;yBACI,IAAI,MAAM,CAAC,GAAG,GAAG,aAAa;wBAC/B,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC/E,CAAC;;oBAEG,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;gBAC/C,KAAK,GAAG,GAAG,CAAC;YAChB,CAAC,QACM,GAAG,GAAG,MAAM,CAAC,GAAG,EAAC;QAC5B,CAAC;KAAA;CACJ;AAnDD,4BAmDC"}
|
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.
|
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.13",
|
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.11`, 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.11`, 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), 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_entity_created_at: (Date | null), period: Period, active: boolean, 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), 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_entity_created_at: (Date | null), period: Period, active: boolean, 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), period: Period, active: boolean }): 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), period: Period, active: boolean, 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), period: Period, active: boolean }): 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), period: Period, active: boolean, 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), period: Period, active: boolean }): 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), period: Period, active: boolean, 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), period: Period, active: boolean }): 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), period: Period, active: boolean, 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
|
};
|