@aws-sdk/client-repostspace 3.1036.0 → 3.1038.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
@@ -429,7 +429,7 @@ const checkState$2 = async (client, input) => {
429
429
  }
430
430
  catch (exception) {
431
431
  reason = exception;
432
- if (exception.name && exception.name == "ResourceNotFoundException") {
432
+ if (exception.name === "ResourceNotFoundException") {
433
433
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
434
434
  }
435
435
  }
@@ -528,7 +528,7 @@ const checkState = async (client, input) => {
528
528
  }
529
529
  catch (exception) {
530
530
  reason = exception;
531
- if (exception.name && exception.name == "ResourceNotFoundException") {
531
+ if (exception.name === "ResourceNotFoundException") {
532
532
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
533
533
  }
534
534
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetChannelCommand } from "../commands/GetChannelCommand";
2
+ import { GetChannelCommand, } from "../commands/GetChannelCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetChannelCommand } from "../commands/GetChannelCommand";
2
+ import { GetChannelCommand, } from "../commands/GetChannelCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -35,7 +35,7 @@ const checkState = async (client, input) => {
35
35
  }
36
36
  catch (exception) {
37
37
  reason = exception;
38
- if (exception.name && exception.name == "ResourceNotFoundException") {
38
+ if (exception.name === "ResourceNotFoundException") {
39
39
  return { state: WaiterState.SUCCESS, reason };
40
40
  }
41
41
  }
@@ -35,7 +35,7 @@ const checkState = async (client, input) => {
35
35
  }
36
36
  catch (exception) {
37
37
  reason = exception;
38
- if (exception.name && exception.name == "ResourceNotFoundException") {
38
+ if (exception.name === "ResourceNotFoundException") {
39
39
  return { state: WaiterState.SUCCESS, reason };
40
40
  }
41
41
  }
@@ -19,6 +19,7 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
19
19
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
20
20
  import { type UpdateChannelCommandInput, type UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
21
21
  import { type UpdateSpaceCommandInput, type UpdateSpaceCommandOutput } from "./commands/UpdateSpaceCommand";
22
+ import type { ResourceNotFoundException } from "./models/errors";
22
23
  import { RepostspaceClient } from "./RepostspaceClient";
23
24
  export interface Repostspace {
24
25
  /**
@@ -155,25 +156,25 @@ export interface Repostspace {
155
156
  * @param args - command input.
156
157
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
157
158
  */
158
- waitUntilChannelCreated(args: GetChannelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult>;
159
+ waitUntilChannelCreated(args: GetChannelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult<GetChannelCommandOutput>>;
159
160
  /**
160
161
  * @see {@link GetChannelCommand}
161
162
  * @param args - command input.
162
163
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
163
164
  */
164
- waitUntilChannelDeleted(args: GetChannelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult>;
165
+ waitUntilChannelDeleted(args: GetChannelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult<GetChannelCommandOutput | ResourceNotFoundException>>;
165
166
  /**
166
167
  * @see {@link GetSpaceCommand}
167
168
  * @param args - command input.
168
169
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
169
170
  */
170
- waitUntilSpaceCreated(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult>;
171
+ waitUntilSpaceCreated(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult<GetSpaceCommandOutput>>;
171
172
  /**
172
173
  * @see {@link GetSpaceCommand}
173
174
  * @param args - command input.
174
175
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
175
176
  */
176
- waitUntilSpaceDeleted(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult>;
177
+ waitUntilSpaceDeleted(args: GetSpaceCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Repostspace>, "client">): Promise<WaiterResult<GetSpaceCommandOutput | ResourceNotFoundException>>;
177
178
  }
178
179
  /**
179
180
  * <p>AWS re:Post Private is a private version of AWS re:Post for enterprises with Enterprise Support or Enterprise On-Ramp Support plans. It provides access to knowledge and experts to accelerate cloud adoption and increase developer productivity. With your organization-specific private re:Post, you can build an organization-specific developer community that drives efficiencies at scale and provides access to valuable knowledge resources. Additionally, re:Post Private centralizes trusted AWS technical content and offers private discussion forums to improve how your teams collaborate internally and with AWS to remove technical obstacles, accelerate innovation, and scale more efficiently in the cloud.</p>
@@ -81,6 +81,7 @@ import {
81
81
  UpdateSpaceCommandInput,
82
82
  UpdateSpaceCommandOutput,
83
83
  } from "./commands/UpdateSpaceCommand";
84
+ import { ResourceNotFoundException } from "./models/errors";
84
85
  import { RepostspaceClient } from "./RepostspaceClient";
85
86
  export interface Repostspace {
86
87
  batchAddChannelRoleToAccessors(
@@ -359,7 +360,7 @@ export interface Repostspace {
359
360
  WaiterConfiguration<Repostspace>,
360
361
  Exclude<keyof WaiterConfiguration<Repostspace>, "client">
361
362
  >
362
- ): Promise<WaiterResult>;
363
+ ): Promise<WaiterResult<GetChannelCommandOutput>>;
363
364
  waitUntilChannelDeleted(
364
365
  args: GetChannelCommandInput,
365
366
  waiterConfig:
@@ -368,7 +369,7 @@ export interface Repostspace {
368
369
  WaiterConfiguration<Repostspace>,
369
370
  Exclude<keyof WaiterConfiguration<Repostspace>, "client">
370
371
  >
371
- ): Promise<WaiterResult>;
372
+ ): Promise<WaiterResult<GetChannelCommandOutput | ResourceNotFoundException>>;
372
373
  waitUntilSpaceCreated(
373
374
  args: GetSpaceCommandInput,
374
375
  waiterConfig:
@@ -377,7 +378,7 @@ export interface Repostspace {
377
378
  WaiterConfiguration<Repostspace>,
378
379
  Exclude<keyof WaiterConfiguration<Repostspace>, "client">
379
380
  >
380
- ): Promise<WaiterResult>;
381
+ ): Promise<WaiterResult<GetSpaceCommandOutput>>;
381
382
  waitUntilSpaceDeleted(
382
383
  args: GetSpaceCommandInput,
383
384
  waiterConfig:
@@ -386,7 +387,7 @@ export interface Repostspace {
386
387
  WaiterConfiguration<Repostspace>,
387
388
  Exclude<keyof WaiterConfiguration<Repostspace>, "client">
388
389
  >
389
- ): Promise<WaiterResult>;
390
+ ): Promise<WaiterResult<GetSpaceCommandOutput | ResourceNotFoundException>>;
390
391
  }
391
392
  export declare class Repostspace
392
393
  extends RepostspaceClient
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetChannelCommandInput } from "../commands/GetChannelCommand";
2
+ import {
3
+ GetChannelCommandInput,
4
+ GetChannelCommandOutput,
5
+ } from "../commands/GetChannelCommand";
6
+ import { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
7
  import { RepostspaceClient } from "../RepostspaceClient";
4
8
  export declare const waitForChannelCreated: (
5
9
  params: WaiterConfiguration<RepostspaceClient>,
6
10
  input: GetChannelCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetChannelCommandOutput | RepostspaceServiceException>
13
+ >;
8
14
  export declare const waitUntilChannelCreated: (
9
15
  params: WaiterConfiguration<RepostspaceClient>,
10
16
  input: GetChannelCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetChannelCommandOutput>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetChannelCommandInput } from "../commands/GetChannelCommand";
2
+ import {
3
+ GetChannelCommandInput,
4
+ GetChannelCommandOutput,
5
+ } from "../commands/GetChannelCommand";
6
+ import { ResourceNotFoundException } from "../models/errors";
7
+ import { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
8
  import { RepostspaceClient } from "../RepostspaceClient";
4
9
  export declare const waitForChannelDeleted: (
5
10
  params: WaiterConfiguration<RepostspaceClient>,
6
11
  input: GetChannelCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<GetChannelCommandOutput | RepostspaceServiceException>
14
+ >;
8
15
  export declare const waitUntilChannelDeleted: (
9
16
  params: WaiterConfiguration<RepostspaceClient>,
10
17
  input: GetChannelCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<GetChannelCommandOutput | ResourceNotFoundException>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetSpaceCommandInput } from "../commands/GetSpaceCommand";
2
+ import {
3
+ GetSpaceCommandInput,
4
+ GetSpaceCommandOutput,
5
+ } from "../commands/GetSpaceCommand";
6
+ import { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
7
  import { RepostspaceClient } from "../RepostspaceClient";
4
8
  export declare const waitForSpaceCreated: (
5
9
  params: WaiterConfiguration<RepostspaceClient>,
6
10
  input: GetSpaceCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetSpaceCommandOutput | RepostspaceServiceException>>;
8
12
  export declare const waitUntilSpaceCreated: (
9
13
  params: WaiterConfiguration<RepostspaceClient>,
10
14
  input: GetSpaceCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetSpaceCommandOutput>>;
@@ -1,11 +1,16 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetSpaceCommandInput } from "../commands/GetSpaceCommand";
2
+ import {
3
+ GetSpaceCommandInput,
4
+ GetSpaceCommandOutput,
5
+ } from "../commands/GetSpaceCommand";
6
+ import { ResourceNotFoundException } from "../models/errors";
7
+ import { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
8
  import { RepostspaceClient } from "../RepostspaceClient";
4
9
  export declare const waitForSpaceDeleted: (
5
10
  params: WaiterConfiguration<RepostspaceClient>,
6
11
  input: GetSpaceCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<WaiterResult<GetSpaceCommandOutput | RepostspaceServiceException>>;
8
13
  export declare const waitUntilSpaceDeleted: (
9
14
  params: WaiterConfiguration<RepostspaceClient>,
10
15
  input: GetSpaceCommandInput
11
- ) => Promise<WaiterResult>;
16
+ ) => Promise<WaiterResult<GetSpaceCommandOutput | ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetChannelCommandInput } from "../commands/GetChannelCommand";
2
+ import { type GetChannelCommandInput, type GetChannelCommandOutput } from "../commands/GetChannelCommand";
3
+ import type { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
4
  import type { RepostspaceClient } from "../RepostspaceClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilChannelCreated instead. waitForChannelCreated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForChannelCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForChannelCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult<GetChannelCommandOutput | RepostspaceServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetChannelCommand for polling.
13
14
  */
14
- export declare const waitUntilChannelCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilChannelCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult<GetChannelCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetChannelCommandInput } from "../commands/GetChannelCommand";
2
+ import { type GetChannelCommandInput, type GetChannelCommandOutput } from "../commands/GetChannelCommand";
3
+ import type { ResourceNotFoundException } from "../models/errors";
4
+ import type { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
5
  import type { RepostspaceClient } from "../RepostspaceClient";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilChannelDeleted instead. waitForChannelDeleted does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForChannelDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForChannelDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult<GetChannelCommandOutput | RepostspaceServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to GetChannelCommand for polling.
13
15
  */
14
- export declare const waitUntilChannelDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilChannelDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetChannelCommandInput) => Promise<WaiterResult<GetChannelCommandOutput | ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetSpaceCommandInput } from "../commands/GetSpaceCommand";
2
+ import { type GetSpaceCommandInput, type GetSpaceCommandOutput } from "../commands/GetSpaceCommand";
3
+ import type { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
4
  import type { RepostspaceClient } from "../RepostspaceClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilSpaceCreated instead. waitForSpaceCreated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForSpaceCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForSpaceCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult<GetSpaceCommandOutput | RepostspaceServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetSpaceCommand for polling.
13
14
  */
14
- export declare const waitUntilSpaceCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilSpaceCreated: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult<GetSpaceCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetSpaceCommandInput } from "../commands/GetSpaceCommand";
2
+ import { type GetSpaceCommandInput, type GetSpaceCommandOutput } from "../commands/GetSpaceCommand";
3
+ import type { ResourceNotFoundException } from "../models/errors";
4
+ import type { RepostspaceServiceException } from "../models/RepostspaceServiceException";
3
5
  import type { RepostspaceClient } from "../RepostspaceClient";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilSpaceDeleted instead. waitForSpaceDeleted does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForSpaceDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForSpaceDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult<GetSpaceCommandOutput | RepostspaceServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to GetSpaceCommand for polling.
13
15
  */
14
- export declare const waitUntilSpaceDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilSpaceDeleted: (params: WaiterConfiguration<RepostspaceClient>, input: GetSpaceCommandInput) => Promise<WaiterResult<GetSpaceCommandOutput | ResourceNotFoundException>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-repostspace",
3
3
  "description": "AWS SDK for JavaScript Repostspace Client for Node.js, Browser and React Native",
4
- "version": "3.1036.0",
4
+ "version": "3.1038.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-repostspace",
@@ -21,17 +21,17 @@
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.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.6",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,9 +55,9 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.5",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.2.16",
60
+ "@smithy/util-waiter": "^4.3.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {