namirasoft-cost 1.4.15 → 1.4.17

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 (62) hide show
  1. package/.ns-sdkg-file-keep +1 -0
  2. package/dist/NamirasoftCostServer.js +1 -1
  3. package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -2
  4. package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
  5. package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -2
  6. package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
  7. package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -2
  8. package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
  9. package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -2
  10. package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
  11. package/dist/NamirasoftCostServerFieldField.d.ts +4 -2
  12. package/dist/NamirasoftCostServerFieldField.js.map +1 -1
  13. package/dist/command/BillWatchAWSEstimationCommand.js +14 -5
  14. package/dist/command/BillWatchAWSEstimationCommand.js.map +1 -1
  15. package/dist/command/BillWatchAWS_CreateForCommand.js +13 -4
  16. package/dist/command/BillWatchAWS_CreateForCommand.js.map +1 -1
  17. package/dist/command/BillWatchAzureEstimationCommand.js +14 -5
  18. package/dist/command/BillWatchAzureEstimationCommand.js.map +1 -1
  19. package/dist/command/BillWatchAzure_CreateForCommand.js +13 -4
  20. package/dist/command/BillWatchAzure_CreateForCommand.js.map +1 -1
  21. package/dist/command/BillWatchGCPEstimationCommand.js +14 -5
  22. package/dist/command/BillWatchGCPEstimationCommand.js.map +1 -1
  23. package/dist/command/BillWatchGCP_CreateForCommand.js +13 -4
  24. package/dist/command/BillWatchGCP_CreateForCommand.js.map +1 -1
  25. package/dist/command/Cost_CreateForCommand.js +10 -1
  26. package/dist/command/Cost_CreateForCommand.js.map +1 -1
  27. package/dist/command/FieldCategoryEstimationCommand.js +14 -5
  28. package/dist/command/FieldCategoryEstimationCommand.js.map +1 -1
  29. package/dist/command/FieldCategory_CreateForCommand.js +13 -4
  30. package/dist/command/FieldCategory_CreateForCommand.js.map +1 -1
  31. package/dist/command/FieldFieldEstimationCommand.js +14 -5
  32. package/dist/command/FieldFieldEstimationCommand.js.map +1 -1
  33. package/dist/command/FieldField_CreateForCommand.js +13 -4
  34. package/dist/command/FieldField_CreateForCommand.js.map +1 -1
  35. package/dist/meta/CostMetaTable.d.ts +1 -0
  36. package/dist/meta/CostMetaTable.js +1 -0
  37. package/dist/meta/CostMetaTable.js.map +1 -1
  38. package/dist/row/CostCreateRow.d.ts +1 -0
  39. package/dist/row/CostRow.d.ts +1 -0
  40. package/dist/type/EstimationRow.d.ts +2 -1
  41. package/package.json +1 -1
  42. package/src/NamirasoftCostServer.ts +1 -1
  43. package/src/NamirasoftCostServerBillWatchAWS.ts +2 -2
  44. package/src/NamirasoftCostServerBillWatchAzure.ts +2 -2
  45. package/src/NamirasoftCostServerBillWatchGCP.ts +2 -2
  46. package/src/NamirasoftCostServerFieldCategory.ts +2 -2
  47. package/src/NamirasoftCostServerFieldField.ts +2 -2
  48. package/src/command/BillWatchAWSEstimationCommand.ts +14 -5
  49. package/src/command/BillWatchAWS_CreateForCommand.ts +13 -4
  50. package/src/command/BillWatchAzureEstimationCommand.ts +14 -5
  51. package/src/command/BillWatchAzure_CreateForCommand.ts +13 -4
  52. package/src/command/BillWatchGCPEstimationCommand.ts +14 -5
  53. package/src/command/BillWatchGCP_CreateForCommand.ts +13 -4
  54. package/src/command/Cost_CreateForCommand.ts +10 -1
  55. package/src/command/FieldCategoryEstimationCommand.ts +14 -5
  56. package/src/command/FieldCategory_CreateForCommand.ts +13 -4
  57. package/src/command/FieldFieldEstimationCommand.ts +14 -5
  58. package/src/command/FieldField_CreateForCommand.ts +13 -4
  59. package/src/meta/CostMetaTable.ts +2 -0
  60. package/src/row/CostCreateRow.ts +1 -0
  61. package/src/row/CostRow.ts +1 -0
  62. package/src/type/EstimationRow.ts +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"FieldCategory_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/FieldCategory_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,8BAA+B,SAAQ,sCAAgB;IAEhE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,cAAc,CAAC;gBACtB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,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"}
