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
@@ -37,11 +37,11 @@ export class FieldCategory_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 FieldCategory_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 FieldCategory_CreateForCommand extends BaseFinalCommand
82
90
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
83
91
  let ans = await server.field_category._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 FieldFieldEstimationCommand 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 FieldFieldEstimationCommand 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 FieldFieldEstimationCommand extends BaseFinalCommand
66
74
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
67
75
  let ans = await server.field_field.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 FieldField_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 FieldField_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 FieldField_CreateForCommand extends BaseFinalCommand
82
90
  let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
83
91
  let ans = await server.field_field._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
  });
@@ -42,6 +42,7 @@ export class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer, CostRow
42
42
  period_end: BaseMetaColumn;
43
43
  amount: BaseMetaColumn;
44
44
  currency: BaseMetaColumn;
45
+ description: BaseMetaColumn;
45
46
  created_at: BaseMetaColumn;
46
47
  }
47
48
  constructor(database: NSBaseMetaDatabase<NamirasoftCostServer>)
@@ -64,6 +65,7 @@ export class CostMetaTable extends NSBaseMetaTable<NamirasoftCostServer, CostRow
64
65
  period_end: new BaseMetaColumn(this, "period_end", "Period End", "DateTime", true),
65
66
  amount: new BaseMetaColumn(this, "amount", "Amount", "Double", true),
66
67
  currency: new BaseMetaColumn(this, "currency", "Currency", "String", true),
68
+ description: new BaseMetaColumn(this, "description", "Description", "String", true),
67
69
  created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
68
70
  };
69
71
  this.back_end.get = async (id: string) =>
@@ -34,4 +34,5 @@ export type CostCreateRow =
34
34
  period_end: Date;
35
35
  amount: number;
36
36
  currency: string;
37
+ description: string;
37
38
  }
@@ -36,5 +36,6 @@ export type CostRow =
36
36
  period_end: Date;
37
37
  amount: number;
38
38
  currency: string;
39
+ description: string;
39
40
  created_at: Date;
40
41
  }
@@ -1,10 +1,10 @@
1
1
  import { EstimationUsage } from "./EstimationUsage";
2
2
  import { Period } from "./Period";
3
3
 
4
- export type EstimationRow =
5
- {
6
- period: Period;
7
- usage: EstimationUsage;
8
- amount: number;
9
- trial: boolean;
10
- };
4
+ export type EstimationRow = {
5
+ period: Period;
6
+ usage: EstimationUsage;
7
+ amount: number;
8
+ free: boolean;
9
+ free_reason: string;
10
+ };