namirasoft-cost 1.4.31 → 1.4.32

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 (97) hide show
  1. package/.ns-sdkg-dir-deep +3 -3
  2. package/.ns-sdkg-file-keep +28 -36
  3. package/dist/bonus/BaseBonus.d.ts +2 -1
  4. package/dist/bonus/BaseBonus.js +2 -1
  5. package/dist/bonus/BaseBonus.js.map +1 -1
  6. package/dist/bonus/DeactiveBonus.js +1 -1
  7. package/dist/bonus/DeactiveBonus.js.map +1 -1
  8. package/dist/bonus/FreeCountBonus.js +1 -1
  9. package/dist/bonus/FreeCountBonus.js.map +1 -1
  10. package/dist/bonus/FreeTotalValueBonus.js +1 -1
  11. package/dist/bonus/FreeTotalValueBonus.js.map +1 -1
  12. package/dist/bonus/FreeValueBonus.d.ts +33 -0
  13. package/dist/bonus/FreeValueBonus.js +35 -0
  14. package/dist/bonus/FreeValueBonus.js.map +1 -0
  15. package/dist/bonus/LowAmountBonus.js +1 -1
  16. package/dist/bonus/LowAmountBonus.js.map +1 -1
  17. package/dist/bonus/LowSecondsBonus.js +1 -1
  18. package/dist/bonus/LowSecondsBonus.js.map +1 -1
  19. package/dist/bonus/LowTotalCountBonus.js +1 -1
  20. package/dist/bonus/LowTotalCountBonus.js.map +1 -1
  21. package/dist/bonus/LowTotalValueBonus.js +1 -1
  22. package/dist/bonus/LowTotalValueBonus.js.map +1 -1
  23. package/dist/bonus/LowValueBonus.d.ts +10 -0
  24. package/dist/bonus/LowValueBonus.js +27 -0
  25. package/dist/bonus/LowValueBonus.js.map +1 -0
  26. package/dist/bonus/TrialBonus.js +1 -1
  27. package/dist/bonus/TrialBonus.js.map +1 -1
  28. package/dist/estimator/SecretSecretReadEstimator.js.map +1 -1
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.js +2 -0
  31. package/dist/index.js.map +1 -1
  32. package/package.json +28 -28
  33. package/src/NamirasoftCostServer.ts +59 -59
  34. package/src/NamirasoftCostServerBase.ts +29 -29
  35. package/src/NamirasoftCostServerBillWatchAWS.ts +47 -47
  36. package/src/NamirasoftCostServerBillWatchAzure.ts +47 -47
  37. package/src/NamirasoftCostServerBillWatchGCP.ts +47 -47
  38. package/src/NamirasoftCostServerCost.ts +41 -41
  39. package/src/NamirasoftCostServerFieldCategory.ts +47 -47
  40. package/src/NamirasoftCostServerFieldField.ts +47 -47
  41. package/src/NamirasoftCostServerHealthz.ts +35 -35
  42. package/src/NamirasoftCostServerMetrics.ts +35 -35
  43. package/src/NamirasoftCostServerSecretSecret.ts +61 -61
  44. package/src/NamirasoftCostServerValue.ts +36 -36
  45. package/src/bonus/BaseBonus.ts +13 -13
  46. package/src/bonus/DeactiveBonus.ts +14 -14
  47. package/src/bonus/FreeCountBonus.ts +14 -14
  48. package/src/bonus/FreeTotalValueBonus.ts +28 -28
  49. package/src/bonus/FreeValueBonus.ts +25 -0
  50. package/src/bonus/LowAmountBonus.ts +14 -14
  51. package/src/bonus/LowSecondsBonus.ts +14 -14
  52. package/src/bonus/LowTotalCountBonus.ts +14 -14
  53. package/src/bonus/LowTotalValueBonus.ts +14 -14
  54. package/src/bonus/LowValueBonus.ts +15 -0
  55. package/src/bonus/TrialBonus.ts +18 -18
  56. package/src/command/BillWatchAWSCommand.ts +33 -33
  57. package/src/command/BillWatchAWSEstimateRecordCommand.ts +109 -109
  58. package/src/command/BillWatchAWS_CreateForRecordCommand.ts +118 -118
  59. package/src/command/BillWatchAzureCommand.ts +33 -33
  60. package/src/command/BillWatchAzureEstimateRecordCommand.ts +109 -109
  61. package/src/command/BillWatchAzure_CreateForRecordCommand.ts +118 -118
  62. package/src/command/BillWatchGCPCommand.ts +33 -33
  63. package/src/command/BillWatchGCPEstimateRecordCommand.ts +109 -109
  64. package/src/command/BillWatchGCP_CreateForRecordCommand.ts +118 -118
  65. package/src/command/CostCommand.ts +31 -31
  66. package/src/command/CostListCommand.ts +44 -44
  67. package/src/command/FieldCategoryCommand.ts +33 -33
  68. package/src/command/FieldCategoryEstimateRecordCommand.ts +109 -109
  69. package/src/command/FieldCategory_CreateForRecordCommand.ts +118 -118
  70. package/src/command/FieldFieldCommand.ts +33 -33
  71. package/src/command/FieldFieldEstimateRecordCommand.ts +109 -109
  72. package/src/command/FieldField_CreateForRecordCommand.ts +118 -118
  73. package/src/command/HealthzCommand.ts +31 -31
  74. package/src/command/HealthzGetCommand.ts +44 -44
  75. package/src/command/MetricsCommand.ts +31 -31
  76. package/src/command/MetricsGetCommand.ts +44 -44
  77. package/src/command/SecretSecretCommand.ts +37 -37
  78. package/src/command/SecretSecretEstimateReadCommand.ts +109 -109
  79. package/src/command/SecretSecretEstimateRecordCommand.ts +109 -109
  80. package/src/command/SecretSecret_CreateForReadCommand.ts +118 -118
  81. package/src/command/SecretSecret_CreateForRecordCommand.ts +118 -118
  82. package/src/command/ValueCommand.ts +31 -31
  83. package/src/command/ValueListCommand.ts +44 -44
  84. package/src/command/cli.ts +50 -50
  85. package/src/estimator/SecretSecretReadEstimator.ts +0 -1
  86. package/src/index.ts +91 -89
  87. package/src/meta/CostMetaTable.ts +81 -81
  88. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  89. package/src/row/CostRow.ts +40 -40
  90. package/src/type/Bonus.ts +20 -20
  91. package/src/type/CalculationOption.ts +33 -33
  92. package/src/type/Estimation.ts +34 -34
  93. package/src/type/EstimationOption.ts +31 -31
  94. package/src/type/EstimationUsage.ts +22 -22
  95. package/src/type/Period.ts +101 -101
  96. package/src/type/SimulationOption.ts +29 -29
  97. package/src/type/Usage.ts +24 -24
