@or-sdk/billing 29.8.5-beta.9736.0 → 29.8.5-beta.9756.0
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/cjs/api/usageCostApi/index.js +0 -22
- package/dist/cjs/api/usageCostApi/index.js.map +1 -1
- package/dist/esm/api/usageCostApi/index.js +0 -10
- package/dist/esm/api/usageCostApi/index.js.map +1 -1
- package/dist/types/api/usageCostApi/index.d.ts +1 -3
- package/dist/types/api/usageCostApi/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/usageCostApi/index.ts +0 -25
|
@@ -92,28 +92,6 @@ var UsageCostApi = (function (_super) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
UsageCostApi.prototype.getAwsResources = function (filters_1) {
|
|
96
|
-
return __awaiter(this, arguments, void 0, function (filters, apiParams) {
|
|
97
|
-
if (apiParams === void 0) { apiParams = {}; }
|
|
98
|
-
return __generator(this, function (_a) {
|
|
99
|
-
switch (_a.label) {
|
|
100
|
-
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/aws-resources"), params: filters }, apiParams))];
|
|
101
|
-
case 1: return [2, _a.sent()];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
UsageCostApi.prototype.getAwsResourceFilterOptions = function () {
|
|
107
|
-
return __awaiter(this, arguments, void 0, function (apiParams) {
|
|
108
|
-
if (apiParams === void 0) { apiParams = {}; }
|
|
109
|
-
return __generator(this, function (_a) {
|
|
110
|
-
switch (_a.label) {
|
|
111
|
-
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/aws-resources/filter-options") }, apiParams))];
|
|
112
|
-
case 1: return [2, _a.sent()];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
95
|
UsageCostApi.prototype.startCsvExport = function (filters) {
|
|
118
96
|
return __awaiter(this, void 0, void 0, function () {
|
|
119
97
|
return __generator(this, function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,sCAAqC;AAUrC;IAA0C,gCAAO;IAAjD;;QACmB,iBAAW,GAAG,aAAa,CAAC;;IAyF/C,CAAC;IA5Dc,mCAAY,GAAzB;4DACE,OAAkC,EAClC,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BAE1B,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,IAAI,CAAC,WAAW,EACvB,MAAM,EAAE,OAAO,IACZ,SAAS,EACZ,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IA2BY,yCAAkB,GAA/B;4DACE,OAAkC,EAClC,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BAE1B,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,YAAS,EACnC,MAAM,EAAE,OAAO,IACZ,SAAS,EACZ,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IAMY,qCAAc,GAA3B,UAA4B,OAAkD;;;;4BACrE,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,qBAAkB;4BAC5C,IAAI,EAAE,OAAO;yBACd,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,mBAAC;AAAD,CAAC,AA1FD,CAA0C,iBAAO,GA0FhD"}
|
|
@@ -23,16 +23,6 @@ export default class UsageCostApi extends BaseApi {
|
|
|
23
23
|
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/cursor`, params: filters }, apiParams));
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
getAwsResources(filters_1) {
|
|
27
|
-
return __awaiter(this, arguments, void 0, function* (filters, apiParams = {}) {
|
|
28
|
-
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/aws-resources`, params: filters }, apiParams));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getAwsResourceFilterOptions() {
|
|
32
|
-
return __awaiter(this, arguments, void 0, function* (apiParams = {}) {
|
|
33
|
-
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/aws-resources/filter-options` }, apiParams));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
26
|
startCsvExport(filters) {
|
|
37
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
28
|
return yield this.apiCall({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAUrC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAAjD;;QACmB,gBAAW,GAAG,aAAa,CAAC;IAyF/C,CAAC;IA5Dc,YAAY;6DACvB,OAAkC,EAClC,YAA+B,EAAE;YAEjC,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,IAAI,CAAC,WAAW,EACvB,MAAM,EAAE,OAAO,IACZ,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IA2BY,kBAAkB;6DAC7B,OAAkC,EAClC,YAA+B,EAAE;YAEjC,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,SAAS,EACnC,MAAM,EAAE,OAAO,IACZ,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAMY,cAAc,CAAC,OAAkD;;YAC5E,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,kBAAkB;gBAC5C,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UsageCostSearchRequestDto, UsageCostCursorRequestDto, UsageCostResponseDto } from '@onereach/billing-dto';
|
|
2
2
|
import { CursorResponseDto, ResponseDto } from '@onereach/billing-shared';
|
|
3
3
|
import { OptionalApiParams } from '../../types';
|
|
4
4
|
import { BaseApi } from '../baseApi';
|
|
@@ -6,8 +6,6 @@ export default class UsageCostApi extends BaseApi {
|
|
|
6
6
|
private readonly apiBasePath;
|
|
7
7
|
getUsageCost(filters: UsageCostSearchRequestDto, apiParams?: OptionalApiParams): Promise<ResponseDto<UsageCostResponseDto>>;
|
|
8
8
|
getUsageCostCursor(filters: UsageCostCursorRequestDto, apiParams?: OptionalApiParams): Promise<CursorResponseDto<UsageCostResponseDto>>;
|
|
9
|
-
getAwsResources(filters: AwsResourceSearchRequestDto, apiParams?: OptionalApiParams): Promise<AwsResourcePaginatedResponseDto>;
|
|
10
|
-
getAwsResourceFilterOptions(apiParams?: OptionalApiParams): Promise<AwsResourceFilterOptionsResponseDto>;
|
|
11
9
|
startCsvExport(filters: Omit<UsageCostCursorRequestDto, 'cursor'>): Promise<string>;
|
|
12
10
|
}
|
|
13
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/usageCostApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAUrC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IA6BhC,YAAY,CACvB,OAAO,EAAE,yBAAyB,EAClC,SAAS,GAAE,iBAAsB,GAChC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAkChC,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,EAClC,SAAS,GAAE,iBAAsB,GAChC,OAAO,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAatC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,yBAAyB,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAOjG"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/billing",
|
|
3
|
-
"version": "29.8.5-beta.
|
|
3
|
+
"version": "29.8.5-beta.9756.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@onereach/billing-dto": "^29.8.5-beta.
|
|
10
|
-
"@onereach/billing-shared": "^29.8.5-beta.
|
|
9
|
+
"@onereach/billing-dto": "^29.8.5-beta.9756.0",
|
|
10
|
+
"@onereach/billing-shared": "^29.8.5-beta.9756.0",
|
|
11
11
|
"@or-sdk/base": "^0.42.4",
|
|
12
12
|
"@or-sdk/discovery": "1.10.6",
|
|
13
13
|
"@types/qs": "6.14.0",
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AwsResourceFilterOptionsResponseDto,
|
|
3
|
-
AwsResourcePaginatedResponseDto,
|
|
4
|
-
AwsResourceSearchRequestDto,
|
|
5
2
|
UsageCostSearchRequestDto,
|
|
6
3
|
UsageCostCursorRequestDto,
|
|
7
4
|
UsageCostResponseDto,
|
|
@@ -98,28 +95,6 @@ export default class UsageCostApi extends BaseApi {
|
|
|
98
95
|
});
|
|
99
96
|
}
|
|
100
97
|
|
|
101
|
-
public async getAwsResources(
|
|
102
|
-
filters: AwsResourceSearchRequestDto,
|
|
103
|
-
apiParams: OptionalApiParams = {},
|
|
104
|
-
): Promise<AwsResourcePaginatedResponseDto> {
|
|
105
|
-
return await this.apiCall({
|
|
106
|
-
method: 'GET',
|
|
107
|
-
route: `${this.apiBasePath}/aws-resources`,
|
|
108
|
-
params: filters,
|
|
109
|
-
...apiParams,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
public async getAwsResourceFilterOptions(
|
|
114
|
-
apiParams: OptionalApiParams = {},
|
|
115
|
-
): Promise<AwsResourceFilterOptionsResponseDto> {
|
|
116
|
-
return await this.apiCall({
|
|
117
|
-
method: 'GET',
|
|
118
|
-
route: `${this.apiBasePath}/aws-resources/filter-options`,
|
|
119
|
-
...apiParams,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
98
|
/**
|
|
124
99
|
* Starts asynchronous generation of a CSV report for all cost rows matching the supplied filters.
|
|
125
100
|
* The completed polling job contains the Files download URL.
|