Skip to content

Commit

Permalink
fix: correct type import path in the sdk client
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Oct 29, 2023
1 parent fc0be57 commit 0ab7070
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mods/connect/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { ILocationService } from "@routr/location"
import { UnsuportedRoutingError } from "./errors"
import { getLogger } from "@fonoster/logger"
import { checkAccess } from "./access"
import { Backend } from "@routr/location/src/types"
import { Backend } from "@routr/location"

const logger = getLogger({ service: "connect", filePath: __filename })
const jwtVerifier = getVerifierImpl()
Expand Down
4 changes: 2 additions & 2 deletions mods/dispatcher/src/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { ProcessorGPRCConnection } from "./types"
import { ProcessorConfig, PROCESSOR_OBJECT_PROTO } from "@routr/common"
import { MiddlewareConfig } from "@routr/common/src/types"
import { CommonTypes } from "@routr/common"
import * as grpc from "@grpc/grpc-js"

/**
Expand All @@ -29,7 +29,7 @@ import * as grpc from "@grpc/grpc-js"
* @return {ProcessorGPRCConnection}
*/
export default function connectToBackend(
processors: ProcessorConfig[] | MiddlewareConfig[]
processors: ProcessorConfig[] | CommonTypes.MiddlewareConfig[]
): Map<string, ProcessorGPRCConnection> {
const procs = processors ? [...processors] : []
const connections = new Map<string, ProcessorGPRCConnection>()
Expand Down
1 change: 1 addition & 0 deletions mods/location/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import LocationClient from "./client"
export * as Helper from "./helper"
export * as Utils from "./utils"
export * from "./errors"
export * from "./types"

export { LocationClient, ILocationService, getConfig }
export { LocationConfig, CacheProvider, locationService }
3 changes: 1 addition & 2 deletions mods/registry/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
CommonTypes as CT
} from "@routr/common"
import { getLogger } from "@fonoster/logger"
import { SIPMessage } from "@routr/common/src/types"

const logger = getLogger({ service: "registry", filePath: __filename })

Expand Down Expand Up @@ -98,7 +97,7 @@ export default function registryService(config: RegistryConfig) {
return
}

const message = result.value.message as SIPMessage
const message = result.value.message as CT.SIPMessage

// Makes sure we send register before the last register expires
const retentionTime =
Expand Down
3 changes: 1 addition & 2 deletions mods/sdk/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
import * as grpc from "@grpc/grpc-js"
import { Metadata } from "@grpc/grpc-js"
import { CommonConnect as CC, Assertions as A } from "@routr/common"
import { APIClient as ConnectClient } from "@routr/common/src/connect"
import { ClientOptions } from "./types"
import fs from "fs"

export abstract class APIClient {
client: ConnectClient
client: CC.APIClient
constructor(options: ClientOptions) {
const metadata = new Metadata()

Expand Down

0 comments on commit 0ab7070

Please sign in to comment.