namirasoft-cost 1.4.12 → 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.
Files changed (52) hide show
  1. package/.ns-sdkg-dir-deep +2 -2
  2. package/.ns-sdkg-file-keep +6 -6
  3. package/dist/type/EstimationRow.d.ts +1 -0
  4. package/package.json +27 -27
  5. package/src/NamirasoftCostServer.ts +56 -56
  6. package/src/NamirasoftCostServerBase.ts +29 -29
  7. package/src/NamirasoftCostServerBillWatchAWS.ts +46 -46
  8. package/src/NamirasoftCostServerBillWatchAzure.ts +46 -46
  9. package/src/NamirasoftCostServerBillWatchGCP.ts +46 -46
  10. package/src/NamirasoftCostServerCost.ts +49 -49
  11. package/src/NamirasoftCostServerFieldCategory.ts +46 -46
  12. package/src/NamirasoftCostServerFieldField.ts +46 -46
  13. package/src/NamirasoftCostServerHealthz.ts +35 -35
  14. package/src/NamirasoftCostServerMetrics.ts +35 -35
  15. package/src/NamirasoftCostServerValue.ts +36 -36
  16. package/src/TimeUtil.ts +55 -55
  17. package/src/command/BillWatchAWSCommand.ts +33 -33
  18. package/src/command/BillWatchAWSEstimationCommand.ts +73 -73
  19. package/src/command/BillWatchAWS_CreateForCommand.ts +91 -91
  20. package/src/command/BillWatchAzureCommand.ts +33 -33
  21. package/src/command/BillWatchAzureEstimationCommand.ts +73 -73
  22. package/src/command/BillWatchAzure_CreateForCommand.ts +91 -91
  23. package/src/command/BillWatchGCPCommand.ts +33 -33
  24. package/src/command/BillWatchGCPEstimationCommand.ts +73 -73
  25. package/src/command/BillWatchGCP_CreateForCommand.ts +91 -91
  26. package/src/command/CostCommand.ts +33 -33
  27. package/src/command/CostListCommand.ts +44 -44
  28. package/src/command/Cost_CreateForCommand.ts +172 -172
  29. package/src/command/FieldCategoryCommand.ts +33 -33
  30. package/src/command/FieldCategoryEstimationCommand.ts +73 -73
  31. package/src/command/FieldCategory_CreateForCommand.ts +91 -91
  32. package/src/command/FieldFieldCommand.ts +33 -33
  33. package/src/command/FieldFieldEstimationCommand.ts +73 -73
  34. package/src/command/FieldField_CreateForCommand.ts +91 -91
  35. package/src/command/HealthzCommand.ts +31 -31
  36. package/src/command/HealthzGetCommand.ts +44 -44
  37. package/src/command/MetricsCommand.ts +31 -31
  38. package/src/command/MetricsGetCommand.ts +44 -44
  39. package/src/command/ValueCommand.ts +31 -31
  40. package/src/command/ValueListCommand.ts +44 -44
  41. package/src/command/cli.ts +48 -48
  42. package/src/enum/TrialUnit.ts +5 -5
  43. package/src/index.ts +65 -65
  44. package/src/meta/CostMetaTable.ts +79 -79
  45. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  46. package/src/row/CostCreateRow.ts +36 -36
  47. package/src/row/CostRow.ts +39 -39
  48. package/src/type/Estimation.ts +6 -6
  49. package/src/type/EstimationRow.ts +7 -6
  50. package/src/type/Period.ts +4 -4
  51. package/src/type/Trial.ts +6 -6
  52. 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
@@ -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
@@ -2,4 +2,5 @@ import { Period } from "./Period";
2
2
  export type EstimationRow = {
3
3
  period: Period;
4
4
  amount: number;
5
+ trial: boolean;
5
6
  };
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",
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.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
  };