1
+ {"version":3,"file":"FieldCategory_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/FieldCategory_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,8BAA+B,SAAQ,sCAAgB;IAEhE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,yBAAyB,CAAC;gBACjC,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,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,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,cAAc,CAAC;gBACtB,QAAQ,EAAE,CAAC,EAAE,CAAC;aAC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AC7C,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;AA3ED,wEA2EC;AAAA,CAAC"}
@@ -26,11 +26,11 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
26
26
  defaults: [""]
27
27
  },
28
28
  {
29
- name: "period",
29
+ name: "number",
30
30
  short: "",
31
- description: "Provides the value of 'period' in body",
31
+ description: "Provides the value of 'number' in body",
32
32
  optional: false,
33
- args: ["period"],
33
+ args: ["number"],
34
34
  defaults: [""]
35
35
  },
36
36
  {
@@ -40,6 +40,14 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
40
40
  optional: false,
41
41
  args: ["active"],
42
42
  defaults: [""]
43
+ },
44
+ {
45
+ name: "period",
46
+ short: "",
47
+ description: "Provides the value of 'period' in body",
48
+ optional: false,
49
+ args: ["period"],
50
+ defaults: [""]
43
51
  }
44
52
  ]);
45
53
  }
@@ -55,8 +63,9 @@ class FieldFieldEstimationCommand extends namirasoft_node_cli_1.BaseFinalCommand
55
63
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
56
64
  let ans = yield server.field_field.Estimation({
57
65
  first_entity_created_at: this.option_values.first_entity_created_at,
58
- period: this.option_values.period,
59
- active: this.option_values.active
66
+ number: this.option_values.number,
67
+ active: this.option_values.active,
68
+ period: this.option_values.period
60
69
  });
61
70
  this.app.logger.success(JSON.stringify(ans));
62
71
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FieldFieldEstimationCommand.js","sourceRoot":"","sources":["../../src/command/FieldFieldEstimationCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;A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C,aAAa,CAAC,MAAM;aACpC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,kEAyDC;AAAA,CAAC"}
@@ -26,11 +26,11 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
26
26
  defaults: [""]
27
27
  },
28
28
  {
29
- name: "period",
29
+ name: "number",
30
30
  short: "",
31
- description: "Provides the value of 'period' in body",
31
+ description: "Provides the value of 'number' in body",
32
32
  optional: false,
33
- args: ["period"],
33
+ args: ["number"],
34
34
  defaults: [""]
35
35
  },
36
36
  {
@@ -41,6 +41,14 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
41
41
  args: ["active"],
42
42
  defaults: [""]
43
43
  },