@@ -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,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 { CalculationOption } from "./type/CalculationOption";
22
- import { CostRow } from "./row/CostRow";
23
- import { Estimation } from "./type/Estimation";
24
- import { EstimationOption } from "./type/EstimationOption";
25
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
-
28
- export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
29
- {
30
- constructor(server: NamirasoftCostServer)
31
- {
32
- super(server);
33
- this.EstimateRecord = this.EstimateRecord.bind(this);
34
- this._CreateForRecord = this._CreateForRecord.bind(this);
35
- }
36
- async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
- {
38
- let path = `/estimation/bill-watch/aws/record`;
39
- let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
- return data;
41
- }
42
- async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
- {
44
- let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
45
- let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
- return data;
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 { CalculationOption } from "./type/CalculationOption";
22
+ import { CostRow } from "./row/CostRow";
23
+ import { Estimation } from "./type/Estimation";
24
+ import { EstimationOption } from "./type/EstimationOption";
25
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
+
28
+ export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
29
+ {
30
+ constructor(server: NamirasoftCostServer)
31
+ {
32
+ super(server);
33
+ this.EstimateRecord = this.EstimateRecord.bind(this);
34
+ this._CreateForRecord = this._CreateForRecord.bind(this);
35
+ }
36
+ async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
+ {
38
+ let path = `/estimation/bill-watch/aws/record`;
39
+ let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
+ return data;
41
+ }
42
+ async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
+ {
44
+ let path = `/application/user/${user_id}/cost/bill-watch/aws/record`;
45
+ let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
+ return data;
47
+ }
48
48
  };
@@ -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 { CalculationOption } from "./type/CalculationOption";
22
- import { CostRow } from "./row/CostRow";
23
- import { Estimation } from "./type/Estimation";
24
- import { EstimationOption } from "./type/EstimationOption";
25
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
-
28
- export class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase
29
- {
30
- constructor(server: NamirasoftCostServer)
31
- {
32
- super(server);
33
- this.EstimateRecord = this.EstimateRecord.bind(this);
34
- this._CreateForRecord = this._CreateForRecord.bind(this);
35
- }
36
- async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
- {
38
- let path = `/estimation/bill-watch/azure/record`;
39
- let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
- return data;
41
- }
42
- async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
- {
44
- let path = `/application/user/${user_id}/cost/bill-watch/azure/record`;
45
- let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
- return data;
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 { CalculationOption } from "./type/CalculationOption";
22
+ import { CostRow } from "./row/CostRow";
23
+ import { Estimation } from "./type/Estimation";
24
+ import { EstimationOption } from "./type/EstimationOption";
25
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
+
28
+ export class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase
29
+ {
30
+ constructor(server: NamirasoftCostServer)
31
+ {
32
+ super(server);
33
+ this.EstimateRecord = this.EstimateRecord.bind(this);
34
+ this._CreateForRecord = this._CreateForRecord.bind(this);
35
+ }
36
+ async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
+ {
38
+ let path = `/estimation/bill-watch/azure/record`;
39
+ let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
+ return data;
41
+ }
42
+ async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
+ {
44
+ let path = `/application/user/${user_id}/cost/bill-watch/azure/record`;
45
+ let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
+ return data;
47
+ }
48
48
  };
@@ -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 { CalculationOption } from "./type/CalculationOption";
22
- import { CostRow } from "./row/CostRow";
23
- import { Estimation } from "./type/Estimation";
24
- import { EstimationOption } from "./type/EstimationOption";
25
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
-
28
- export class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase
29
- {
30
- constructor(server: NamirasoftCostServer)
31
- {
32
- super(server);
33
- this.EstimateRecord = this.EstimateRecord.bind(this);
34
- this._CreateForRecord = this._CreateForRecord.bind(this);
35
- }
36
- async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
- {
38
- let path = `/estimation/bill-watch/gcp/record`;
39
- let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
- return data;
41
- }
42
- async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
- {
44
- let path = `/application/user/${user_id}/cost/bill-watch/gcp/record`;
45
- let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
- return data;
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 { CalculationOption } from "./type/CalculationOption";
22
+ import { CostRow } from "./row/CostRow";
23
+ import { Estimation } from "./type/Estimation";
24
+ import { EstimationOption } from "./type/EstimationOption";
25
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
+
28
+ export class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase
29
+ {
30
+ constructor(server: NamirasoftCostServer)
31
+ {
32
+ super(server);
33
+ this.EstimateRecord = this.EstimateRecord.bind(this);
34
+ this._CreateForRecord = this._CreateForRecord.bind(this);
35
+ }
36
+ async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
+ {
38
+ let path = `/estimation/bill-watch/gcp/record`;
39
+ let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
+ return data;
41
+ }
42
+ async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
+ {
44
+ let path = `/application/user/${user_id}/cost/bill-watch/gcp/record`;
45
+ let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
+ return data;
47
+ }
48
48
  };
@@ -1,42 +1,42 @@
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 { FilterItem } from "namirasoft-core";
23
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
24
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
25
- import { SortItem } from "namirasoft-core";
26
-
27
- export class NamirasoftCostServerCost extends NamirasoftCostServerBase
28
- {
29
- constructor(server: NamirasoftCostServer)
30
- {
31
- super(server);
32
- this.List = this.List.bind(this);
33
- }
34
- async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: CostRow[], count: number }>
35
- {
36
- let filters_string_value: string = FilterItem.stringify(filters);
37
- let sorts_string_value: string = SortItem.stringify(sorts);
38
- let path = `/cost/list`;
39
- let { data } = await this.server._get<{ rows: CostRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
40
- return data;
41
- }
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 { FilterItem } from "namirasoft-core";
23
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
24
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
25
+ import { SortItem } from "namirasoft-core";
26
+
27
+ export class NamirasoftCostServerCost extends NamirasoftCostServerBase
28
+ {
29
+ constructor(server: NamirasoftCostServer)
30
+ {
31
+ super(server);
32
+ this.List = this.List.bind(this);
33
+ }
34
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: CostRow[], count: number }>
35
+ {
36
+ let filters_string_value: string = FilterItem.stringify(filters);
37
+ let sorts_string_value: string = SortItem.stringify(sorts);
38
+ let path = `/cost/list`;
39
+ let { data } = await this.server._get<{ rows: CostRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
40
+ return data;
41
+ }
42
42
  };
@@ -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 { CalculationOption } from "./type/CalculationOption";
22
- import { CostRow } from "./row/CostRow";
23
- import { Estimation } from "./type/Estimation";
24
- import { EstimationOption } from "./type/EstimationOption";
25
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
-
28
- export class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase
29
- {
30
- constructor(server: NamirasoftCostServer)
31
- {
32
- super(server);
33
- this.EstimateRecord = this.EstimateRecord.bind(this);
34
- this._CreateForRecord = this._CreateForRecord.bind(this);
35
- }
36
- async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
- {
38
- let path = `/estimation/field/category/record`;
39
- let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
- return data;
41
- }
42
- async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
- {
44
- let path = `/application/user/${user_id}/cost/field/category/record`;
45
- let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
- return data;
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 { CalculationOption } from "./type/CalculationOption";
22
+ import { CostRow } from "./row/CostRow";
23
+ import { Estimation } from "./type/Estimation";
24
+ import { EstimationOption } from "./type/EstimationOption";
25
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
+
28
+ export class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase
29
+ {
30
+ constructor(server: NamirasoftCostServer)
31
+ {
32
+ super(server);
33
+ this.EstimateRecord = this.EstimateRecord.bind(this);
34
+ this._CreateForRecord = this._CreateForRecord.bind(this);
35
+ }
36
+ async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
+ {
38
+ let path = `/estimation/field/category/record`;
39
+ let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
+ return data;
41
+ }
42
+ async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
+ {
44
+ let path = `/application/user/${user_id}/cost/field/category/record`;
45
+ let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
+ return data;
47
+ }
48
48
  };
@@ -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 { CalculationOption } from "./type/CalculationOption";
22
- import { CostRow } from "./row/CostRow";
23
- import { Estimation } from "./type/Estimation";
24
- import { EstimationOption } from "./type/EstimationOption";
25
- import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
- import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
-
28
- export class NamirasoftCostServerFieldField extends NamirasoftCostServerBase
29
- {
30
- constructor(server: NamirasoftCostServer)
31
- {
32
- super(server);
33
- this.EstimateRecord = this.EstimateRecord.bind(this);
34
- this._CreateForRecord = this._CreateForRecord.bind(this);
35
- }
36
- async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
- {
38
- let path = `/estimation/field/field/record`;
39
- let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
- return data;
41
- }
42
- async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
- {
44
- let path = `/application/user/${user_id}/cost/field/field/record`;
45
- let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
- return data;
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 { CalculationOption } from "./type/CalculationOption";
22
+ import { CostRow } from "./row/CostRow";
23
+ import { Estimation } from "./type/Estimation";
24
+ import { EstimationOption } from "./type/EstimationOption";
25
+ import { NamirasoftCostServer } from "./NamirasoftCostServer";
26
+ import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
27
+
28
+ export class NamirasoftCostServerFieldField extends NamirasoftCostServerBase
29
+ {
30
+ constructor(server: NamirasoftCostServer)
31
+ {
32
+ super(server);
33
+ this.EstimateRecord = this.EstimateRecord.bind(this);
34
+ this._CreateForRecord = this._CreateForRecord.bind(this);
35
+ }
36
+ async EstimateRecord(body: EstimationOption): Promise<Estimation[]>
37
+ {
38
+ let path = `/estimation/field/field/record`;
39
+ let { data } = await this.server._post<Estimation[]>(path, {}, body);
40
+ return data;
41
+ }
42
+ async _CreateForRecord(user_id: string, body: CalculationOption): Promise<CostRow[]>
43
+ {
44
+ let path = `/application/user/${user_id}/cost/field/field/record`;
45
+ let { data } = await this.server._post<CostRow[]>(path, {}, body);
46
+ return data;
47
+ }
48
48
  };