namirasoft-cost 1.4.32 → 1.4.34

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 (80) hide show
  1. package/.ns-sdkg-dir-deep +3 -3
  2. package/.ns-sdkg-file-keep +27 -28
  3. package/dist/bonus/DeactiveBonus.d.ts +1 -2
  4. package/dist/bonus/DeactiveBonus.js +1 -2
  5. package/dist/bonus/DeactiveBonus.js.map +1 -1
  6. package/dist/estimator/BillWatchBaseRecordEstimator.d.ts +2 -1
  7. package/dist/estimator/BillWatchBaseRecordEstimator.js +3 -1
  8. package/dist/estimator/BillWatchBaseRecordEstimator.js.map +1 -1
  9. package/dist/index.d.ts +0 -1
  10. package/dist/index.js +0 -1
  11. package/dist/index.js.map +1 -1
  12. package/package.json +28 -28
  13. package/src/NamirasoftCostServer.ts +59 -59
  14. package/src/NamirasoftCostServerBase.ts +29 -29
  15. package/src/NamirasoftCostServerBillWatchAWS.ts +47 -47
  16. package/src/NamirasoftCostServerBillWatchAzure.ts +47 -47
  17. package/src/NamirasoftCostServerBillWatchGCP.ts +47 -47
  18. package/src/NamirasoftCostServerCost.ts +41 -41
  19. package/src/NamirasoftCostServerFieldCategory.ts +47 -47
  20. package/src/NamirasoftCostServerFieldField.ts +47 -47
  21. package/src/NamirasoftCostServerHealthz.ts +35 -35
  22. package/src/NamirasoftCostServerMetrics.ts +35 -35
  23. package/src/NamirasoftCostServerSecretSecret.ts +61 -61
  24. package/src/NamirasoftCostServerValue.ts +36 -36
  25. package/src/bonus/BaseBonus.ts +13 -13
  26. package/src/bonus/DeactiveBonus.ts +14 -14
  27. package/src/bonus/FreeCountBonus.ts +14 -14
  28. package/src/bonus/FreeTotalValueBonus.ts +28 -28
  29. package/src/bonus/FreeValueBonus.ts +24 -24
  30. package/src/bonus/LowAmountBonus.ts +14 -14
  31. package/src/bonus/LowSecondsBonus.ts +14 -14
  32. package/src/bonus/LowTotalValueBonus.ts +14 -14
  33. package/src/bonus/LowValueBonus.ts +14 -14
  34. package/src/bonus/TrialBonus.ts +18 -18
  35. package/src/command/BillWatchAWSCommand.ts +33 -33
  36. package/src/command/BillWatchAWSEstimateRecordCommand.ts +109 -109
  37. package/src/command/BillWatchAWS_CreateForRecordCommand.ts +118 -118
  38. package/src/command/BillWatchAzureCommand.ts +33 -33
  39. package/src/command/BillWatchAzureEstimateRecordCommand.ts +109 -109
  40. package/src/command/BillWatchAzure_CreateForRecordCommand.ts +118 -118
  41. package/src/command/BillWatchGCPCommand.ts +33 -33
  42. package/src/command/BillWatchGCPEstimateRecordCommand.ts +109 -109
  43. package/src/command/BillWatchGCP_CreateForRecordCommand.ts +118 -118
  44. package/src/command/CostCommand.ts +31 -31
  45. package/src/command/CostListCommand.ts +44 -44
  46. package/src/command/FieldCategoryCommand.ts +33 -33
  47. package/src/command/FieldCategoryEstimateRecordCommand.ts +109 -109
  48. package/src/command/FieldCategory_CreateForRecordCommand.ts +118 -118
  49. package/src/command/FieldFieldCommand.ts +33 -33
  50. package/src/command/FieldFieldEstimateRecordCommand.ts +109 -109
  51. package/src/command/FieldField_CreateForRecordCommand.ts +118 -118
  52. package/src/command/HealthzCommand.ts +31 -31
  53. package/src/command/HealthzGetCommand.ts +44 -44
  54. package/src/command/MetricsCommand.ts +31 -31
  55. package/src/command/MetricsGetCommand.ts +44 -44
  56. package/src/command/SecretSecretCommand.ts +37 -37
  57. package/src/command/SecretSecretEstimateReadCommand.ts +109 -109
  58. package/src/command/SecretSecretEstimateRecordCommand.ts +109 -109
  59. package/src/command/SecretSecret_CreateForReadCommand.ts +118 -118
  60. package/src/command/SecretSecret_CreateForRecordCommand.ts +118 -118
  61. package/src/command/ValueCommand.ts +31 -31
  62. package/src/command/ValueListCommand.ts +44 -44
  63. package/src/command/cli.ts +50 -50
  64. package/src/estimator/BillWatchBaseRecordEstimator.ts +3 -1
  65. package/src/index.ts +90 -91
  66. package/src/meta/CostMetaTable.ts +81 -81
  67. package/src/meta/NamirasoftCostMetaDatabase.ts +50 -50
  68. package/src/row/CostRow.ts +40 -40
  69. package/src/type/Bonus.ts +20 -20
  70. package/src/type/CalculationOption.ts +33 -33
  71. package/src/type/Estimation.ts +34 -34
  72. package/src/type/EstimationOption.ts +31 -31
  73. package/src/type/EstimationUsage.ts +22 -22
  74. package/src/type/Period.ts +101 -101
  75. package/src/type/SimulationOption.ts +29 -29
  76. package/src/type/Usage.ts +24 -24
  77. package/dist/bonus/LowTotalCountBonus.d.ts +0 -10
  78. package/dist/bonus/LowTotalCountBonus.js +0 -27
  79. package/dist/bonus/LowTotalCountBonus.js.map +0 -1
  80. package/src/bonus/LowTotalCountBonus.ts +0 -15
