@narrative.io/data-collaboration-sdk-ts 0.0.46 → 0.0.48
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.
|
@@ -12,7 +12,7 @@ declare class ForecastApi extends BaseApi {
|
|
|
12
12
|
* @description Gets a forecast for a subscription given the subscription details
|
|
13
13
|
* @returns {Promise<ApiRecords<ForcastResponse>>} A promise that resolves to forecast response.
|
|
14
14
|
*/
|
|
15
|
-
postForecast(): Promise<ForecastResponse>;
|
|
15
|
+
postForecast(payload: ForecastRequest): Promise<ForecastResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* @function getForecast
|
|
18
18
|
* @memberof ForecastApi
|
|
@@ -26,7 +26,7 @@ declare class ForecastApi extends BaseApi {
|
|
|
26
26
|
* @description Gets a cost forecast for a subscription given the subscriptions details
|
|
27
27
|
* @returns {Promise<CostForcastResponse>} A promise that resolves to cost forecast response.
|
|
28
28
|
*/
|
|
29
|
-
postCostForecast(): Promise<CostForecastResponse>;
|
|
29
|
+
postCostForecast(payload: CostForecastRequest): Promise<CostForecastResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* @function getCostForecast
|
|
32
32
|
* @memberof ForecastApi
|
|
@@ -40,7 +40,7 @@ declare class ForecastApi extends BaseApi {
|
|
|
40
40
|
* @description Gets a forecast for a subscription given the subscriptions details from the public endpoint
|
|
41
41
|
* @returns {Promise<ForcastResponse>} A promise that resolves to forecast response.
|
|
42
42
|
*/
|
|
43
|
-
postPublicForecast(): Promise<ForecastResponse>;
|
|
43
|
+
postPublicForecast(payload: ForecastRequest): Promise<ForecastResponse>;
|
|
44
44
|
/**
|
|
45
45
|
* @function getPublicForecast
|
|
46
46
|
* @memberof ForecastApi
|
package/build/forecast/index.js
CHANGED
|
@@ -12,8 +12,8 @@ class ForecastApi extends BaseApi {
|
|
|
12
12
|
* @description Gets a forecast for a subscription given the subscription details
|
|
13
13
|
* @returns {Promise<ApiRecords<ForcastResponse>>} A promise that resolves to forecast response.
|
|
14
14
|
*/
|
|
15
|
-
async postForecast() {
|
|
16
|
-
return await this.post(`${resourceName}/forecasts
|
|
15
|
+
async postForecast(payload) {
|
|
16
|
+
return await this.post(`${resourceName}/forecasts`, payload);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @function getForecast
|
|
@@ -30,8 +30,8 @@ class ForecastApi extends BaseApi {
|
|
|
30
30
|
* @description Gets a cost forecast for a subscription given the subscriptions details
|
|
31
31
|
* @returns {Promise<CostForcastResponse>} A promise that resolves to cost forecast response.
|
|
32
32
|
*/
|
|
33
|
-
async postCostForecast() {
|
|
34
|
-
return await this.post(`${resourceName}/cost-forecasts
|
|
33
|
+
async postCostForecast(payload) {
|
|
34
|
+
return await this.post(`${resourceName}/cost-forecasts`, payload);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* @function getCostForecast
|
|
@@ -40,7 +40,7 @@ class ForecastApi extends BaseApi {
|
|
|
40
40
|
* @returns {Promise<CostForcastResponse>} A promise that resolves to cost forecast response.
|
|
41
41
|
*/
|
|
42
42
|
async getCostForecast(costForecastId) {
|
|
43
|
-
return await this.get(`${resourceName}/forecasts/${costForecastId}`);
|
|
43
|
+
return await this.get(`${resourceName}/cost-forecasts/${costForecastId}`);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* @function postPublicForecast
|
|
@@ -48,8 +48,8 @@ class ForecastApi extends BaseApi {
|
|
|
48
48
|
* @description Gets a forecast for a subscription given the subscriptions details from the public endpoint
|
|
49
49
|
* @returns {Promise<ForcastResponse>} A promise that resolves to forecast response.
|
|
50
50
|
*/
|
|
51
|
-
async postPublicForecast() {
|
|
52
|
-
return await this.post(`${resourceName}/public/forecasts
|
|
51
|
+
async postPublicForecast(payload) {
|
|
52
|
+
return await this.post(`${resourceName}/public/forecasts`, payload);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* @function getPublicForecast
|