namirasoft-cost 1.4.7 → 1.4.8

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 (75) hide show
  1. package/.ns-sdkg-dir-deep +2 -2
  2. package/.ns-sdkg-file-keep +6 -6
  3. package/dist/NamirasoftCostServer.js +1 -1
  4. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +6 -0
  5. package/dist/NamirasoftCostServerBillWatchAWS.js +9 -1
  6. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  7. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +6 -0
  8. package/dist/NamirasoftCostServerBillWatchAzure.js +9 -1
  9. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  10. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +6 -0
  11. package/dist/NamirasoftCostServerBillWatchGCP.js +9 -1
  12. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  13. package/dist/command/BillWatchAWSCommand.js +2 -0
  14. package/dist/command/BillWatchAWSCommand.js.map +1 -1
  15. package/dist/command/BillWatchAWS_CreateForCommand.d.ts +5 -0
  16. package/dist/command/BillWatchAWS_CreateForCommand.js +67 -0
  17. package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -0
  18. package/dist/command/BillWatchAzureCommand.js +2 -0
  19. package/dist/command/BillWatchAzureCommand.js.map +1 -1
  20. package/dist/command/BillWatchAzure_CreateForCommand.d.ts +5 -0
  21. package/dist/command/BillWatchAzure_CreateForCommand.js +67 -0
  22. package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -0
  23. package/dist/command/BillWatchGCPCommand.js +2 -0
  24. package/dist/command/BillWatchGCPCommand.js.map +1 -1
  25. package/dist/command/BillWatchGCP_CreateForCommand.d.ts +5 -0
  26. package/dist/command/BillWatchGCP_CreateForCommand.js +67 -0
  27. package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -0
  28. package/dist/command/Cost_CreateForCommand.js +17 -17
  29. package/dist/command/Cost_CreateForCommand.js.map +1 -1
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.js +3 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/meta/CostMetaTable.d.ts +2 -2
  34. package/dist/meta/CostMetaTable.js +2 -2
  35. package/dist/meta/CostMetaTable.js.map +1 -1
  36. package/dist/row/CostCreateRow.d.ts +2 -2
  37. package/dist/row/CostRow.d.ts +2 -2
  38. package/package.json +27 -27
  39. package/src/NamirasoftCostServer.ts +47 -47
  40. package/src/NamirasoftCostServerBase.ts +29 -29
  41. package/src/NamirasoftCostServerBillWatchAWS.ts +46 -38
  42. package/src/NamirasoftCostServerBillWatchAzure.ts +46 -38
  43. package/src/NamirasoftCostServerBillWatchGCP.ts +46 -38
  44. package/src/NamirasoftCostServerCost.ts +49 -49
  45. package/src/NamirasoftCostServerHealthz.ts +35 -35
  46. package/src/NamirasoftCostServerValue.ts +36 -36
  47. package/src/TimeUtil.ts +52 -52
  48. package/src/command/BillWatchAWSCommand.ts +33 -31
  49. package/src/command/BillWatchAWSEstimationCommand.ts +73 -73
  50. package/src/command/BillWatchAWS_CreateForCommand.ts +74 -0
  51. package/src/command/BillWatchAzureCommand.ts +33 -31
  52. package/src/command/BillWatchAzureEstimationCommand.ts +73 -73
  53. package/src/command/BillWatchAzure_CreateForCommand.ts +74 -0
  54. package/src/command/BillWatchGCPCommand.ts +33 -31
  55. package/src/command/BillWatchGCPEstimationCommand.ts +73 -73
  56. package/src/command/BillWatchGCP_CreateForCommand.ts +74 -0
  57. package/src/command/CostCommand.ts +33 -33
  58. package/src/command/CostListCommand.ts +44 -44
  59. package/src/command/Cost_CreateForCommand.ts +172 -172
  60. package/src/command/HealthzCommand.ts +31 -31
  61. package/src/command/HealthzGetCommand.ts +44 -44
  62. package/src/command/ValueCommand.ts +31 -31
  63. package/src/command/ValueListCommand.ts +44 -44
  64. package/src/command/cli.ts +42 -42
  65. package/src/enum/TrialUnit.ts +5 -5
  66. package/src/index.ts +54 -51
  67. package/src/meta/CostMetaTable.ts +79 -79
  68. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  69. package/src/row/CostCreateRow.ts +36 -36
  70. package/src/row/CostRow.ts +39 -39
  71. package/src/type/Estimation.ts +6 -6
  72. package/src/type/EstimationRow.ts +6 -6
  73. package/src/type/Period.ts +4 -4
  74. package/src/type/Trial.ts +6 -6
  75. package/src/type/TrialDuration.ts +6 -6
