namirasoft-cost 1.4.7 → 1.4.9

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 +8 -0
  5. package/dist/NamirasoftCostServerBillWatchAWS.js +9 -1
  6. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  7. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +8 -0
  8. package/dist/NamirasoftCostServerBillWatchAzure.js +9 -1
  9. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  10. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +8 -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 +85 -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 +85 -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 +85 -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 +92 -0
  51. package/src/command/BillWatchAzureCommand.ts +33 -31
  52. package/src/command/BillWatchAzureEstimationCommand.ts +73 -73
  53. package/src/command/BillWatchAzure_CreateForCommand.ts +92 -0
  54. package/src/command/BillWatchGCPCommand.ts +33 -31
  55. package/src/command/BillWatchGCPEstimationCommand.ts +73 -73
  56. package/src/command/BillWatchGCP_CreateForCommand.ts +92 -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
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
@@ -10,7 +10,7 @@ const NamirasoftCostServerHealthz_1 = require("./NamirasoftCostServerHealthz");
10
10
  const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
11
11
  class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
12
12
  constructor(base_url, manager, onError) {
13
- super(base_url, `1.4.6`, manager, onError);
13
+ super(base_url, `1.4.9`, manager, onError);
14
14
  this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
15
15
  this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
16
16
  this.bill_watch_a_w_s = new NamirasoftCostServerBillWatchAWS_1.NamirasoftCostServerBillWatchAWS(this);
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -9,4 +10,11 @@ export declare class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServ
9
10
  period: Period;
10
11
  active: boolean;
11
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ workspace_id: string;
18
+ resource_id: string;
19
+ }): Promise<CostRow>;
12
20
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase_1.Namira
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/aws`;
22
+ let path = `/estimation/bill-watch/aws`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/aws`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAWS.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA6H;;YAE3J,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -9,4 +10,11 @@ export declare class NamirasoftCostServerBillWatchAzure extends NamirasoftCostSe
9
10
  period: Period;
10
11
  active: boolean;
11
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ workspace_id: string;
18
+ resource_id: string;
19
+ }): Promise<CostRow>;
12
20
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase_1.Nami
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/azure`;
22
+ let path = `/estimation/bill-watch/azure`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/azure`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,oCAAoC,CAAC;YAChD,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,gFAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchAzure.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchAzure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,kCAAmC,SAAQ,mDAAwB;IAE5E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,8BAA8B,CAAC;YAC1C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA6H;;YAE3J,IAAI,IAAI,GAAG,qBAAqB,OAAO,wBAAwB,CAAC;YAChE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,gFAoBC;AAAA,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { CostRow } from "./row/CostRow";
1
2
  import { Estimation } from "./type/Estimation";
2
3
  import { NamirasoftCostServer } from "./NamirasoftCostServer";
3
4
  import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
@@ -9,4 +10,11 @@ export declare class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServ
9
10
  period: Period;
10
11
  active: boolean;
11
12
  }): Promise<Estimation>;
13
+ _CreateFor(user_id: string, body: {
14
+ first_watch_created_at: (string | null);
15
+ period: Period;
16
+ active: boolean;
17
+ workspace_id: string;
18
+ resource_id: string;
19
+ }): Promise<CostRow>;
12
20
  }
@@ -15,10 +15,18 @@ class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase_1.Namira
15
15
  constructor(server) {
16
16
  super(server);
17
17
  this.Estimation = this.Estimation.bind(this);
18
+ this._CreateFor = this._CreateFor.bind(this);
18
19
  }
19
20
  Estimation(body) {
20
21
  return __awaiter(this, void 0, void 0, function* () {
21
- let path = `/estimation/bill-watch/watch/gcp`;
22
+ let path = `/estimation/bill-watch/gcp`;
23
+ let { data } = yield this.server._post(path, {}, body);
24
+ return data;
25
+ });
26
+ }
27
+ _CreateFor(user_id, body) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
22
30
  let { data } = yield this.server._post(path, {}, body);
23
31
  return data;
