Skip to content

Commit 804c0e2

Browse files
committed
Moved dynamodb to awsService folder
1 parent 68cef89 commit 804c0e2

22 files changed

+672
-53
lines changed

packages/core/src/dynamoDb/activation.ts renamed to packages/core/src/awsService/dynamoDb/activation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
*/
55

66
import * as vscode from 'vscode'
7-
import { ExtContext } from '../shared/extensions'
7+
import { ExtContext } from '../../shared/extensions'
88
import { copyDynamoDbArn } from './utils/dynamodb'
99
import { viewDynamoDbTable } from './vue/tableView'
1010
import { dynamoDbConsoleUrl } from './utils/dynamodb'
11-
import { Commands } from '../shared/vscode/commands2'
11+
import { Commands } from '../../shared/vscode/commands2'
1212
import { DynamoDbTableNode } from './explorer/dynamoDbTableNode'
1313
import { deleteDynamoDbTable } from './commands/deleteDynamoDbTable'
1414
import { searchDynamoDbTables } from './commands/searchDynamoDbTables'
1515
import { DynamoDbInstanceNode } from './explorer/dynamoDbInstanceNode'
16-
import { telemetry } from '../shared/telemetry'
16+
import { telemetry } from '../../shared/telemetry'
1717

1818
export async function activate(context: ExtContext): Promise<void> {
1919
context.extensionContext.subscriptions.push(

packages/core/src/dynamoDb/commands/deleteDynamoDbTable.ts renamed to packages/core/src/awsService/dynamoDb/commands/deleteDynamoDbTable.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { getLogger } from '../../shared'
7-
import { telemetry } from '../../shared/telemetry'
8-
import * as localizedText from '../../shared/localizedText'
9-
import { localize } from '../../shared/utilities/vsCodeUtils'
10-
import { DynamoDbClient } from '../../shared/clients/dynamoDbClient'
11-
import { showConfirmationMessage } from '../../shared/utilities/messages'
6+
import { getLogger } from '../../../shared'
7+
import { telemetry } from '../../../shared/telemetry'
8+
import * as localizedText from '../../../shared/localizedText'
9+
import { localize } from '../../../shared/utilities/vsCodeUtils'
10+
import { DynamoDbClient } from '../../../shared/clients/dynamoDbClient'
11+
import { showConfirmationMessage } from '../../../shared/utilities/messages'
1212
import { DynamoDbTableNode } from '../explorer/dynamoDbTableNode'
1313

1414
export async function deleteDynamoDbTable(

packages/core/src/dynamoDb/commands/searchDynamoDbTables.ts renamed to packages/core/src/awsService/dynamoDb/commands/searchDynamoDbTables.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
*/
55

66
import * as nls from 'vscode-nls'
7-
import { Wizard } from '../../shared/wizards/wizard'
8-
import { DataQuickPickItem } from '../../shared/ui/pickerPrompter'
9-
import { DynamoDbClient } from '../../shared/clients/dynamoDbClient'
10-
import { toArrayAsync } from '../../shared/utilities/collectionUtils'
11-
import { CancellationError } from '../../shared/utilities/timeoutUtils'
12-
import { RegionSubmenu, RegionSubmenuResponse } from '../../shared/ui/common/regionSubmenu'
13-
import { ExtContext } from '../../shared/extensions'
7+
import { Wizard } from '../../../shared/wizards/wizard'
8+
import { DataQuickPickItem } from '../../../shared/ui/pickerPrompter'
9+
import { DynamoDbClient } from '../../../shared/clients/dynamoDbClient'
10+
import { toArrayAsync } from '../../../shared/utilities/collectionUtils'
11+
import { CancellationError } from '../../../shared/utilities/timeoutUtils'
12+
import { RegionSubmenu, RegionSubmenuResponse } from '../../../shared/ui/common/regionSubmenu'
13+
import { ExtContext } from '../../../shared/extensions'
1414
import { viewDynamoDbTable } from '../vue/tableView'
15-
import { telemetry } from '../../shared/telemetry'
15+
import { telemetry } from '../../../shared/telemetry'
1616

1717
const localize = nls.loadMessageBundle()
1818

packages/core/src/dynamoDb/explorer/dynamoDbInstanceNode.ts renamed to packages/core/src/awsService/dynamoDb/explorer/dynamoDbInstanceNode.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
import * as vscode from 'vscode'
77
import { DynamoDbTableNode } from './dynamoDbTableNode'
8-
import { makeChildrenNodes } from '../../shared/treeview/utils'
9-
import { DynamoDbClient } from '../../shared/clients/dynamoDbClient'
10-
import { AWSTreeNodeBase } from '../../shared/treeview/nodes/awsTreeNodeBase'
11-
import { PlaceholderNode } from '../../shared/treeview/nodes/placeholderNode'
12-
import { toMap, toArrayAsync, updateInPlace } from '../../shared/utilities/collectionUtils'
13-
import { telemetry } from '../../shared/telemetry'
8+
import { makeChildrenNodes } from '../../../shared/treeview/utils'
9+
import { DynamoDbClient } from '../../../shared/clients/dynamoDbClient'
10+
import { AWSTreeNodeBase } from '../../../shared/treeview/nodes/awsTreeNodeBase'
11+
import { PlaceholderNode } from '../../../shared/treeview/nodes/placeholderNode'
12+
import { toMap, toArrayAsync, updateInPlace } from '../../../shared/utilities/collectionUtils'
13+
import { telemetry } from '../../../shared/telemetry'
1414

1515
export class DynamoDbInstanceNode extends AWSTreeNodeBase {
1616
protected readonly placeHolderMessage = '[No Tables Found]'

packages/core/src/dynamoDb/explorer/dynamoDbTableNode.ts renamed to packages/core/src/awsService/dynamoDb/explorer/dynamoDbTableNode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*/
55

66
import { DynamoDB } from 'aws-sdk'
7-
import { getIcon } from '../../shared/icons'
8-
import { AWSResourceNode } from '../../shared/treeview/nodes/awsResourceNode'
9-
import { AWSTreeNodeBase } from '../../shared/treeview/nodes/awsTreeNodeBase'
7+
import { getIcon } from '../../../shared/icons'
8+
import { AWSResourceNode } from '../../../shared/treeview/nodes/awsResourceNode'
9+
import { AWSTreeNodeBase } from '../../../shared/treeview/nodes/awsTreeNodeBase'
1010
import { DynamoDbInstanceNode } from './dynamoDbInstanceNode'
1111

1212
export class DynamoDbTableNode extends AWSTreeNodeBase implements AWSResourceNode {

packages/core/src/dynamoDb/utils/dynamodb.ts renamed to packages/core/src/awsService/dynamoDb/utils/dynamodb.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
import * as vscode from 'vscode'
77
import { DynamoDB } from 'aws-sdk'
8-
import { Settings } from '../../shared'
9-
import { copyToClipboard } from '../../shared/utilities/messages'
8+
import { Settings } from '../../../shared'
9+
import { copyToClipboard } from '../../../shared/utilities/messages'
1010
import { DynamoDbTableNode } from '../explorer/dynamoDbTableNode'
11-
import { DynamoDbClient } from '../../shared/clients/dynamoDbClient'
11+
import { DynamoDbClient } from '../../../shared/clients/dynamoDbClient'
1212
import { AttributeValue, Key, ScanInput } from 'aws-sdk/clients/dynamodb'
13-
import { telemetry } from '../../shared/telemetry'
13+
import { telemetry } from '../../../shared/telemetry'
1414

1515
export interface RowData {
1616
[key: string]: string

packages/core/src/dynamoDb/utils/editItem.ts renamed to packages/core/src/awsService/dynamoDb/utils/editItem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import * as os from 'os'
88
import * as path from 'path'
99
import * as vscode from 'vscode'
1010
import { RowData, TableSchema, getAttributeValue } from './dynamodb'
11-
import { DynamoDbClient } from '../../shared/clients/dynamoDbClient'
11+
import { DynamoDbClient } from '../../../shared/clients/dynamoDbClient'
1212
import { AttributeUpdates, GetItemInput, GetItemOutput, UpdateItemInput } from 'aws-sdk/clients/dynamodb'
13-
import { telemetry } from '../../shared/telemetry'
13+
import { telemetry } from '../../../shared/telemetry'
1414

1515
const openedDocuments: Set<string> = new Set()
1616

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)