@@ -18,11 +18,11 @@ class CostMetaTable extends namirasoft_site_1.NSBaseMetaTable {
18
18
  this.columns = {
19
19
  id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
20
20
  user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
21
+ workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
22
+ product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
21
23
  sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item ID", "String", true),
22
24
  offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer ID", "String", true),
23
25
  offer_item_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_item_id", "Offer Item ID", "String", true),
24
- workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
25
- product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
26
26
  resource_entity: new namirasoft_core_1.BaseMetaColumn(this, "resource_entity", "Resource Entity", "String", true),
27
27
  resource_id: new namirasoft_core_1.BaseMetaColumn(this, "resource_id", "Resource ID", "String", true),
28
28
  usage_name: new namirasoft_core_1.BaseMetaColumn(this, "usage_name", "Usage Name", "String", true),
@@ -1 +1 @@
1
- {"version":3,"file":"CostMetaTable.js","sourceRoot":"","sources":["../../src/meta/CostMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AA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A,CAAC;IACN,CAAC;CACJ;AAtDD,sCAsDC;AAAA,CAAC"}
@@ -1,9 +1,9 @@
1
1
  export type CostCreateRow = {
2
+ workspace_id: string;
3
+ product_id: string;
2
4
  sales_item_id: string;
3
5
  offer_id: string;
4
6
  offer_item_id: string;
5
- workspace_id: string;
6
- product_id: string;
7
7
  resource_entity: string;
8
8
  resource_id: string;
9
9
  usage_name: string;
@@ -1,11 +1,11 @@
1
1
  export type CostRow = {
2
2
  id: string;
3
3
  user_id: string;
4
+ workspace_id: string;
5
+ product_id: string;
4
6
  sales_item_id: string;
5
7
  offer_id: string;
6
8
  offer_item_id: string;
7
- workspace_id: string;
8
- product_id: string;
9
9
  resource_entity: string;
10
10
  resource_id: string;
11
11
  usage_name: string;
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.7",
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.71",
21
- "namirasoft-site": "^1.4.36",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.72"
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.8",
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.71",
21
+ "namirasoft-site": "^1.4.37",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.72"
24
+ },
25
+ "bin": {
26
+ "ns-cost": "./dist/command/cli.js"
27
+ }
28
28
  }
@@ -1,48 +1,48 @@
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 { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
27
- import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
28
- import { TokenManager } from "namirasoft-account";
29
-
30
- export class NamirasoftCostServer extends NSABaseServer
31
- {
32
- healthz: NamirasoftCostServerHealthz;
33
- value: NamirasoftCostServerValue;
34
- bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
35
- bill_watch_azure: NamirasoftCostServerBillWatchAzure;
36
- bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
37
- cost: NamirasoftCostServerCost;
38
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
39
- {
40
- super(base_url, `1.4.6`, manager, onError);
41
- this.healthz = new NamirasoftCostServerHealthz(this);
42
- this.value = new NamirasoftCostServerValue(this);
43
- this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
44
- this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
45
- this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
46
- this.cost = new NamirasoftCostServerCost(this);
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 { 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 { NamirasoftCostServerHealthz } from "./NamirasoftCostServerHealthz";
27
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
28
+ import { TokenManager } from "namirasoft-account";
29
+
30
+ export class NamirasoftCostServer extends NSABaseServer
31
+ {
32
+ healthz: NamirasoftCostServerHealthz;
33
+ value: NamirasoftCostServerValue;
34
+ bill_watch_a_w_s: NamirasoftCostServerBillWatchAWS;
35
+ bill_watch_azure: NamirasoftCostServerBillWatchAzure;
36
+ bill_watch_g_c_p: NamirasoftCostServerBillWatchGCP;
37
+ cost: NamirasoftCostServerCost;
38
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
39
+ {
40
+ super(base_url, `1.4.8`, manager, onError);
41
+ this.healthz = new NamirasoftCostServerHealthz(this);
42
+ this.value = new NamirasoftCostServerValue(this);
43
+ this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS(this);
44
+ this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
45
+ this.bill_watch_g_c_p = new NamirasoftCostServerBillWatchGCP(this);
46
+ this.cost = new NamirasoftCostServerCost(this);
47
+ }
48
48
  };
@@ -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,39 +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 { Estimation } from "./type/Estimation";
22
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
23
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
24
- import { Period } from "./type/Period";
25
-
26
- export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
27
- {
28
- constructor(server: NamirasoftCostServer)
29
- {
30
- super(server);
31
- this.Estimation = this.Estimation.bind(this);
32
- }
33
- async Estimation(body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<Estimation>
34
- {
35
- let path = `/estimation/bill-watch/watch/aws`;
36
- let { data } = await this.server._post<Estimation>(path, {}, body);
37
- return data;
38
- }
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_watch_created_at: (string | 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_watch_created_at: (string | null), period: Period, active: boolean }): 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
+ }
39
47
  };
@@ -1,39 +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 { Estimation } from "./type/Estimation";
22
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
23
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
24
- import { Period } from "./type/Period";
25
-
26
- export class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase
27
- {
28
- constructor(server: NamirasoftCostServer)
29
- {
30
- super(server);
31
- this.Estimation = this.Estimation.bind(this);
32
- }
33
- async Estimation(body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<Estimation>
34
- {
35
- let path = `/estimation/bill-watch/watch/azure`;
36
- let { data } = await this.server._post<Estimation>(path, {}, body);
37
- return data;
38
- }
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_watch_created_at: (string | 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_watch_created_at: (string | null), period: Period, active: boolean }): 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
+ }
39
47
  };
@@ -1,39 +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 { Estimation } from "./type/Estimation";
22
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
23
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
24
- import { Period } from "./type/Period";
25
-
26
- export class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase
27
- {
28
- constructor(server: NamirasoftCostServer)
29
- {
30
- super(server);
31
- this.Estimation = this.Estimation.bind(this);
32
- }
33
- async Estimation(body: { first_watch_created_at: (string | null), period: Period, active: boolean }): Promise<Estimation>
34
- {
35
- let path = `/estimation/bill-watch/watch/gcp`;
36
- let { data } = await this.server._post<Estimation>(path, {}, body);
37
- return data;
38
- }
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_watch_created_at: (string | 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_watch_created_at: (string | null), period: Period, active: boolean }): 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
+ }
39
47
  };