24
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,kCAAkC,CAAC;YAC9C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAbD,4EAaC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftCostServerBillWatchGCP.js","sourceRoot":"","sources":["../src/NamirasoftCostServerBillWatchGCP.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,yEAAsE;AAGtE,MAAa,gCAAiC,SAAQ,mDAAwB;IAE1E,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACK,UAAU,CAAC,IAAkF;;YAE/F,IAAI,IAAI,GAAG,4BAA4B,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,UAAU,CAAC,OAAe,EAAE,IAA6H;;YAE3J,IAAI,IAAI,GAAG,qBAAqB,OAAO,sBAAsB,CAAC;YAC9D,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,4EAoBC;AAAA,CAAC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchAWSCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchAWSEstimationCommand_1 = require("./BillWatchAWSEstimationCommand");
6
+ const BillWatchAWS_CreateForCommand_1 = require("./BillWatchAWS_CreateForCommand");
6
7
  class BillWatchAWSCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchAWSEstimationCommand_1.BillWatchAWSEstimationCommand,
11
+ "_createfor": BillWatchAWS_CreateForCommand_1.BillWatchAWS_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AARD,kDAQC;AAAA,CAAC"}
1
+ {"version":3,"file":"BillWatchAWSCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWSCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAChF,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;YAC3C,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAWS_CreateForCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BillWatchAWS_CreateForCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class BillWatchAWS_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["user_id"], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "active",
38
+ short: "",
39
+ description: "Provides the value of 'active' in body",
40
+ optional: false,
41
+ args: ["active"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "workspace_id",
46
+ short: "",
47
+ description: "Provides the value of 'workspace_id' in body",
48
+ optional: false,
49
+ args: ["workspace_id"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "resource_id",
54
+ short: "",
55
+ description: "Provides the value of 'resource_id' in body",
56
+ optional: false,
57
+ args: ["resource_id"],
58
+ defaults: [""]
59
+ }
60
+ ]);
61
+ }
62
+ exec() {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ let token = this.app.storage.getNSAToken();
65
+ if (token == null)
66
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
67
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
68
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
69
+ manager.setValue(token, false);
70
+ let url = this.app.storage.getItem("ns-cost-server-url");
71
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
+ let ans = yield server.bill_watch_a_w_s._CreateFor(this.arg_values[0], {
73
+ first_watch_created_at: this.option_values.first_watch_created_at,
74
+ period: this.option_values.period,
75
+ active: this.option_values.active,
76
+ workspace_id: this.option_values.workspace_id,
77
+ resource_id: this.option_values.resource_id
78
+ });
79
+ this.app.logger.success(JSON.stringify(ans));
80
+ });
81
+ }
82
+ }
83
+ exports.BillWatchAWS_CreateForCommand = BillWatchAWS_CreateForCommand;
84
+ ;
85
+ //# sourceMappingURL=BillWatchAWS_CreateForCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAWS_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAWS_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,6BAA8B,SAAQ,sCAAgB;IAE/D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,wBAAwB,CAAC;gBAChC,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,E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,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,sEAkEC;AAAA,CAAC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchAzureCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchAzureEstimationCommand_1 = require("./BillWatchAzureEstimationCommand");
6
+ const BillWatchAzure_CreateForCommand_1 = require("./BillWatchAzure_CreateForCommand");
6
7
  class BillWatchAzureCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchAzureEstimationCommand_1.BillWatchAzureEstimationCommand,
