@aws-sdk/client-repostspace 3.1068.0 → 3.1070.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +137 -157
- package/dist-cjs/models/RepostspaceServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +134 -91
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultRepostspaceHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { BatchAddChannelRoleToAccessors$, BatchAddRole$, BatchRemoveChannelRoleFromAccessors$, BatchRemoveRole$, CreateChannel$, CreateSpace$, DeleteSpace$, DeregisterAdmin$, GetChannel$, GetSpace$, ListChannels$, ListSpaces$, ListTagsForResource$, RegisterAdmin$, SendInvites$, TagResource$, UntagResource$, UpdateChannel$, UpdateSpace$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { RepostspaceServiceException } = require("./models/RepostspaceServiceException");
|
|
18
|
+
exports.RepostspaceServiceException = RepostspaceServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,289 +71,289 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class RepostspaceClient extends
|
|
79
|
+
class RepostspaceClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultRepostspaceHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class BatchAddChannelRoleToAccessorsCommand extends
|
|
114
|
+
class BatchAddChannelRoleToAccessorsCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("RepostSpace", "BatchAddChannelRoleToAccessors", {})
|
|
118
121
|
.n("RepostspaceClient", "BatchAddChannelRoleToAccessorsCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(BatchAddChannelRoleToAccessors$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class BatchAddRoleCommand extends
|
|
126
|
+
class BatchAddRoleCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("RepostSpace", "BatchAddRole", {})
|
|
130
133
|
.n("RepostspaceClient", "BatchAddRoleCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(BatchAddRole$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class BatchRemoveChannelRoleFromAccessorsCommand extends
|
|
138
|
+
class BatchRemoveChannelRoleFromAccessorsCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("RepostSpace", "BatchRemoveChannelRoleFromAccessors", {})
|
|
142
145
|
.n("RepostspaceClient", "BatchRemoveChannelRoleFromAccessorsCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(BatchRemoveChannelRoleFromAccessors$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class BatchRemoveRoleCommand extends
|
|
150
|
+
class BatchRemoveRoleCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("RepostSpace", "BatchRemoveRole", {})
|
|
154
157
|
.n("RepostspaceClient", "BatchRemoveRoleCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(BatchRemoveRole$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class CreateChannelCommand extends
|
|
162
|
+
class CreateChannelCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("RepostSpace", "CreateChannel", {})
|
|
166
169
|
.n("RepostspaceClient", "CreateChannelCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(CreateChannel$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class CreateSpaceCommand extends
|
|
174
|
+
class CreateSpaceCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("RepostSpace", "CreateSpace", {})
|
|
178
181
|
.n("RepostspaceClient", "CreateSpaceCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(CreateSpace$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class DeleteSpaceCommand extends
|
|
186
|
+
class DeleteSpaceCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("RepostSpace", "DeleteSpace", {})
|
|
190
193
|
.n("RepostspaceClient", "DeleteSpaceCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(DeleteSpace$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class DeregisterAdminCommand extends
|
|
198
|
+
class DeregisterAdminCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("RepostSpace", "DeregisterAdmin", {})
|
|
202
205
|
.n("RepostspaceClient", "DeregisterAdminCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(DeregisterAdmin$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class GetChannelCommand extends
|
|
210
|
+
class GetChannelCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("RepostSpace", "GetChannel", {})
|
|
214
217
|
.n("RepostspaceClient", "GetChannelCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(GetChannel$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class GetSpaceCommand extends
|
|
222
|
+
class GetSpaceCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("RepostSpace", "GetSpace", {})
|
|
226
229
|
.n("RepostspaceClient", "GetSpaceCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(GetSpace$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class ListChannelsCommand extends
|
|
234
|
+
class ListChannelsCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("RepostSpace", "ListChannels", {})
|
|
238
241
|
.n("RepostspaceClient", "ListChannelsCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(ListChannels$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class ListSpacesCommand extends
|
|
246
|
+
class ListSpacesCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("RepostSpace", "ListSpaces", {})
|
|
250
253
|
.n("RepostspaceClient", "ListSpacesCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(ListSpaces$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
class ListTagsForResourceCommand extends
|
|
258
|
+
class ListTagsForResourceCommand extends Command
|
|
256
259
|
.classBuilder()
|
|
257
260
|
.ep(commonParams)
|
|
258
261
|
.m(function (Command, cs, config, o) {
|
|
259
|
-
return [
|
|
262
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
263
|
})
|
|
261
264
|
.s("RepostSpace", "ListTagsForResource", {})
|
|
262
265
|
.n("RepostspaceClient", "ListTagsForResourceCommand")
|
|
263
|
-
.sc(
|
|
266
|
+
.sc(ListTagsForResource$)
|
|
264
267
|
.build() {
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
class RegisterAdminCommand extends
|
|
270
|
+
class RegisterAdminCommand extends Command
|
|
268
271
|
.classBuilder()
|
|
269
272
|
.ep(commonParams)
|
|
270
273
|
.m(function (Command, cs, config, o) {
|
|
271
|
-
return [
|
|
274
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
272
275
|
})
|
|
273
276
|
.s("RepostSpace", "RegisterAdmin", {})
|
|
274
277
|
.n("RepostspaceClient", "RegisterAdminCommand")
|
|
275
|
-
.sc(
|
|
278
|
+
.sc(RegisterAdmin$)
|
|
276
279
|
.build() {
|
|
277
280
|
}
|
|
278
281
|
|
|
279
|
-
class SendInvitesCommand extends
|
|
282
|
+
class SendInvitesCommand extends Command
|
|
280
283
|
.classBuilder()
|
|
281
284
|
.ep(commonParams)
|
|
282
285
|
.m(function (Command, cs, config, o) {
|
|
283
|
-
return [
|
|
286
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
284
287
|
})
|
|
285
288
|
.s("RepostSpace", "SendInvites", {})
|
|
286
289
|
.n("RepostspaceClient", "SendInvitesCommand")
|
|
287
|
-
.sc(
|
|
290
|
+
.sc(SendInvites$)
|
|
288
291
|
.build() {
|
|
289
292
|
}
|
|
290
293
|
|
|
291
|
-
class TagResourceCommand extends
|
|
294
|
+
class TagResourceCommand extends Command
|
|
292
295
|
.classBuilder()
|
|
293
296
|
.ep(commonParams)
|
|
294
297
|
.m(function (Command, cs, config, o) {
|
|
295
|
-
return [
|
|
298
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
296
299
|
})
|
|
297
300
|
.s("RepostSpace", "TagResource", {})
|
|
298
301
|
.n("RepostspaceClient", "TagResourceCommand")
|
|
299
|
-
.sc(
|
|
302
|
+
.sc(TagResource$)
|
|
300
303
|
.build() {
|
|
301
304
|
}
|
|
302
305
|
|
|
303
|
-
class UntagResourceCommand extends
|
|
306
|
+
class UntagResourceCommand extends Command
|
|
304
307
|
.classBuilder()
|
|
305
308
|
.ep(commonParams)
|
|
306
309
|
.m(function (Command, cs, config, o) {
|
|
307
|
-
return [
|
|
310
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
308
311
|
})
|
|
309
312
|
.s("RepostSpace", "UntagResource", {})
|
|
310
313
|
.n("RepostspaceClient", "UntagResourceCommand")
|
|
311
|
-
.sc(
|
|
314
|
+
.sc(UntagResource$)
|
|
312
315
|
.build() {
|
|
313
316
|
}
|
|
314
317
|
|
|
315
|
-
class UpdateChannelCommand extends
|
|
318
|
+
class UpdateChannelCommand extends Command
|
|
316
319
|
.classBuilder()
|
|
317
320
|
.ep(commonParams)
|
|
318
321
|
.m(function (Command, cs, config, o) {
|
|
319
|
-
return [
|
|
322
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
320
323
|
})
|
|
321
324
|
.s("RepostSpace", "UpdateChannel", {})
|
|
322
325
|
.n("RepostspaceClient", "UpdateChannelCommand")
|
|
323
|
-
.sc(
|
|
326
|
+
.sc(UpdateChannel$)
|
|
324
327
|
.build() {
|
|
325
328
|
}
|
|
326
329
|
|
|
327
|
-
class UpdateSpaceCommand extends
|
|
330
|
+
class UpdateSpaceCommand extends Command
|
|
328
331
|
.classBuilder()
|
|
329
332
|
.ep(commonParams)
|
|
330
333
|
.m(function (Command, cs, config, o) {
|
|
331
|
-
return [
|
|
334
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
332
335
|
})
|
|
333
336
|
.s("RepostSpace", "UpdateSpace", {})
|
|
334
337
|
.n("RepostspaceClient", "UpdateSpaceCommand")
|
|
335
|
-
.sc(
|
|
338
|
+
.sc(UpdateSpace$)
|
|
336
339
|
.build() {
|
|
337
340
|
}
|
|
338
341
|
|
|
339
|
-
const paginateListChannels =
|
|
342
|
+
const paginateListChannels = createPaginator(RepostspaceClient, ListChannelsCommand, "nextToken", "nextToken", "maxResults");
|
|
340
343
|
|
|
341
|
-
const paginateListSpaces =
|
|
344
|
+
const paginateListSpaces = createPaginator(RepostspaceClient, ListSpacesCommand, "nextToken", "nextToken", "maxResults");
|
|
342
345
|
|
|
343
|
-
const checkState$3 = async (client
|
|
346
|
+
const checkState$3 = async (client, input) => {
|
|
344
347
|
let reason;
|
|
345
348
|
try {
|
|
346
|
-
let result = await client
|
|
349
|
+
let result = await client.send(new GetChannelCommand(input));
|
|
347
350
|
reason = result;
|
|
348
351
|
try {
|
|
349
352
|
const returnComparator = () => {
|
|
350
353
|
return result.channelStatus;
|
|
351
354
|
};
|
|
352
355
|
if (returnComparator() === "CREATED") {
|
|
353
|
-
return { state:
|
|
356
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
354
357
|
}
|
|
355
358
|
}
|
|
356
359
|
catch (e) { }
|
|
@@ -359,7 +362,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
359
362
|
return result.channelStatus;
|
|
360
363
|
};
|
|
361
364
|
if (returnComparator() === "CREATE_FAILED") {
|
|
362
|
-
return { state:
|
|
365
|
+
return { state: WaiterState.FAILURE, reason };
|
|
363
366
|
}
|
|
364
367
|
}
|
|
365
368
|
catch (e) { }
|
|
@@ -368,7 +371,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
368
371
|
return result.channelStatus;
|
|
369
372
|
};
|
|
370
373
|
if (returnComparator() === "CREATING") {
|
|
371
|
-
return { state:
|
|
374
|
+
return { state: WaiterState.RETRY, reason };
|
|
372
375
|
}
|
|
373
376
|
}
|
|
374
377
|
catch (e) { }
|
|
@@ -376,29 +379,29 @@ const checkState$3 = async (client$1, input) => {
|
|
|
376
379
|
catch (exception) {
|
|
377
380
|
reason = exception;
|
|
378
381
|
}
|
|
379
|
-
return { state:
|
|
382
|
+
return { state: WaiterState.RETRY, reason };
|
|
380
383
|
};
|
|
381
384
|
const waitForChannelCreated = async (params, input) => {
|
|
382
385
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
383
|
-
return
|
|
386
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
384
387
|
};
|
|
385
388
|
const waitUntilChannelCreated = async (params, input) => {
|
|
386
389
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
387
|
-
const result = await
|
|
388
|
-
return
|
|
390
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
391
|
+
return checkExceptions(result);
|
|
389
392
|
};
|
|
390
393
|
|
|
391
|
-
const checkState$2 = async (client
|
|
394
|
+
const checkState$2 = async (client, input) => {
|
|
392
395
|
let reason;
|
|
393
396
|
try {
|
|
394
|
-
let result = await client
|
|
397
|
+
let result = await client.send(new GetChannelCommand(input));
|
|
395
398
|
reason = result;
|
|
396
399
|
try {
|
|
397
400
|
const returnComparator = () => {
|
|
398
401
|
return result.channelStatus;
|
|
399
402
|
};
|
|
400
403
|
if (returnComparator() === "DELETED") {
|
|
401
|
-
return { state:
|
|
404
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
402
405
|
}
|
|
403
406
|
}
|
|
404
407
|
catch (e) { }
|
|
@@ -407,7 +410,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
407
410
|
return result.channelStatus;
|
|
408
411
|
};
|
|
409
412
|
if (returnComparator() === "DELETE_FAILED") {
|
|
410
|
-
return { state:
|
|
413
|
+
return { state: WaiterState.FAILURE, reason };
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
416
|
catch (e) { }
|
|
@@ -416,7 +419,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
416
419
|
return result.channelStatus;
|
|
417
420
|
};
|
|
418
421
|
if (returnComparator() === "DELETING") {
|
|
419
|
-
return { state:
|
|
422
|
+
return { state: WaiterState.RETRY, reason };
|
|
420
423
|
}
|
|
421
424
|
}
|
|
422
425
|
catch (e) { }
|
|
@@ -424,32 +427,32 @@ const checkState$2 = async (client$1, input) => {
|
|
|
424
427
|
catch (exception) {
|
|
425
428
|
reason = exception;
|
|
426
429
|
if (exception.name === "ResourceNotFoundException") {
|
|
427
|
-
return { state:
|
|
430
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
428
431
|
}
|
|
429
432
|
}
|
|
430
|
-
return { state:
|
|
433
|
+
return { state: WaiterState.RETRY, reason };
|
|
431
434
|
};
|
|
432
435
|
const waitForChannelDeleted = async (params, input) => {
|
|
433
436
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
434
|
-
return
|
|
437
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
435
438
|
};
|
|
436
439
|
const waitUntilChannelDeleted = async (params, input) => {
|
|
437
440
|
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
438
|
-
const result = await
|
|
439
|
-
return
|
|
441
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
442
|
+
return checkExceptions(result);
|
|
440
443
|
};
|
|
441
444
|
|
|
442
|
-
const checkState$1 = async (client
|
|
445
|
+
const checkState$1 = async (client, input) => {
|
|
443
446
|
let reason;
|
|
444
447
|
try {
|
|
445
|
-
let result = await client
|
|
448
|
+
let result = await client.send(new GetSpaceCommand(input));
|
|
446
449
|
reason = result;
|
|
447
450
|
try {
|
|
448
451
|
const returnComparator = () => {
|
|
449
452
|
return result.status;
|
|
450
453
|
};
|
|
451
454
|
if (returnComparator() === "CREATED") {
|
|
452
|
-
return { state:
|
|
455
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
453
456
|
}
|
|
454
457
|
}
|
|
455
458
|
catch (e) { }
|
|
@@ -458,7 +461,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
458
461
|
return result.status;
|
|
459
462
|
};
|
|
460
463
|
if (returnComparator() === "CREATE_FAILED") {
|
|
461
|
-
return { state:
|
|
464
|
+
return { state: WaiterState.FAILURE, reason };
|
|
462
465
|
}
|
|
463
466
|
}
|
|
464
467
|
catch (e) { }
|
|
@@ -467,7 +470,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
467
470
|
return result.status;
|
|
468
471
|
};
|
|
469
472
|
if (returnComparator() === "CREATING") {
|
|
470
|
-
return { state:
|
|
473
|
+
return { state: WaiterState.RETRY, reason };
|
|
471
474
|
}
|
|
472
475
|
}
|
|
473
476
|
catch (e) { }
|
|
@@ -475,29 +478,29 @@ const checkState$1 = async (client$1, input) => {
|
|
|
475
478
|
catch (exception) {
|
|
476
479
|
reason = exception;
|
|
477
480
|
}
|
|
478
|
-
return { state:
|
|
481
|
+
return { state: WaiterState.RETRY, reason };
|
|
479
482
|
};
|
|
480
483
|
const waitForSpaceCreated = async (params, input) => {
|
|
481
484
|
const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
|
|
482
|
-
return
|
|
485
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
483
486
|
};
|
|
484
487
|
const waitUntilSpaceCreated = async (params, input) => {
|
|
485
488
|
const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
|
|
486
|
-
const result = await
|
|
487
|
-
return
|
|
489
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
490
|
+
return checkExceptions(result);
|
|
488
491
|
};
|
|
489
492
|
|
|
490
|
-
const checkState = async (client
|
|
493
|
+
const checkState = async (client, input) => {
|
|
491
494
|
let reason;
|
|
492
495
|
try {
|
|
493
|
-
let result = await client
|
|
496
|
+
let result = await client.send(new GetSpaceCommand(input));
|
|
494
497
|
reason = result;
|
|
495
498
|
try {
|
|
496
499
|
const returnComparator = () => {
|
|
497
500
|
return result.status;
|
|
498
501
|
};
|
|
499
502
|
if (returnComparator() === "DELETED") {
|
|
500
|
-
return { state:
|
|
503
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
501
504
|
}
|
|
502
505
|
}
|
|
503
506
|
catch (e) { }
|
|
@@ -506,7 +509,7 @@ const checkState = async (client$1, input) => {
|
|
|
506
509
|
return result.status;
|
|
507
510
|
};
|
|
508
511
|
if (returnComparator() === "DELETE_FAILED") {
|
|
509
|
-
return { state:
|
|
512
|
+
return { state: WaiterState.FAILURE, reason };
|
|
510
513
|
}
|
|
511
514
|
}
|
|
512
515
|
catch (e) { }
|
|
@@ -515,7 +518,7 @@ const checkState = async (client$1, input) => {
|
|
|
515
518
|
return result.status;
|
|
516
519
|
};
|
|
517
520
|
if (returnComparator() === "DELETING") {
|
|
518
|
-
return { state:
|
|
521
|
+
return { state: WaiterState.RETRY, reason };
|
|
519
522
|
}
|
|
520
523
|
}
|
|
521
524
|
catch (e) { }
|
|
@@ -523,19 +526,19 @@ const checkState = async (client$1, input) => {
|
|
|
523
526
|
catch (exception) {
|
|
524
527
|
reason = exception;
|
|
525
528
|
if (exception.name === "ResourceNotFoundException") {
|
|
526
|
-
return { state:
|
|
529
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
527
530
|
}
|
|
528
531
|
}
|
|
529
|
-
return { state:
|
|
532
|
+
return { state: WaiterState.RETRY, reason };
|
|
530
533
|
};
|
|
531
534
|
const waitForSpaceDeleted = async (params, input) => {
|
|
532
535
|
const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
|
|
533
|
-
return
|
|
536
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
534
537
|
};
|
|
535
538
|
const waitUntilSpaceDeleted = async (params, input) => {
|
|
536
539
|
const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
|
|
537
|
-
const result = await
|
|
538
|
-
return
|
|
540
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
541
|
+
return checkExceptions(result);
|
|
539
542
|
};
|
|
540
543
|
|
|
541
544
|
const commands = {
|
|
@@ -571,7 +574,7 @@ const waiters = {
|
|
|
571
574
|
};
|
|
572
575
|
class Repostspace extends RepostspaceClient {
|
|
573
576
|
}
|
|
574
|
-
|
|
577
|
+
createAggregatedClient(commands, Repostspace, { paginators, waiters });
|
|
575
578
|
|
|
576
579
|
const ChannelRole = {
|
|
577
580
|
ASKER: "ASKER",
|
|
@@ -622,9 +625,6 @@ const VanityDomainStatus = {
|
|
|
622
625
|
UNAPPROVED: "UNAPPROVED",
|
|
623
626
|
};
|
|
624
627
|
|
|
625
|
-
exports.$Command = client.Command;
|
|
626
|
-
exports.__Client = client.Client;
|
|
627
|
-
exports.RepostspaceServiceException = RepostspaceServiceException.RepostspaceServiceException;
|
|
628
628
|
exports.BatchAddChannelRoleToAccessorsCommand = BatchAddChannelRoleToAccessorsCommand;
|
|
629
629
|
exports.BatchAddRoleCommand = BatchAddRoleCommand;
|
|
630
630
|
exports.BatchRemoveChannelRoleFromAccessorsCommand = BatchRemoveChannelRoleFromAccessorsCommand;
|
|
@@ -665,23 +665,3 @@ exports.waitUntilChannelCreated = waitUntilChannelCreated;
|
|
|
665
665
|
exports.waitUntilChannelDeleted = waitUntilChannelDeleted;
|
|
666
666
|
exports.waitUntilSpaceCreated = waitUntilSpaceCreated;
|
|
667
667
|
exports.waitUntilSpaceDeleted = waitUntilSpaceDeleted;
|
|
668
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
669
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
670
|
-
Object.defineProperty(exports, '__proto__', {
|
|
671
|
-
enumerable: true,
|
|
672
|
-
value: schemas_0['__proto__']
|
|
673
|
-
});
|
|
674
|
-
|
|
675
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
676
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
677
|
-
});
|
|
678
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
679
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
680
|
-
Object.defineProperty(exports, '__proto__', {
|
|
681
|
-
enumerable: true,
|
|
682
|
-
value: errors['__proto__']
|
|
683
|
-
});
|
|
684
|
-
|
|
685
|
-
Object.keys(errors).forEach(function (k) {
|
|
686
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
687
|
-
});
|