@aws-sdk/client-codestar-notifications 3.975.0 → 3.978.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/index.js
CHANGED
|
@@ -764,6 +764,12 @@ class UpdateNotificationRuleCommand extends smithyClient.Command
|
|
|
764
764
|
.build() {
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
+
const paginateListEventTypes = core.createPaginator(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
768
|
+
|
|
769
|
+
const paginateListNotificationRules = core.createPaginator(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
770
|
+
|
|
771
|
+
const paginateListTargets = core.createPaginator(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
772
|
+
|
|
767
773
|
const commands = {
|
|
768
774
|
CreateNotificationRuleCommand,
|
|
769
775
|
DeleteNotificationRuleCommand,
|
|
@@ -779,15 +785,14 @@ const commands = {
|
|
|
779
785
|
UntagResourceCommand,
|
|
780
786
|
UpdateNotificationRuleCommand,
|
|
781
787
|
};
|
|
788
|
+
const paginators = {
|
|
789
|
+
paginateListEventTypes,
|
|
790
|
+
paginateListNotificationRules,
|
|
791
|
+
paginateListTargets,
|
|
792
|
+
};
|
|
782
793
|
class CodestarNotifications extends CodestarNotificationsClient {
|
|
783
794
|
}
|
|
784
|
-
smithyClient.createAggregatedClient(commands, CodestarNotifications);
|
|
785
|
-
|
|
786
|
-
const paginateListEventTypes = core.createPaginator(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
787
|
-
|
|
788
|
-
const paginateListNotificationRules = core.createPaginator(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
789
|
-
|
|
790
|
-
const paginateListTargets = core.createPaginator(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
795
|
+
smithyClient.createAggregatedClient(commands, CodestarNotifications, { paginators });
|
|
791
796
|
|
|
792
797
|
const DetailType = {
|
|
793
798
|
BASIC: "BASIC",
|
|
@@ -13,6 +13,9 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
13
13
|
import { UnsubscribeCommand } from "./commands/UnsubscribeCommand";
|
|
14
14
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
15
15
|
import { UpdateNotificationRuleCommand, } from "./commands/UpdateNotificationRuleCommand";
|
|
16
|
+
import { paginateListEventTypes } from "./pagination/ListEventTypesPaginator";
|
|
17
|
+
import { paginateListNotificationRules } from "./pagination/ListNotificationRulesPaginator";
|
|
18
|
+
import { paginateListTargets } from "./pagination/ListTargetsPaginator";
|
|
16
19
|
const commands = {
|
|
17
20
|
CreateNotificationRuleCommand,
|
|
18
21
|
DeleteNotificationRuleCommand,
|
|
@@ -28,6 +31,11 @@ const commands = {
|
|
|
28
31
|
UntagResourceCommand,
|
|
29
32
|
UpdateNotificationRuleCommand,
|
|
30
33
|
};
|
|
34
|
+
const paginators = {
|
|
35
|
+
paginateListEventTypes,
|
|
36
|
+
paginateListNotificationRules,
|
|
37
|
+
paginateListTargets,
|
|
38
|
+
};
|
|
31
39
|
export class CodestarNotifications extends CodestarNotificationsClient {
|
|
32
40
|
}
|
|
33
|
-
createAggregatedClient(commands, CodestarNotifications);
|
|
41
|
+
createAggregatedClient(commands, CodestarNotifications, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CodestarNotificationsClient } from "./CodestarNotificationsClient";
|
|
3
3
|
import { CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput } from "./commands/CreateNotificationRuleCommand";
|
|
4
4
|
import { DeleteNotificationRuleCommandInput, DeleteNotificationRuleCommandOutput } from "./commands/DeleteNotificationRuleCommand";
|
|
@@ -95,6 +95,27 @@ export interface CodestarNotifications {
|
|
|
95
95
|
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNotificationRuleCommandOutput>;
|
|
96
96
|
updateNotificationRule(args: UpdateNotificationRuleCommandInput, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
97
97
|
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link ListEventTypesCommand}
|
|
100
|
+
* @param args - command input.
|
|
101
|
+
* @param paginationConfig - optional pagination config.
|
|
102
|
+
* @returns AsyncIterable of {@link ListEventTypesCommandOutput}.
|
|
103
|
+
*/
|
|
104
|
+
paginateListEventTypes(args?: ListEventTypesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventTypesCommandOutput>;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link ListNotificationRulesCommand}
|
|
107
|
+
* @param args - command input.
|
|
108
|
+
* @param paginationConfig - optional pagination config.
|
|
109
|
+
* @returns AsyncIterable of {@link ListNotificationRulesCommandOutput}.
|
|
110
|
+
*/
|
|
111
|
+
paginateListNotificationRules(args?: ListNotificationRulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListNotificationRulesCommandOutput>;
|
|
112
|
+
/**
|
|
113
|
+
* @see {@link ListTargetsCommand}
|
|
114
|
+
* @param args - command input.
|
|
115
|
+
* @param paginationConfig - optional pagination config.
|
|
116
|
+
* @returns AsyncIterable of {@link ListTargetsCommandOutput}.
|
|
117
|
+
*/
|
|
118
|
+
paginateListTargets(args?: ListTargetsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTargetsCommandOutput>;
|
|
98
119
|
}
|
|
99
120
|
/**
|
|
100
121
|
* <p>This CodeStar Notifications API Reference provides descriptions and usage examples of the
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import { CodestarNotificationsClient } from "./CodestarNotificationsClient";
|
|
3
7
|
import {
|
|
4
8
|
CreateNotificationRuleCommandInput,
|
|
@@ -225,6 +229,27 @@ export interface CodestarNotifications {
|
|
|
225
229
|
options: __HttpHandlerOptions,
|
|
226
230
|
cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void
|
|
227
231
|
): void;
|
|
232
|
+
paginateListEventTypes(
|
|
233
|
+
args?: ListEventTypesCommandInput,
|
|
234
|
+
paginationConfig?: Pick<
|
|
235
|
+
PaginationConfiguration,
|
|
236
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
237
|
+
>
|
|
238
|
+
): Paginator<ListEventTypesCommandOutput>;
|
|
239
|
+
paginateListNotificationRules(
|
|
240
|
+
args?: ListNotificationRulesCommandInput,
|
|
241
|
+
paginationConfig?: Pick<
|
|
242
|
+
PaginationConfiguration,
|
|
243
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
244
|
+
>
|
|
245
|
+
): Paginator<ListNotificationRulesCommandOutput>;
|
|
246
|
+
paginateListTargets(
|
|
247
|
+
args?: ListTargetsCommandInput,
|
|
248
|
+
paginationConfig?: Pick<
|
|
249
|
+
PaginationConfiguration,
|
|
250
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
251
|
+
>
|
|
252
|
+
): Paginator<ListTargetsCommandOutput>;
|
|
228
253
|
}
|
|
229
254
|
export declare class CodestarNotifications
|
|
230
255
|
extends CodestarNotificationsClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-notifications",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Notifications Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codestar-notifications",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|