44
+ {
45
+ name: "period",
46
+ short: "",
47
+ description: "Provides the value of 'period' in body",
48
+ optional: false,
49
+ args: ["period"],
50
+ defaults: [""]
51
+ },
44
52
  {
45
53
  name: "workspace_id",
46
54
  short: "",
@@ -71,8 +79,9 @@ class FieldField_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand
71
79
  let server = new NamirasoftCostServer_1.NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
72
80
  let ans = yield server.field_field._CreateFor(this.arg_values[0], {
73
81
  first_entity_created_at: this.option_values.first_entity_created_at,
74
- period: this.option_values.period,
82
+ number: this.option_values.number,
75
83
  active: this.option_values.active,
84
+ period: this.option_values.period,
76
85
  workspace_id: this.option_values.workspace_id,
77
86
  resource_id: this.option_values.resource_id
78
87
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FieldField_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/FieldField_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,2BA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,CAAC"}
@@ -20,6 +20,7 @@ export declare class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer,
20
20
  period_end: BaseMetaColumn;
21
21
  amount: BaseMetaColumn;
22
22
  currency: BaseMetaColumn;
23
+ description: BaseMetaColumn;
23
24
  created_at: BaseMetaColumn;
24
25
  };
25
26
  constructor(database: NSBaseMetaDatabase<NamirasoftCostServer>);
@@ -32,6 +32,7 @@ class CostMetaTable extends namirasoft_site_1.NSBaseMetaTable {
32
32
  period_end: new namirasoft_core_1.BaseMetaColumn(this, "period_end", "Period End", "DateTime", true),
33
33
  amount: new namirasoft_core_1.BaseMetaColumn(this, "amount", "Amount", "Double", true),
34
34
  currency: new namirasoft_core_1.BaseMetaColumn(this, "currency", "Currency", "String", true),
35
+ description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", true),
35
36
  created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
36
37
  };
37
38
  this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"CostMetaTable.js","sourceRoot":"","sources":["../../src/meta/CostMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AAGtE,MAAa,aAAc,SAAQ,iCAA8C;IAqB7E,YAAY,QAAkD;QAE1D,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,0BAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,YAAY,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,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gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC;YACpE,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACnD,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC9D,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAxDD,sCAwDC;AAAA,CAAC"}
@@ -13,4 +13,5 @@ export type CostCreateRow = {
13
13
  period_end: Date;
14
14
  amount: number;
15
15
  currency: string;
16
+ description: string;
16
17
  };
@@ -15,5 +15,6 @@ export type CostRow = {
15
15
  period_end: Date;
16
16
  amount: number;
17
17
  currency: string;
18
+ description: string;
18
19
  created_at: Date;
19
20
  };
@@ -4,5 +4,6 @@ export type EstimationRow = {
4
4
  period: Period;
5
5
  usage: EstimationUsage;
6
6
  amount: number;
7
- trial: boolean;
7
+ free: boolean;
8
+ free_reason: string;
8
9
  };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.15",
11
+ "version": "1.4.17",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -43,7 +43,7 @@ export class NamirasoftCostServer extends NSABaseServer
43
43
  cost: NamirasoftCostServerCost;
44
44
  constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
45
45
  {
46
- super(base_url, `1.4.11`, manager, onError);
46
+ super(base_url, `1.4.17`, manager, onError);
47
47
  this.healthz = new NamirasoftCostServerHealthz(this);
48
48
  this.metrics = new NamirasoftCostServerMetrics(this);
49
49
  this.value = new NamirasoftCostServerValue(this);
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchAWS extends NamirasoftCostServerBase
32
32
  this.Estimation = this.Estimation.bind(this);
33
33
  this._CreateFor = this._CreateFor.bind(this);
34
34
  }
35
- async Estimation(body: { first_entity_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
35
+ async Estimation(body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period }): Promise<Estimation>
36
36
  {
37
37
  let path = `/estimation/bill-watch/aws`;
38
38
  let { data } = await this.server._post<Estimation>(path, {}, body);
39
39
  return data;
40
40
  }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
41
+ async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
42
  {
43
43
  let path = `/application/user/${user_id}/cost/bill-watch/aws`;
44
44
  let { data } = await this.server._post<CostRow>(path, {}, body);
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchAzure extends NamirasoftCostServerBase
32
32
  this.Estimation = this.Estimation.bind(this);
33
33
  this._CreateFor = this._CreateFor.bind(this);
34
34
  }
35
- async Estimation(body: { first_entity_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
35
+ async Estimation(body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period }): Promise<Estimation>
36
36
  {
37
37
  let path = `/estimation/bill-watch/azure`;
38
38
  let { data } = await this.server._post<Estimation>(path, {}, body);
39
39
  return data;
40
40
  }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
41
+ async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
42
  {
43
43
  let path = `/application/user/${user_id}/cost/bill-watch/azure`;
44
44
  let { data } = await this.server._post<CostRow>(path, {}, body);
@@ -32,13 +32,13 @@ export class NamirasoftCostServerBillWatchGCP extends NamirasoftCostServerBase
32
32
  this.Estimation = this.Estimation.bind(this);
33
33
  this._CreateFor = this._CreateFor.bind(this);
34
34
  }
35
- async Estimation(body: { first_entity_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
35
+ async Estimation(body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period }): Promise<Estimation>
36
36
  {
37
37
  let path = `/estimation/bill-watch/gcp`;
38
38
  let { data } = await this.server._post<Estimation>(path, {}, body);
39
39
  return data;
40
40
  }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
41
+ async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
42
  {
43
43
  let path = `/application/user/${user_id}/cost/bill-watch/gcp`;
44
44
  let { data } = await this.server._post<CostRow>(path, {}, body);
@@ -32,13 +32,13 @@ export class NamirasoftCostServerFieldCategory extends NamirasoftCostServerBase
32
32
  this.Estimation = this.Estimation.bind(this);
33
33
  this._CreateFor = this._CreateFor.bind(this);
34
34
  }
35
- async Estimation(body: { first_entity_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
35
+ async Estimation(body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period }): Promise<Estimation>
36
36
  {
37
37
  let path = `/estimation/field/category`;
38
38
  let { data } = await this.server._post<Estimation>(path, {}, body);
39
39
  return data;
40
40
  }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
41
+ async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
42
  {
43
43
  let path = `/application/user/${user_id}/cost/field/category`;
44
44
  let { data } = await this.server._post<CostRow>(path, {}, body);
@@ -32,13 +32,13 @@ export class NamirasoftCostServerFieldField extends NamirasoftCostServerBase
32
32
  this.Estimation = this.Estimation.bind(this);
33
33
  this._CreateFor = this._CreateFor.bind(this);
34
34
  }
35
- async Estimation(body: { first_entity_created_at: (Date | null), period: Period, active: boolean }): Promise<Estimation>
35
+ async Estimation(body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period }): Promise<Estimation>
36
36
  {
37
37
  let path = `/estimation/field/field`;
38
38
  let { data } = await this.server._post<Estimation>(path, {}, body);
39
39
  return data;
40
40
  }
41
- async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), period: Period, active: boolean, workspace_id: string, resource_id: string }): Promise<CostRow>
41
+ async _CreateFor(user_id: string, body: { first_entity_created_at: (Date | null), number: number, active: boolean, period: Period, workspace_id: string, resource_id: string }): Promise<CostRow>
42
42
  {
43
43
  let path = `/application/user/${user_id}/cost/field/field`;
44
44
  let { data } = await this.server._post<CostRow>(path, {}, body);
@@ -37,11 +37,11 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -51,6 +51,14 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
51
51
  optional: false,
52
52
  args: ["active"],
53
53
  defaults: [""]
54
+ },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
54
62
  }
55
63
  ]);
56
64
  }
@@ -66,8 +74,9 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
66
74
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
67
75
  let ans = await server.bill_watch_aws.Estimation({
68
76
  first_entity_created_at: this.option_values.first_entity_created_at,
69
- period: this.option_values.period,
70
- active: this.option_values.active
77
+ number: this.option_values.number,
78
+ active: this.option_values.active,
79
+ period: this.option_values.period
71
80
  });
72
81
  this.app.logger.success(JSON.stringify(ans));
73
82
  }
@@ -37,11 +37,11 @@ export class BillWatchAWS_CreateForCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -52,6 +52,14 @@ export class BillWatchAWS_CreateForCommand extends BaseFinalCommand
52
52
  args: ["active"],
53
53
  defaults: [""]
54
54
  },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
62
+ },
55
63
  {
56
64
  name: "workspace_id",
57
65
  short: "",
@@ -82,8 +90,9 @@ export class BillWatchAWS_CreateForCommand extends BaseFinalCommand
82
90
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
83
91
  let ans = await server.bill_watch_aws._CreateFor(this.arg_values[0], {
84
92
  first_entity_created_at: this.option_values.first_entity_created_at,
85
- period: this.option_values.period,
93
+ number: this.option_values.number,
86
94
  active: this.option_values.active,
95
+ period: this.option_values.period,
87
96
  workspace_id: this.option_values.workspace_id,
88
97
  resource_id: this.option_values.resource_id
89
98
  });
@@ -37,11 +37,11 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -51,6 +51,14 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
51
51
  optional: false,
52
52
  args: ["active"],
53
53
  defaults: [""]
54
+ },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
54
62
  }
55
63
  ]);
56
64
  }
@@ -66,8 +74,9 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
66
74
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
67
75
  let ans = await server.bill_watch_azure.Estimation({
68
76
  first_entity_created_at: this.option_values.first_entity_created_at,
69
- period: this.option_values.period,
70
- active: this.option_values.active
77
+ number: this.option_values.number,
78
+ active: this.option_values.active,
79
+ period: this.option_values.period
71
80
  });
72
81
  this.app.logger.success(JSON.stringify(ans));
73
82
  }
@@ -37,11 +37,11 @@ export class BillWatchAzure_CreateForCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -52,6 +52,14 @@ export class BillWatchAzure_CreateForCommand extends BaseFinalCommand
52
52
  args: ["active"],
53
53
  defaults: [""]
54
54
  },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
