@aws-sdk/client-forecast 3.95.0 → 3.97.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/CHANGELOG.md +11 -0
- package/dist-cjs/Forecast.js +90 -0
- package/dist-cjs/commands/CreateMonitorCommand.js +36 -0
- package/dist-cjs/commands/DeleteMonitorCommand.js +36 -0
- package/dist-cjs/commands/DescribeMonitorCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorEvaluationsCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorsCommand.js +36 -0
- package/dist-cjs/commands/ResumeResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +125 -3
- package/dist-cjs/pagination/ListExplainabilitiesPaginator.js +36 -0
- package/dist-cjs/pagination/ListExplainabilityExportsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorEvaluationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +539 -2
- package/dist-es/Forecast.js +90 -0
- package/dist-es/commands/CreateMonitorCommand.js +39 -0
- package/dist-es/commands/DeleteMonitorCommand.js +39 -0
- package/dist-es/commands/DescribeMonitorCommand.js +39 -0
- package/dist-es/commands/ListMonitorEvaluationsCommand.js +39 -0
- package/dist-es/commands/ListMonitorsCommand.js +39 -0
- package/dist-es/commands/ResumeResourceCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +80 -0
- package/dist-es/pagination/ListExplainabilitiesPaginator.js +75 -0
- package/dist-es/pagination/ListExplainabilityExportsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorEvaluationsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorsPaginator.js +75 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +624 -1
- package/dist-types/Forecast.d.ts +133 -45
- package/dist-types/ForecastClient.d.ts +8 -2
- package/dist-types/commands/CreateAutoPredictorCommand.d.ts +7 -5
- package/dist-types/commands/CreateDatasetCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +5 -4
- package/dist-types/commands/CreateExplainabilityCommand.d.ts +2 -2
- package/dist-types/commands/CreateMonitorCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +5 -6
- package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDatasetImportJobCommand.d.ts +3 -2
- package/dist-types/commands/DeleteMonitorCommand.d.ts +35 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -2
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMonitorCommand.d.ts +72 -0
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetsCommand.d.ts +3 -3
- package/dist-types/commands/ListMonitorEvaluationsCommand.d.ts +37 -0
- package/dist-types/commands/ListMonitorsCommand.d.ts +36 -0
- package/dist-types/commands/ResumeResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +660 -62
- package/dist-types/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/Forecast.d.ts +30 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorEvaluationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResumeResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +252 -0
- package/dist-types/ts3.4/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListExplainabilities = void 0;
|
|
4
|
+
const ListExplainabilitiesCommand_1 = require("../commands/ListExplainabilitiesCommand");
|
|
5
|
+
const Forecast_1 = require("../Forecast");
|
|
6
|
+
const ForecastClient_1 = require("../ForecastClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListExplainabilitiesCommand_1.ListExplainabilitiesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listExplainabilities(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListExplainabilities(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Forecast_1.Forecast) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ForecastClient_1.ForecastClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListExplainabilities = paginateListExplainabilities;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListExplainabilityExports = void 0;
|
|
4
|
+
const ListExplainabilityExportsCommand_1 = require("../commands/ListExplainabilityExportsCommand");
|
|
5
|
+
const Forecast_1 = require("../Forecast");
|
|
6
|
+
const ForecastClient_1 = require("../ForecastClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListExplainabilityExportsCommand_1.ListExplainabilityExportsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listExplainabilityExports(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListExplainabilityExports(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Forecast_1.Forecast) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ForecastClient_1.ForecastClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListExplainabilityExports = paginateListExplainabilityExports;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMonitorEvaluations = void 0;
|
|
4
|
+
const ListMonitorEvaluationsCommand_1 = require("../commands/ListMonitorEvaluationsCommand");
|
|
5
|
+
const Forecast_1 = require("../Forecast");
|
|
6
|
+
const ForecastClient_1 = require("../ForecastClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListMonitorEvaluationsCommand_1.ListMonitorEvaluationsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listMonitorEvaluations(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListMonitorEvaluations(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Forecast_1.Forecast) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ForecastClient_1.ForecastClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListMonitorEvaluations = paginateListMonitorEvaluations;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMonitors = void 0;
|
|
4
|
+
const ListMonitorsCommand_1 = require("../commands/ListMonitorsCommand");
|
|
5
|
+
const Forecast_1 = require("../Forecast");
|
|
6
|
+
const ForecastClient_1 = require("../ForecastClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListMonitorsCommand_1.ListMonitorsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listMonitors(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListMonitors(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Forecast_1.Forecast) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ForecastClient_1.ForecastClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListMonitors = paginateListMonitors;
|
|
@@ -5,7 +5,11 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./ListDatasetGroupsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListDatasetImportJobsPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ListDatasetsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListExplainabilitiesPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListExplainabilityExportsPaginator"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./ListForecastExportJobsPaginator"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./ListForecastsPaginator"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./ListMonitorEvaluationsPaginator"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ListMonitorsPaginator"), exports);
|
|
10
14
|
tslib_1.__exportStar(require("./ListPredictorBacktestExportJobsPaginator"), exports);
|
|
11
15
|
tslib_1.__exportStar(require("./ListPredictorsPaginator"), exports);
|