Skip to content

Commit

Permalink
docs(lib-dynamodb): fix import path for api extractor compatibility (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Oct 9, 2023
1 parent 1ccfce1 commit 7477787
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private void writeKeyNode(MemberShape member) {
Shape collectionMemberTarget = model.expectShape(collectionMember.getTarget());
if (collectionMemberTarget.isUnionShape()
&& symbolProvider.toSymbol(collectionMemberTarget).getName().equals("AttributeValue")) {
writer.addImport("ALL_MEMBERS", null, "../src/commands/utils");
writer.addImport("ALL_MEMBERS", null, "./commands/utils");
writer.write("ALL_MEMBERS // set/list of AttributeValue");
return;
}
Expand All @@ -243,7 +243,7 @@ private void writeKeyNode(MemberShape member) {
});
} else if (memberTarget.isUnionShape()) {
if (symbolProvider.toSymbol(memberTarget).getName().equals("AttributeValue")) {
writer.addImport("SELF", null, "../src/commands/utils");
writer.addImport("SELF", null, "./commands/utils");
writer.write("SELF");
return;
} else {
Expand All @@ -258,7 +258,7 @@ private void writeKeyNode(MemberShape member) {
Shape mapMemberTarget = model.expectShape(mapMember.getTarget());
if (mapMemberTarget.isUnionShape()
&& symbolProvider.toSymbol(mapMemberTarget).getName().equals("AttributeValue")) {
writer.addImport("ALL_VALUES", null, "../src/commands/utils");
writer.addImport("ALL_VALUES", null, "./commands/utils");
writer.write("ALL_VALUES // map with AttributeValue");
return;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/BatchGetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/BatchWriteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/DeleteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES, SELF } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/ExecuteTransactionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/GetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/PutCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES, SELF } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/QueryCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/ScanCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/TransactGetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/TransactWriteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_VALUES } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_VALUES } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/UpdateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
import { Command as $Command } from "@smithy/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";

import { ALL_MEMBERS, ALL_VALUES, SELF } from "../../src/commands/utils";
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";

/**
Expand Down

0 comments on commit 7477787

Please sign in to comment.