62
+ },
55
63
  {
56
64
  name: "workspace_id",
57
65
  short: "",
@@ -82,8 +90,9 @@ export class BillWatchAzure_CreateForCommand extends BaseFinalCommand
82
90
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
83
91
  let ans = await server.bill_watch_azure._CreateFor(this.arg_values[0], {
84
92
  first_entity_created_at: this.option_values.first_entity_created_at,
85
- period: this.option_values.period,
93
+ number: this.option_values.number,
86
94
  active: this.option_values.active,
95
+ period: this.option_values.period,
87
96
  workspace_id: this.option_values.workspace_id,
88
97
  resource_id: this.option_values.resource_id
89
98
  });
@@ -37,11 +37,11 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -51,6 +51,14 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
51
51
  optional: false,
52
52
  args: ["active"],
53
53
  defaults: [""]
54
+ },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
54
62
  }
55
63
  ]);
56
64
  }
@@ -66,8 +74,9 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
66
74
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
67
75
  let ans = await server.bill_watch_gcp.Estimation({
68
76
  first_entity_created_at: this.option_values.first_entity_created_at,
69
- period: this.option_values.period,
70
- active: this.option_values.active
77
+ number: this.option_values.number,
78
+ active: this.option_values.active,
79
+ period: this.option_values.period
71
80
  });
72
81
  this.app.logger.success(JSON.stringify(ans));
73
82
  }
@@ -37,11 +37,11 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -52,6 +52,14 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
52
52
  args: ["active"],
53
53
  defaults: [""]
54
54
  },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
62
+ },
55
63
  {
56
64
  name: "workspace_id",
57
65
  short: "",
@@ -82,8 +90,9 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
82
90
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
83
91
  let ans = await server.bill_watch_gcp._CreateFor(this.arg_values[0], {
84
92
  first_entity_created_at: this.option_values.first_entity_created_at,
85
- period: this.option_values.period,
93
+ number: this.option_values.number,
86
94
  active: this.option_values.active,
95
+ period: this.option_values.period,
87
96
  workspace_id: this.option_values.workspace_id,
88
97
  resource_id: this.option_values.resource_id
89
98
  });
@@ -139,6 +139,14 @@ export class Cost_CreateForCommand extends BaseFinalCommand
139
139
  optional: false,
140
140
  args: ["currency"],
141
141
  defaults: [""]
142
+ },
143
+ {
144
+ name: "description",
145
+ short: "",
146
+ description: "Provides the value of 'description' in body",
147
+ optional: false,
148
+ args: ["description"],
149
+ defaults: [""]
142
150
  }
143
151
  ]);
144
152
  }
@@ -166,7 +174,8 @@ export class Cost_CreateForCommand extends BaseFinalCommand
166
174
  period_start: this.option_values.period_start,
167
175
  period_end: this.option_values.period_end,
168
176
  amount: this.option_values.amount,
169
- currency: this.option_values.currency
177
+ currency: this.option_values.currency,
178
+ description: this.option_values.description
170
179
  });
171
180
  this.app.logger.success(JSON.stringify(ans));
172
181
  }
@@ -37,11 +37,11 @@ export class FieldCategoryEstimationCommand extends BaseFinalCommand
37
37
  defaults: [""]
38
38
  },
39
39
  {
40
- name: "period",
40
+ name: "number",
41
41
  short: "",
42
- description: "Provides the value of 'period' in body",
42
+ description: "Provides the value of 'number' in body",
43
43
  optional: false,
44
- args: ["period"],
44
+ args: ["number"],
45
45
  defaults: [""]
46
46
  },
47
47
  {
@@ -51,6 +51,14 @@ export class FieldCategoryEstimationCommand extends BaseFinalCommand
51
51
  optional: false,
52
52
  args: ["active"],
53
53
  defaults: [""]
54
+ },
55
+ {
56
+ name: "period",
57
+ short: "",
58
+ description: "Provides the value of 'period' in body",
59
+ optional: false,
60
+ args: ["period"],
61
+ defaults: [""]
54
62
  }
55
63
  ]);
56
64
  }
@@ -66,8 +74,9 @@ export class FieldCategoryEstimationCommand extends BaseFinalCommand
66
74
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
67
75
  let ans = await server.field_category.Estimation({
68
76
  first_entity_created_at: this.option_values.first_entity_created_at,
69
- period: this.option_values.period,
70
- active: this.option_values.active
77
+ number: this.option_values.number,
78
+ active: this.option_values.active,
79
+ period: this.option_values.period
71
80
  });
72
81
  this.app.logger.success(JSON.stringify(ans));
73
82
  }