package/.ns-sdkg-dir-deep CHANGED
@@ -1,4 +1,4 @@
1
- /src
2
- /src/bonus
3
- /src/estimator
1
+ /src
2
+ /src/bonus
3
+ /src/estimator
4
4
  /src/type
@@ -1,29 +1,28 @@
1
- src/bonus/BaseBonus.ts
2
- src/bonus/DeactiveBonus.ts
3
- src/bonus/FreeCountBonus.ts
4
- src/bonus/FreeTotalValueBonus.ts
5
- src/bonus/FreeValueBonus.ts
6
- src/bonus/LowAmountBonus.ts
7
- src/bonus/LowSecondsBonus.ts
8
- src/bonus/LowTotalCountBonus.ts
9
- src/bonus/LowTotalValueBonus.ts
10
- src/bonus/LowValueBonus.ts
11
- src/bonus/TrialBonus.ts
12
- src/estimator/BaseEstimator.ts
13
- src/estimator/BillWatchAWSRecordEstimator.ts
14
- src/estimator/BillWatchAzureRecordEstimator.ts
15
- src/estimator/BillWatchBaseRecordEstimator.ts
16
- src/estimator/BillWatchGCPRecordEstimator.ts
17
- src/estimator/FieldBaseRecordEstimator.ts
18
- src/estimator/FieldCategoryRecordEstimator.ts
19
- src/estimator/FieldFieldRecordEstimator.ts
20
- src/estimator/SecretSecretRecordEstimator.ts
21
- src/estimator/SecretSecretReadEstimator.ts
22
- src/type/Bonus.ts
23
- src/type/CalculationOption.ts
24
- src/type/Estimation.ts
25
- src/type/EstimationOption.ts
26
- src/type/EstimationUsage.ts
27
- src/type/Period.ts
28
- src/type/SimulationOption.ts
1
+ src/bonus/BaseBonus.ts
2
+ src/bonus/DeactiveBonus.ts
3
+ src/bonus/FreeCountBonus.ts
4
+ src/bonus/FreeTotalValueBonus.ts
5
+ src/bonus/FreeValueBonus.ts
6
+ src/bonus/LowAmountBonus.ts
7
+ src/bonus/LowSecondsBonus.ts
8
+ src/bonus/LowTotalValueBonus.ts
9
+ src/bonus/LowValueBonus.ts
10
+ src/bonus/TrialBonus.ts
11
+ src/estimator/BaseEstimator.ts
12
+ src/estimator/BillWatchAWSRecordEstimator.ts
13
+ src/estimator/BillWatchAzureRecordEstimator.ts
14
+ src/estimator/BillWatchBaseRecordEstimator.ts
15
+ src/estimator/BillWatchGCPRecordEstimator.ts
16
+ src/estimator/FieldBaseRecordEstimator.ts
17
+ src/estimator/FieldCategoryRecordEstimator.ts
18
+ src/estimator/FieldFieldRecordEstimator.ts
19
+ src/estimator/SecretSecretRecordEstimator.ts
20
+ src/estimator/SecretSecretReadEstimator.ts
21
+ src/type/Bonus.ts
22
+ src/type/CalculationOption.ts
23
+ src/type/Estimation.ts
24
+ src/type/EstimationOption.ts
25
+ src/type/EstimationUsage.ts
26
+ src/type/Period.ts
27
+ src/type/SimulationOption.ts
29
28
  src/type/Usage.ts