11
+ "_createfor": BillWatchAzure_CreateForCommand_1.BillWatchAzure_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchAzureCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzureCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uFAAoF;AAEpF,MAAa,qBAAsB,SAAQ,0CAAoB;IAE3D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,iEAA+B;SAChD,CAAC,CAAC;IACP,CAAC;CACJ;AARD,sDAQC;AAAA,CAAC"}
1
+ {"version":3,"file":"BillWatchAzureCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzureCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,uFAAoF;AACpF,uFAAoF;AAEpF,MAAa,qBAAsB,SAAQ,0CAAoB;IAE3D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,iEAA+B;YAC7C,YAAY,EAAE,iEAA+B;SAChD,CAAC,CAAC;IACP,CAAC;CACJ;AATD,sDASC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchAzure_CreateForCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BillWatchAzure_CreateForCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class BillWatchAzure_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["user_id"], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "active",
38
+ short: "",
39
+ description: "Provides the value of 'active' in body",
40
+ optional: false,
41
+ args: ["active"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "workspace_id",
46
+ short: "",
47
+ description: "Provides the value of 'workspace_id' in body",
48
+ optional: false,
49
+ args: ["workspace_id"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "resource_id",
54
+ short: "",
55
+ description: "Provides the value of 'resource_id' in body",
56
+ optional: false,
57
+ args: ["resource_id"],
58
+ defaults: [""]
59
+ }
60
+ ]);
61
+ }
62
+ exec() {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ let token = this.app.storage.getNSAToken();
65
+ if (token == null)
66
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
67
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
68
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
69
+ manager.setValue(token, false);
70
+ let url = this.app.storage.getItem("ns-cost-server-url");
71
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
+ let ans = yield server.bill_watch_azure._CreateFor(this.arg_values[0], {
73
+ first_watch_created_at: this.option_values.first_watch_created_at,
74
+ period: this.option_values.period,
75
+ active: this.option_values.active,
76
+ workspace_id: this.option_values.workspace_id,
77
+ resource_id: this.option_values.resource_id
78
+ });
79
+ this.app.logger.success(JSON.stringify(ans));
80
+ });
81
+ }
82
+ }
83
+ exports.BillWatchAzure_CreateForCommand = BillWatchAzure_CreateForCommand;
84
+ ;
85
+ //# sourceMappingURL=BillWatchAzure_CreateForCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchAzure_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchAzure_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D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IAAI,KAAK,CAAC,yGAAyG,CAAC,CAAC;YAC/H,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACzD,IAAI,MAAM,GAAG,IAAI,2CAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACnE,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,0EAkEC;AAAA,CAAC"}
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillWatchGCPCommand = void 0;
4
4
  const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
5
  const BillWatchGCPEstimationCommand_1 = require("./BillWatchGCPEstimationCommand");
6
+ const BillWatchGCP_CreateForCommand_1 = require("./BillWatchGCP_CreateForCommand");
6
7
  class BillWatchGCPCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
8
  constructor(argv) {
8
9
  super(argv, {
9
10
  "estimation": BillWatchGCPEstimationCommand_1.BillWatchGCPEstimationCommand,
11
+ "_createfor": BillWatchGCP_CreateForCommand_1.BillWatchGCP_CreateForCommand,
10
12
  });
11
13
  }
