@aws-sdk/client-support-app 3.312.0 → 3.316.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/SupportApp.js +14 -140
- package/dist-cjs/protocols/Aws_restJson1.js +121 -187
- package/dist-es/SupportApp.js +14 -140
- package/dist-es/protocols/Aws_restJson1.js +106 -172
- package/dist-types/SupportApp.d.ts +63 -126
- package/dist-types/ts3.4/SupportApp.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/SupportApp.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SupportApp = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateSlackChannelConfigurationCommand_1 = require("./commands/CreateSlackChannelConfigurationCommand");
|
|
5
6
|
const DeleteAccountAliasCommand_1 = require("./commands/DeleteAccountAliasCommand");
|
|
6
7
|
const DeleteSlackChannelConfigurationCommand_1 = require("./commands/DeleteSlackChannelConfigurationCommand");
|
|
@@ -12,146 +13,19 @@ const PutAccountAliasCommand_1 = require("./commands/PutAccountAliasCommand");
|
|
|
12
13
|
const RegisterSlackWorkspaceForOrganizationCommand_1 = require("./commands/RegisterSlackWorkspaceForOrganizationCommand");
|
|
13
14
|
const UpdateSlackChannelConfigurationCommand_1 = require("./commands/UpdateSlackChannelConfigurationCommand");
|
|
14
15
|
const SupportAppClient_1 = require("./SupportAppClient");
|
|
16
|
+
const commands = {
|
|
17
|
+
CreateSlackChannelConfigurationCommand: CreateSlackChannelConfigurationCommand_1.CreateSlackChannelConfigurationCommand,
|
|
18
|
+
DeleteAccountAliasCommand: DeleteAccountAliasCommand_1.DeleteAccountAliasCommand,
|
|
19
|
+
DeleteSlackChannelConfigurationCommand: DeleteSlackChannelConfigurationCommand_1.DeleteSlackChannelConfigurationCommand,
|
|
20
|
+
DeleteSlackWorkspaceConfigurationCommand: DeleteSlackWorkspaceConfigurationCommand_1.DeleteSlackWorkspaceConfigurationCommand,
|
|
21
|
+
GetAccountAliasCommand: GetAccountAliasCommand_1.GetAccountAliasCommand,
|
|
22
|
+
ListSlackChannelConfigurationsCommand: ListSlackChannelConfigurationsCommand_1.ListSlackChannelConfigurationsCommand,
|
|
23
|
+
ListSlackWorkspaceConfigurationsCommand: ListSlackWorkspaceConfigurationsCommand_1.ListSlackWorkspaceConfigurationsCommand,
|
|
24
|
+
PutAccountAliasCommand: PutAccountAliasCommand_1.PutAccountAliasCommand,
|
|
25
|
+
RegisterSlackWorkspaceForOrganizationCommand: RegisterSlackWorkspaceForOrganizationCommand_1.RegisterSlackWorkspaceForOrganizationCommand,
|
|
26
|
+
UpdateSlackChannelConfigurationCommand: UpdateSlackChannelConfigurationCommand_1.UpdateSlackChannelConfigurationCommand,
|
|
27
|
+
};
|
|
15
28
|
class SupportApp extends SupportAppClient_1.SupportAppClient {
|
|
16
|
-
createSlackChannelConfiguration(args, optionsOrCb, cb) {
|
|
17
|
-
const command = new CreateSlackChannelConfigurationCommand_1.CreateSlackChannelConfigurationCommand(args);
|
|
18
|
-
if (typeof optionsOrCb === "function") {
|
|
19
|
-
this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
else if (typeof cb === "function") {
|
|
22
|
-
if (typeof optionsOrCb !== "object")
|
|
23
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
24
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
deleteAccountAlias(args, optionsOrCb, cb) {
|
|
31
|
-
const command = new DeleteAccountAliasCommand_1.DeleteAccountAliasCommand(args);
|
|
32
|
-
if (typeof optionsOrCb === "function") {
|
|
33
|
-
this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
else if (typeof cb === "function") {
|
|
36
|
-
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
deleteSlackChannelConfiguration(args, optionsOrCb, cb) {
|
|
45
|
-
const command = new DeleteSlackChannelConfigurationCommand_1.DeleteSlackChannelConfigurationCommand(args);
|
|
46
|
-
if (typeof optionsOrCb === "function") {
|
|
47
|
-
this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof cb === "function") {
|
|
50
|
-
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
deleteSlackWorkspaceConfiguration(args, optionsOrCb, cb) {
|
|
59
|
-
const command = new DeleteSlackWorkspaceConfigurationCommand_1.DeleteSlackWorkspaceConfigurationCommand(args);
|
|
60
|
-
if (typeof optionsOrCb === "function") {
|
|
61
|
-
this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
else if (typeof cb === "function") {
|
|
64
|
-
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
getAccountAlias(args, optionsOrCb, cb) {
|
|
73
|
-
const command = new GetAccountAliasCommand_1.GetAccountAliasCommand(args);
|
|
74
|
-
if (typeof optionsOrCb === "function") {
|
|
75
|
-
this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
else if (typeof cb === "function") {
|
|
78
|
-
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
listSlackChannelConfigurations(args, optionsOrCb, cb) {
|
|
87
|
-
const command = new ListSlackChannelConfigurationsCommand_1.ListSlackChannelConfigurationsCommand(args);
|
|
88
|
-
if (typeof optionsOrCb === "function") {
|
|
89
|
-
this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
listSlackWorkspaceConfigurations(args, optionsOrCb, cb) {
|
|
101
|
-
const command = new ListSlackWorkspaceConfigurationsCommand_1.ListSlackWorkspaceConfigurationsCommand(args);
|
|
102
|
-
if (typeof optionsOrCb === "function") {
|
|
103
|
-
this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
putAccountAlias(args, optionsOrCb, cb) {
|
|
115
|
-
const command = new PutAccountAliasCommand_1.PutAccountAliasCommand(args);
|
|
116
|
-
if (typeof optionsOrCb === "function") {
|
|
117
|
-
this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
else if (typeof cb === "function") {
|
|
120
|
-
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
registerSlackWorkspaceForOrganization(args, optionsOrCb, cb) {
|
|
129
|
-
const command = new RegisterSlackWorkspaceForOrganizationCommand_1.RegisterSlackWorkspaceForOrganizationCommand(args);
|
|
130
|
-
if (typeof optionsOrCb === "function") {
|
|
131
|
-
this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
updateSlackChannelConfiguration(args, optionsOrCb, cb) {
|
|
143
|
-
const command = new UpdateSlackChannelConfigurationCommand_1.UpdateSlackChannelConfigurationCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
else if (typeof cb === "function") {
|
|
148
|
-
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
29
|
}
|
|
157
30
|
exports.SupportApp = SupportApp;
|
|
31
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SupportApp);
|