Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as picker from '../../../shared/ui/picker'
import * as vscode from 'vscode'
import { ProgressLocation } from 'vscode'

import { Stage } from 'aws-sdk/clients/apigateway'
import { Stage } from '@aws-sdk/client-api-gateway'
import { ApiGatewayClient } from '../../../shared/clients/apiGateway'
import { defaultDnsSuffix, RegionProvider } from '../../../shared/regions/regionProvider'
import { getLogger } from '../../../shared/logger/logger'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AWSTreeNodeBase } from '../../../shared/treeview/nodes/awsTreeNodeBase'
import { PlaceholderNode } from '../../../shared/treeview/nodes/placeholderNode'
import { compareTreeItems, makeChildrenNodes } from '../../../shared/treeview/utils'
import { ApiGatewayClient } from '../../../shared/clients/apiGateway'
import { RestApi } from 'aws-sdk/clients/apigateway'
import { RestApi } from '@aws-sdk/client-api-gateway'
import { toArrayAsync, toMap, updateInPlace } from '../../../shared/utilities/collectionUtils'
import { RestApiNode } from './apiNodes'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { AWSResourceNode } from '../../../shared/treeview/nodes/awsResourceNode'
import { AWSTreeNodeBase } from '../../../shared/treeview/nodes/awsTreeNodeBase'
import { RestApi } from 'aws-sdk/clients/apigateway'
import { RestApi } from '@aws-sdk/client-api-gateway'

export class RestApiNode extends AWSTreeNodeBase implements AWSResourceNode {
public override id!: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { RestApiNode } from '../explorer/apiNodes'
import { getLogger, Logger } from '../../../shared/logger/logger'

import { toArrayAsync } from '../../../shared/utilities/collectionUtils'
import { Resource } from 'aws-sdk/clients/apigateway'
import { Resource } from '@aws-sdk/client-api-gateway'
import { localize } from '../../../shared/utilities/vsCodeUtils'
import { Result } from '../../../shared/telemetry/telemetry'
import { VueWebview } from '../../../webviews/main'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import { getLogger } from '../../../../shared/logger/logger'
import { DefaultLambdaClient } from '../../../../shared/clients/lambdaClient'
import globals from '../../../../shared/extensionGlobals'
import { defaultPartition } from '../../../../shared/regions/regionProvider'
import { Lambda, APIGateway } from 'aws-sdk'
import { Lambda } from 'aws-sdk'
import { RestApi } from '@aws-sdk/client-api-gateway'
import { LambdaNode } from '../../../../lambda/explorer/lambdaNodes'
import { LambdaFunctionNode } from '../../../../lambda/explorer/lambdaFunctionNode'
import { S3Client, toBucket } from '../../../../shared/clients/s3'
Expand Down Expand Up @@ -118,12 +119,7 @@ export async function generateDeployedNode(
const apiParentNode = new ApiGatewayNode(partitionId, regionCode)
const apiNodes = await apiParentNode.getChildren()
const apiNode = apiNodes.find((node) => node.id === deployedResource.PhysicalResourceId)
newDeployedResource = new RestApiNode(
apiParentNode,
partitionId,
regionCode,
apiNode as APIGateway.RestApi
)
newDeployedResource = new RestApiNode(apiParentNode, partitionId, regionCode, apiNode as RestApi)
break
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { Timestamp } from 'aws-sdk/clients/apigateway'
import { MessagePublisher } from '../../../amazonq/messages/messagePublisher'
import { EditorContextCommandType } from '../../commands/registerCommands'
import { AuthFollowUpType } from '../../../amazonq/auth/model'
Expand Down Expand Up @@ -97,7 +96,7 @@ interface StackOverflowMetadata {
readonly answerCount: number
readonly isAccepted: boolean
readonly score: number
readonly lastActivityDate: Timestamp
readonly lastActivityDate: Date
}

export class SearchView extends UiMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import assert from 'assert'
import { listValidMethods } from '../../../../awsService/apigateway/vue/invokeRemoteRestApi'
import { Resource } from 'aws-sdk/clients/apigateway'
import { Resource } from '@aws-sdk/client-api-gateway'

describe('listValidMethods', function () {
const allMethods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT']
Expand Down