12
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BillWatchGCPCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCPCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AARD,kDAQC;AAAA,CAAC"}
1
+ {"version":3,"file":"BillWatchGCPCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCPCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mFAAgF;AAChF,mFAAgF;AAEhF,MAAa,mBAAoB,SAAQ,0CAAoB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,YAAY,EAAE,6DAA6B;YAC3C,YAAY,EAAE,6DAA6B;SAC9C,CAAC,CAAC;IACP,CAAC;CACJ;AATD,kDASC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class BillWatchGCP_CreateForCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BillWatchGCP_CreateForCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftCostServer_1 = require("../NamirasoftCostServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class BillWatchGCP_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["user_id"], [
20
+ {
21
+ name: "first_watch_created_at",
22
+ short: "",
23
+ description: "Provides the value of 'first_watch_created_at' in body",
24
+ optional: true,
25
+ args: ["first_watch_created_at"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "period",
30
+ short: "",
31
+ description: "Provides the value of 'period' in body",
32
+ optional: false,
33
+ args: ["period"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "active",
38
+ short: "",
39
+ description: "Provides the value of 'active' in body",
40
+ optional: false,
41
+ args: ["active"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "workspace_id",
46
+ short: "",
47
+ description: "Provides the value of 'workspace_id' in body",
48
+ optional: false,
49
+ args: ["workspace_id"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "resource_id",
54
+ short: "",
55
+ description: "Provides the value of 'resource_id' in body",
56
+ optional: false,
57
+ args: ["resource_id"],
58
+ defaults: [""]
59
+ }
60
+ ]);
61
+ }
62
+ exec() {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ let token = this.app.storage.getNSAToken();
65
+ if (token == null)
66
+ throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
67
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
68
+ let manager = new namirasoft_account_1.TokenManager(storage, () => { });
69
+ manager.setValue(token, false);
70
+ let url = this.app.storage.getItem("ns-cost-server-url");
71
+ let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
+ let ans = yield server.bill_watch_g_c_p._CreateFor(this.arg_values[0], {
73
+ first_watch_created_at: this.option_values.first_watch_created_at,
74
+ period: this.option_values.period,
75
+ active: this.option_values.active,
76
+ workspace_id: this.option_values.workspace_id,
77
+ resource_id: this.option_values.resource_id
78
+ });
79
+ this.app.logger.success(JSON.stringify(ans));
80
+ });
81
+ }
82
+ }
83
+ exports.BillWatchGCP_CreateForCommand = BillWatchGCP_CreateForCommand;
84
+ ;
85
+ //# sourceMappingURL=BillWatchGCP_CreateForCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BillWatchGCP_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/BillWatchGCP_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,6BAA8B,SAAQ,sCAAgB;IAE/D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wDAAwD;gBACrE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,wBAAwB,CAAC;gBAChC,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,QAAQ,CAAC;gBAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,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YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACnE,sBAAsB,EAAE,IAAI,CAAC,aAAa,CAAC,sBAAsB;gBACjE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,sEAkEC;AAAA,CAAC"}
@@ -18,43 +18,43 @@ class Cost_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
18
  constructor(argv) {
19
19
  super(argv, ["user_id"], [
20
20
  {
21
- name: "sales_item_id",
21
+ name: "workspace_id",
22
22
  short: "",
23
- description: "Provides the value of 'sales_item_id' in body",
23
+ description: "Provides the value of 'workspace_id' in body",
24
24
  optional: false,
25
- args: ["sales_item_id"],
25
+ args: ["workspace_id"],
26
26
  defaults: [""]
27
27
  },
28
28
  {
29
- name: "offer_id",
29
+ name: "product_id",
30
30
  short: "",
31
- description: "Provides the value of 'offer_id' in body",
31
+ description: "Provides the value of 'product_id' in body",
32
32
  optional: false,
33
- args: ["offer_id"],
33
+ args: ["product_id"],
34
34
  defaults: [""]
35
35
  },
36
36
  {
37
- name: "offer_item_id",
37
+ name: "sales_item_id",
38
38
  short: "",
39
- description: "Provides the value of 'offer_item_id' in body",
39
+ description: "Provides the value of 'sales_item_id' in body",
40
40
  optional: false,
41
- args: ["offer_item_id"],
41
+ args: ["sales_item_id"],
42
42
  defaults: [""]
43
43
  },
44
44
  {
45
- name: "workspace_id",
45
+ name: "offer_id",
46
46
  short: "",
47
- description: "Provides the value of 'workspace_id' in body",
47
+ description: "Provides the value of 'offer_id' in body",
48
48
  optional: false,
49
- args: ["workspace_id"],
49
+ args: ["offer_id"],
50
50
  defaults: [""]
51
51
  },
52
52
  {
53
- name: "product_id",
53
+ name: "offer_item_id",
54
54
  short: "",
55
- description: "Provides the value of 'product_id' in body",
55
+ description: "Provides the value of 'offer_item_id' in body",
56
56
  optional: false,
57
- args: ["product_id"],
57
+ args: ["offer_item_id"],
58
58
  defaults: [""]
59
59
  },
60
60
  {
@@ -142,11 +142,11 @@ class Cost_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
142
142
  let url = this.app.storage.getItem("ns-cost-server-url");
143
143
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
144
144
  let ans = yield server.cost._CreateFor(this.arg_values[0], {
145
+ workspace_id: this.option_values.workspace_id,
146
+ product_id: this.option_values.product_id,
145
147
  sales_item_id: this.option_values.sales_item_id,
146
148
  offer_id: this.option_values.offer_id,
147
149
  offer_item_id: this.option_values.offer_item_id,
148
- workspace_id: this.option_values.workspace_id,
149
- product_id: this.option_values.product_id,
150
150
  resource_entity: this.option_values.resource_entity,
151
151
  resource_id: this.option_values.resource_id,
152
152
  usage_name: this.option_values.usage_name,
@@ -1 +1 @@
1
- {"version":3,"file":"Cost_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/Cost_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,qBAAsB,SAAQ,sCAAgB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,+CAA+C;gBAC5D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAA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