namirasoft-cost 1.4.43 → 1.4.44
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.
- package/dist/NamirasoftCostServer.js +1 -1
- package/dist/NamirasoftCostServerCost.d.ts +10 -9
- package/dist/NamirasoftCostServerCost.js.map +1 -1
- package/dist/command/CostGroupedCommand.js +8 -8
- package/dist/command/CostGroupedCommand.js.map +1 -1
- package/dist/enum/DimensionType.d.ts +1 -0
- package/dist/enum/DimensionType.js +1 -0
- package/dist/enum/DimensionType.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/row/GroupedResponseRow.d.ts +6 -0
- package/dist/row/GroupedResponseRow.js +3 -0
- package/dist/row/GroupedResponseRow.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftCostServer.ts +1 -1
- package/src/NamirasoftCostServerCost.ts +3 -2
- package/src/command/CostGroupedCommand.ts +8 -8
- package/src/enum/DimensionType.ts +1 -0
- package/src/index.ts +1 -0
- package/src/row/GroupedResponseRow.ts +27 -0
|
@@ -14,7 +14,7 @@ const NamirasoftCostServerSecretSecret_1 = require("./NamirasoftCostServerSecret
|
|
|
14
14
|
const NamirasoftCostServerValue_1 = require("./NamirasoftCostServerValue");
|
|
15
15
|
class NamirasoftCostServer extends namirasoft_account_1.NSABaseServer {
|
|
16
16
|
constructor(base_url, manager, onError) {
|
|
17
|
-
super(base_url, `1.4.
|
|
17
|
+
super(base_url, `1.4.44`, manager, onError);
|
|
18
18
|
this.healthz = new NamirasoftCostServerHealthz_1.NamirasoftCostServerHealthz(this);
|
|
19
19
|
this.metrics = new NamirasoftCostServerMetrics_1.NamirasoftCostServerMetrics(this);
|
|
20
20
|
this.value = new NamirasoftCostServerValue_1.NamirasoftCostServerValue(this);
|
|
@@ -2,6 +2,7 @@ import { CostRow } from "./row/CostRow";
|
|
|
2
2
|
import { DimensionType } from "./enum/DimensionType";
|
|
3
3
|
import { FilterItem } from "namirasoft-core";
|
|
4
4
|
import { GranularityType } from "./enum/GranularityType";
|
|
5
|
+
import { GroupedResponseRow } from "./row/GroupedResponseRow";
|
|
5
6
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
6
7
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
7
8
|
import { SortItem } from "namirasoft-core";
|
|
@@ -16,13 +17,13 @@ export declare class NamirasoftCostServerCost extends NamirasoftCostServerBase {
|
|
|
16
17
|
end_date: Date;
|
|
17
18
|
granularity: GranularityType;
|
|
18
19
|
dimension: DimensionType;
|
|
19
|
-
filter_workspace_ids: (string
|
|
20
|
-
filter_product_ids: (string
|
|
21
|
-
filter_sales_item_ids: (string
|
|
22
|
-
filter_offer_ids: (string
|
|
23
|
-
filter_offer_item_ids: (string
|
|
24
|
-
filter_resource_entities: (string
|
|
25
|
-
filter_resource_ids: (string
|
|
26
|
-
filter_usage_names: (string
|
|
27
|
-
}): Promise<
|
|
20
|
+
filter_workspace_ids: (string | null)[];
|
|
21
|
+
filter_product_ids: (string | null)[];
|
|
22
|
+
filter_sales_item_ids: (string | null)[];
|
|
23
|
+
filter_offer_ids: (string | null)[];
|
|
24
|
+
filter_offer_item_ids: (string | null)[];
|
|
25
|
+
filter_resource_entities: (string | null)[];
|
|
26
|
+
filter_resource_ids: (string | null)[];
|
|
27
|
+
filter_usage_names: (string | null)[];
|
|
28
|
+
}): Promise<GroupedResponseRow[]>;
|
|
28
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;
|
|
1
|
+
{"version":3,"file":"NamirasoftCostServerCost.js","sourceRoot":"","sources":["../src/NamirasoftCostServerCost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;AAI7C,yEAAsE;AACtE,qDAA2C;AAE3C,MAAa,wBAAyB,SAAQ,mDAAwB;IAElE,YAAY,MAA4B;QAEpC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,YAAY,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC1J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,OAAO,CAAC,IAAua;;YAEjb,IAAI,IAAI,GAAG,eAAe,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAuB,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAC7E,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,4DAsBC;AAAA,CAAC"}
|
|
@@ -53,7 +53,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
53
53
|
name: "filter_workspace_ids",
|
|
54
54
|
short: "",
|
|
55
55
|
description: "Provides the value of 'filter_workspace_ids' in body",
|
|
56
|
-
optional:
|
|
56
|
+
optional: false,
|
|
57
57
|
args: ["filter_workspace_ids"],
|
|
58
58
|
defaults: [""]
|
|
59
59
|
},
|
|
@@ -61,7 +61,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
61
61
|
name: "filter_product_ids",
|
|
62
62
|
short: "",
|
|
63
63
|
description: "Provides the value of 'filter_product_ids' in body",
|
|
64
|
-
optional:
|
|
64
|
+
optional: false,
|
|
65
65
|
args: ["filter_product_ids"],
|
|
66
66
|
defaults: [""]
|
|
67
67
|
},
|
|
@@ -69,7 +69,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
69
69
|
name: "filter_sales_item_ids",
|
|
70
70
|
short: "",
|
|
71
71
|
description: "Provides the value of 'filter_sales_item_ids' in body",
|
|
72
|
-
optional:
|
|
72
|
+
optional: false,
|
|
73
73
|
args: ["filter_sales_item_ids"],
|
|
74
74
|
defaults: [""]
|
|
75
75
|
},
|
|
@@ -77,7 +77,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
77
77
|
name: "filter_offer_ids",
|
|
78
78
|
short: "",
|
|
79
79
|
description: "Provides the value of 'filter_offer_ids' in body",
|
|
80
|
-
optional:
|
|
80
|
+
optional: false,
|
|
81
81
|
args: ["filter_offer_ids"],
|
|
82
82
|
defaults: [""]
|
|
83
83
|
},
|
|
@@ -85,7 +85,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
85
85
|
name: "filter_offer_item_ids",
|
|
86
86
|
short: "",
|
|
87
87
|
description: "Provides the value of 'filter_offer_item_ids' in body",
|
|
88
|
-
optional:
|
|
88
|
+
optional: false,
|
|
89
89
|
args: ["filter_offer_item_ids"],
|
|
90
90
|
defaults: [""]
|
|
91
91
|
},
|
|
@@ -93,7 +93,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
93
93
|
name: "filter_resource_entities",
|
|
94
94
|
short: "",
|
|
95
95
|
description: "Provides the value of 'filter_resource_entities' in body",
|
|
96
|
-
optional:
|
|
96
|
+
optional: false,
|
|
97
97
|
args: ["filter_resource_entities"],
|
|
98
98
|
defaults: [""]
|
|
99
99
|
},
|
|
@@ -101,7 +101,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
101
101
|
name: "filter_resource_ids",
|
|
102
102
|
short: "",
|
|
103
103
|
description: "Provides the value of 'filter_resource_ids' in body",
|
|
104
|
-
optional:
|
|
104
|
+
optional: false,
|
|
105
105
|
args: ["filter_resource_ids"],
|
|
106
106
|
defaults: [""]
|
|
107
107
|
},
|
|
@@ -109,7 +109,7 @@ class CostGroupedCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
109
109
|
name: "filter_usage_names",
|
|
110
110
|
short: "",
|
|
111
111
|
description: "Provides the value of 'filter_usage_names' in body",
|
|
112
|
-
optional:
|
|
112
|
+
optional: false,
|
|
113
113
|
args: ["filter_usage_names"],
|
|
114
114
|
defaults: [""]
|
|
115
115
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CostGroupedCommand.js","sourceRoot":"","sources":["../../src/command/CostGroupedCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,kEAA+D;AAC/D,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,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AE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,oBAAoB,EAAE,IAAI,CAAC,aAAa,CAAC,oBAAoB;gBAC7D,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;gBACzD,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,qBAAqB;gBAC/D,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;gBACrD,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,qBAAqB;gBAC/D,wBAAwB,EAAE,IAAI,CAAC,aAAa,CAAC,wBAAwB;gBACrE,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB;gBAC3D,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;aAC5D,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjID,gDAiIC;AAAA,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DimensionType = void 0;
|
|
4
4
|
var DimensionType;
|
|
5
5
|
(function (DimensionType) {
|
|
6
|
+
DimensionType["NONE"] = "NONE";
|
|
6
7
|
DimensionType["WORKSPACE"] = "WORKSPACE";
|
|
7
8
|
DimensionType["PRODUCT"] = "PRODUCT";
|
|
8
9
|
DimensionType["SALES_ITEM"] = "SALES_ITEM";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DimensionType.js","sourceRoot":"","sources":["../../src/enum/DimensionType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,
|
|
1
|
+
{"version":3,"file":"DimensionType.js","sourceRoot":"","sources":["../../src/enum/DimensionType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,aAWX;AAXD,WAAY,aAAa;IAErB,8BAAa,CAAA;IACb,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,0CAAyB,CAAA;AAC7B,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export * from "./estimator/SecretSecretRecordEstimator";
|
|
|
64
64
|
export * from "./meta/CostMetaTable";
|
|
65
65
|
export * from "./meta/NamirasoftCostMetaDatabase";
|
|
66
66
|
export * from "./row/CostRow";
|
|
67
|
+
export * from "./row/GroupedResponseRow";
|
|
67
68
|
export * from "./type/Bonus";
|
|
68
69
|
export * from "./type/CalculationOption";
|
|
69
70
|
export * from "./type/Estimation";
|
package/dist/index.js
CHANGED
|
@@ -80,6 +80,7 @@ __exportStar(require("./estimator/SecretSecretRecordEstimator"), exports);
|
|
|
80
80
|
__exportStar(require("./meta/CostMetaTable"), exports);
|
|
81
81
|
__exportStar(require("./meta/NamirasoftCostMetaDatabase"), exports);
|
|
82
82
|
__exportStar(require("./row/CostRow"), exports);
|
|
83
|
+
__exportStar(require("./row/GroupedResponseRow"), exports);
|
|
83
84
|
__exportStar(require("./type/Bonus"), exports);
|
|
84
85
|
__exportStar(require("./type/CalculationOption"), exports);
|
|
85
86
|
__exportStar(require("./type/Estimation"), 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,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,kEAAgD;AAChD,gFAA8D;AAC9D,kFAAgE;AAChE,gEAA8C;AAC9C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,+DAA6C;AAC7C,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,uDAAqC;AACrC,yDAAuC;AACvC,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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.js","sourceRoot":"","sources":["../../src/row/GroupedResponseRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ export class NamirasoftCostServer extends NSABaseServer
|
|
|
45
45
|
cost: NamirasoftCostServerCost;
|
|
46
46
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
47
|
{
|
|
48
|
-
super(base_url, `1.4.
|
|
48
|
+
super(base_url, `1.4.44`, manager, onError);
|
|
49
49
|
this.healthz = new NamirasoftCostServerHealthz(this);
|
|
50
50
|
this.metrics = new NamirasoftCostServerMetrics(this);
|
|
51
51
|
this.value = new NamirasoftCostServerValue(this);
|
|
@@ -22,6 +22,7 @@ import { CostRow } from "./row/CostRow";
|
|
|
22
22
|
import { DimensionType } from "./enum/DimensionType";
|
|
23
23
|
import { FilterItem } from "namirasoft-core";
|
|
24
24
|
import { GranularityType } from "./enum/GranularityType";
|
|
25
|
+
import { GroupedResponseRow } from "./row/GroupedResponseRow";
|
|
25
26
|
import { NamirasoftCostServer } from "./NamirasoftCostServer";
|
|
26
27
|
import { NamirasoftCostServerBase } from "./NamirasoftCostServerBase";
|
|
27
28
|
import { SortItem } from "namirasoft-core";
|
|
@@ -42,10 +43,10 @@ export class NamirasoftCostServerCost extends NamirasoftCostServerBase
|
|
|
42
43
|
let { data } = await this.server._get<{ rows: CostRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
43
44
|
return data;
|
|
44
45
|
}
|
|
45
|
-
async Grouped(body: { start_date: Date, end_date: Date, granularity: GranularityType, dimension: DimensionType, filter_workspace_ids: (string
|
|
46
|
+
async Grouped(body: { start_date: Date, end_date: Date, granularity: GranularityType, dimension: DimensionType, filter_workspace_ids: (string | null)[], filter_product_ids: (string | null)[], filter_sales_item_ids: (string | null)[], filter_offer_ids: (string | null)[], filter_offer_item_ids: (string | null)[], filter_resource_entities: (string | null)[], filter_resource_ids: (string | null)[], filter_usage_names: (string | null)[] }): Promise<GroupedResponseRow[]>
|
|
46
47
|
{
|
|
47
48
|
let path = `/cost/grouped`;
|
|
48
|
-
let { data } = await this.server._post<
|
|
49
|
+
let { data } = await this.server._post<GroupedResponseRow[]>(path, {}, body);
|
|
49
50
|
return data;
|
|
50
51
|
}
|
|
51
52
|
};
|
|
@@ -64,7 +64,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
64
64
|
name: "filter_workspace_ids",
|
|
65
65
|
short: "",
|
|
66
66
|
description: "Provides the value of 'filter_workspace_ids' in body",
|
|
67
|
-
optional:
|
|
67
|
+
optional: false,
|
|
68
68
|
args: ["filter_workspace_ids"],
|
|
69
69
|
defaults: [""]
|
|
70
70
|
},
|
|
@@ -72,7 +72,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
72
72
|
name: "filter_product_ids",
|
|
73
73
|
short: "",
|
|
74
74
|
description: "Provides the value of 'filter_product_ids' in body",
|
|
75
|
-
optional:
|
|
75
|
+
optional: false,
|
|
76
76
|
args: ["filter_product_ids"],
|
|
77
77
|
defaults: [""]
|
|
78
78
|
},
|
|
@@ -80,7 +80,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
80
80
|
name: "filter_sales_item_ids",
|
|
81
81
|
short: "",
|
|
82
82
|
description: "Provides the value of 'filter_sales_item_ids' in body",
|
|
83
|
-
optional:
|
|
83
|
+
optional: false,
|
|
84
84
|
args: ["filter_sales_item_ids"],
|
|
85
85
|
defaults: [""]
|
|
86
86
|
},
|
|
@@ -88,7 +88,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
88
88
|
name: "filter_offer_ids",
|
|
89
89
|
short: "",
|
|
90
90
|
description: "Provides the value of 'filter_offer_ids' in body",
|
|
91
|
-
optional:
|
|
91
|
+
optional: false,
|
|
92
92
|
args: ["filter_offer_ids"],
|
|
93
93
|
defaults: [""]
|
|
94
94
|
},
|
|
@@ -96,7 +96,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
96
96
|
name: "filter_offer_item_ids",
|
|
97
97
|
short: "",
|
|
98
98
|
description: "Provides the value of 'filter_offer_item_ids' in body",
|
|
99
|
-
optional:
|
|
99
|
+
optional: false,
|
|
100
100
|
args: ["filter_offer_item_ids"],
|
|
101
101
|
defaults: [""]
|
|
102
102
|
},
|
|
@@ -104,7 +104,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
104
104
|
name: "filter_resource_entities",
|
|
105
105
|
short: "",
|
|
106
106
|
description: "Provides the value of 'filter_resource_entities' in body",
|
|
107
|
-
optional:
|
|
107
|
+
optional: false,
|
|
108
108
|
args: ["filter_resource_entities"],
|
|
109
109
|
defaults: [""]
|
|
110
110
|
},
|
|
@@ -112,7 +112,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "filter_resource_ids",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'filter_resource_ids' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: false,
|
|
116
116
|
args: ["filter_resource_ids"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
},
|
|
@@ -120,7 +120,7 @@ export class CostGroupedCommand extends BaseFinalCommand
|
|
|
120
120
|
name: "filter_usage_names",
|
|
121
121
|
short: "",
|
|
122
122
|
description: "Provides the value of 'filter_usage_names' in body",
|
|
123
|
-
optional:
|
|
123
|
+
optional: false,
|
|
124
124
|
args: ["filter_usage_names"],
|
|
125
125
|
defaults: [""]
|
|
126
126
|
}
|
package/src/index.ts
CHANGED
|
@@ -84,6 +84,7 @@ export * from "./estimator/SecretSecretRecordEstimator";
|
|
|
84
84
|
export * from "./meta/CostMetaTable";
|
|
85
85
|
export * from "./meta/NamirasoftCostMetaDatabase";
|
|
86
86
|
export * from "./row/CostRow";
|
|
87
|
+
export * from "./row/GroupedResponseRow";
|
|
87
88
|
export * from "./type/Bonus";
|
|
88
89
|
export * from "./type/CalculationOption";
|
|
89
90
|
export * from "./type/Estimation";
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export type GroupedResponseRow =
|
|
22
|
+
{
|
|
23
|
+
period: Date;
|
|
24
|
+
dimension: string;
|
|
25
|
+
total_count: number;
|
|
26
|
+
total_amount: number;
|
|
27
|
+
}
|