@@ -2,8 +2,7 @@ import { Estimation } from "../type/Estimation";
2
2
  import { EstimationOption } from "../type/EstimationOption";
3
3
  import { BaseBonus } from "./BaseBonus";
4
4
  export declare class DeactiveBonus extends BaseBonus {
5
- count: number;
6
- constructor(count: number);
5
+ constructor();
7
6
  isFree(option: EstimationOption, _: Estimation): Promise<{
8
7
  free: boolean;
9
8
  }>;
@@ -12,9 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DeactiveBonus = void 0;
13
13
  const BaseBonus_1 = require("./BaseBonus");
14
14
  class DeactiveBonus extends BaseBonus_1.BaseBonus {
15
- constructor(count) {
15
+ constructor() {
16
16
  super("Deactive", false);
17
- this.count = count;
18
17
  }
19
18
  isFree(option, _) {
20
19
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"DeactiveBonus.js","sourceRoot":"","sources":["../../src/bonus/DeactiveBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAExC,YAAmB,KAAa;QAE5B,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAFV,UAAK,GAAL,KAAK,CAAQ;IAGhC,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACpC,CAAC;KAAA;CACJ;AAVD,sCAUC;AAAA,CAAC"}
1
+ {"version":3,"file":"DeactiveBonus.js","sourceRoot":"","sources":["../../src/bonus/DeactiveBonus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAExC;QAEI,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IACK,MAAM,CAAC,MAAwB,EAAE,CAAa;;YAEhD,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACpC,CAAC;KAAA;CACJ;AAVD,sCAUC;AAAA,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { BaseEstimator } from "./BaseEstimator";
2
2
  import { TrialBonus } from "../bonus/TrialBonus";
3
+ import { DeactiveBonus } from "../bonus/DeactiveBonus";
3
4
  export declare abstract class BillWatchBaseRecordEstimator extends BaseEstimator {
4
5
  static WATCH_PER_HOUR_ACTIVE: number;
5
6
  getFee(): {
@@ -10,5 +11,5 @@ export declare abstract class BillWatchBaseRecordEstimator extends BaseEstimator
10
11
  name: string;
11
12
  unit: string;
12
13
  };
13
- getBonuses(): TrialBonus[];
14
+ getBonuses(): (DeactiveBonus | TrialBonus)[];
14
15
  }
@@ -5,6 +5,7 @@ const namirasoft_core_1 = require("namirasoft-core");
5
5
  const BaseEstimator_1 = require("./BaseEstimator");
6
6
  const Usage_1 = require("../type/Usage");
7
7
  const TrialBonus_1 = require("../bonus/TrialBonus");
8
+ const DeactiveBonus_1 = require("../bonus/DeactiveBonus");
8
9
  class BillWatchBaseRecordEstimator extends BaseEstimator_1.BaseEstimator {
9
10
  getFee() {
10
11
  return { active: BillWatchBaseRecordEstimator.WATCH_PER_HOUR_ACTIVE, deactive: 0 };
@@ -17,7 +18,8 @@ class BillWatchBaseRecordEstimator extends BaseEstimator_1.BaseEstimator {
17
18
  }
18
19
  getBonuses() {
19
20
  return [
20
- new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week)
21
+ new TrialBonus_1.TrialBonus(1, namirasoft_core_1.DurationUnit.Week),
22
+ new DeactiveBonus_1.DeactiveBonus(),
21
23
  ];
22
24
  }
23
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchBaseRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchBaseRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAC/D,mDAAgD;AAChD,yCAAsC;AACtC,oDAAiD;AAEjD,MAAsB,4BAA6B,SAAQ,6BAAa;IAG3D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvF,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;SACvC,CAAC;IACN,CAAC;;AAnBL,oEAoBC;AAlBU,kDAAqB,GAAG,gCAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"BillWatchBaseRecordEstimator.js","sourceRoot":"","sources":["../../src/estimator/BillWatchBaseRecordEstimator.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAC/D,mDAAgD;AAChD,yCAAsC;AACtC,oDAAiD;AACjD,0DAAuD;AAEvD,MAAsB,4BAA6B,SAAQ,6BAAa;IAG3D,MAAM;QAEX,OAAO,EAAE,MAAM,EAAE,4BAA4B,CAAC,qBAAqB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvF,CAAC;IACQ,QAAQ;QAEb,OAAO;YACH,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;YACrB,IAAI,EAAE,aAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI;SACnC,CAAC;IACN,CAAC;IACQ,UAAU;QAEf,OAAO;YACH,IAAI,uBAAU,CAAC,CAAC,EAAE,8BAAY,CAAC,IAAI,CAAC;YACpC,IAAI,6BAAa,EAAE;SACtB,CAAC;IACN,CAAC;;AApBL,oEAqBC;AAnBU,kDAAqB,GAAG,gCAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -17,7 +17,6 @@ export * from "./bonus/FreeTotalValueBonus";
17
17
  export * from "./bonus/FreeValueBonus";
18
18
  export * from "./bonus/LowAmountBonus";
19
19
  export * from "./bonus/LowSecondsBonus";
20
- export * from "./bonus/LowTotalCountBonus";
21
20
  export * from "./bonus/LowTotalValueBonus";
22
21
  export * from "./bonus/LowValueBonus";
23
22
  export * from "./bonus/TrialBonus";
package/dist/index.js CHANGED
@@ -33,7 +33,6 @@ __exportStar(require("./bonus/FreeTotalValueBonus"), exports);
33
33
  __exportStar(require("./bonus/FreeValueBonus"), exports);
34
34
  __exportStar(require("./bonus/LowAmountBonus"), exports);
35
35
  __exportStar(require("./bonus/LowSecondsBonus"), exports);
36
- __exportStar(require("./bonus/LowTotalCountBonus"), exports);
37
36
  __exportStar(require("./bonus/LowTotalValueBonus"), exports);
38
37
  __exportStar(require("./bonus/LowValueBonus"), exports);
39
38
  __exportStar(require("./bonus/TrialBonus"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,yDAAuC;AACvC,6DAA2C;AAC3C,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,gEAA8C;AAC9C,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,4DAA0C;AAC1C,iEAA+C;AAC/C,+EAA6D;AAC7D,iFAA+D;AAC/D,8DAA4C;AAC5C,4EAA0D;AAC1D,8EAA4D;AAC5D,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,4EAA0D;AAC1D,8EAA4D;AAC5D,8EAA4D;AAC5D,gFAA8D;AAC9D,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,0EAAwD;AACxD,4EAA0D;AAC1D,2EAAyD;AACzD,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,wEAAsD;AACtD,wEAAsD;AACtD,0EAAwD;AACxD,uDAAqC;AACrC,oEAAkD;AAClD,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,gDAA8B;AAC9B,0DAAwC;AACxC,+CAA6B"}
package/package.json CHANGED
@@ -1,29 +1,29 @@
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.32",
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.80",
21
- "namirasoft-site": "^1.4.39",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.85",
24
- "namirasoft-schema": "^1.4.25"
25
- },
26
- "bin": {
27
- "ns-cost": "./dist/command/cli.js"
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.34",
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.80",
21
+ "namirasoft-site": "^1.4.39",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.85",
24
+ "namirasoft-schema": "^1.4.25"
25
+ },
26
+ "bin": {
27
+ "ns-cost": "./dist/command/cli.js"
28
+ }
29
29
  }
@@ -1,60 +1,60 @@
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 { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
31
- import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
32
- import { TokenManager } from "namirasoft-account";
33
-
34
- export class NamirasoftCostServer extends NSABaseServer
35
- {
36
- healthz: NamirasoftCostServerHealthz;
37
- metrics: NamirasoftCostServerMetrics;
38
- value: NamirasoftCostServerValue;
39
- bill_watch_aws: NamirasoftCostServerBillWatchAWS;
40
- bill_watch_azure: NamirasoftCostServerBillWatchAzure;
41
- bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
42
- field_category: NamirasoftCostServerFieldCategory;
43
- field_field: NamirasoftCostServerFieldField;
44
- secret_secret: NamirasoftCostServerSecretSecret;
45
- cost: NamirasoftCostServerCost;
46
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
- {
48
- super(base_url, `1.4.30`, manager, onError);
49
- this.healthz = new NamirasoftCostServerHealthz(this);
50
- this.metrics = new NamirasoftCostServerMetrics(this);
51
- this.value = new NamirasoftCostServerValue(this);
52
- this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
53
- this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
54
- this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
55
- this.field_category = new NamirasoftCostServerFieldCategory(this);
56
- this.field_field = new NamirasoftCostServerFieldField(this);
57
- this.secret_secret = new NamirasoftCostServerSecretSecret(this);
58
- this.cost = new NamirasoftCostServerCost(this);
59
- }
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 { NamirasoftCostServerSecretSecret } from "./NamirasoftCostServerSecretSecret";
31
+ import { NamirasoftCostServerValue } from "./NamirasoftCostServerValue";
32
+ import { TokenManager } from "namirasoft-account";
33
+
34
+ export class NamirasoftCostServer extends NSABaseServer
35
+ {
36
+ healthz: NamirasoftCostServerHealthz;
37
+ metrics: NamirasoftCostServerMetrics;
38
+ value: NamirasoftCostServerValue;
39
+ bill_watch_aws: NamirasoftCostServerBillWatchAWS;
40
+ bill_watch_azure: NamirasoftCostServerBillWatchAzure;
41
+ bill_watch_gcp: NamirasoftCostServerBillWatchGCP;
42
+ field_category: NamirasoftCostServerFieldCategory;
43
+ field_field: NamirasoftCostServerFieldField;
44
+ secret_secret: NamirasoftCostServerSecretSecret;
45
+ cost: NamirasoftCostServerCost;
46
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
+ {
48
+ super(base_url, `1.4.30`, manager, onError);
49
+ this.healthz = new NamirasoftCostServerHealthz(this);
50
+ this.metrics = new NamirasoftCostServerMetrics(this);
51
+ this.value = new NamirasoftCostServerValue(this);
52
+ this.bill_watch_aws = new NamirasoftCostServerBillWatchAWS(this);
53
+ this.bill_watch_azure = new NamirasoftCostServerBillWatchAzure(this);
54
+ this.bill_watch_gcp = new NamirasoftCostServerBillWatchGCP(this);
55
+ this.field_category = new NamirasoftCostServerFieldCategory(this);
56
+ this.field_field = new NamirasoftCostServerFieldField(this);
57
+ this.secret_secret = new NamirasoftCostServerSecretSecret(this);
58
+ this.cost = new NamirasoftCostServerCost(this);
59
+ }
60
60
  };
@@ -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
  };