@senzing/sz-sdk-typescript-grpc - v4.0.0-beta.4.0
    Preparing search index...

    Class SzGrpcConfig

    SzConfig Access the Senzing Config module via gRPC

    Hierarchy

    • SzGrpcBase
      • SzGrpcConfig

    Implements

    • SzConfig
    Index

    Properties

    grpcConnectionReadyTimeOut: number = DEFAULT_CONNECTION_READY_TIMEOUT
    productId: string = "5050"

    Methods

    • Returns a JSON document of data sources contained in an in-memory configuration.

      Returns Promise<{ DSRC_CODE: string; DSRC_ID: number }[]>

      containing a JSON document listing all of the data sources.

    • Parameters

      • OptionalsecondsFromNow: number

      Returns Date

    • Adds a data source to an existing in-memory configuration.

      Parameters

      • dataSourceCode: string

        Name of data source code to add.

      Returns Promise<string>

      JSON document listing the newly created data source

    • Adds multiple data sources to an existing in-memory configuration.

      Parameters

      • dataSourceCodes: string[]

      Returns Promise<string[]>

      JSON documents for each datasource listing the newly created data source

    • Removes a data source from an existing in-memory configuration. or SzGrpcConfig#importConfig methods.

      Parameters

      • dataSourceCode: string

        Name of data source code to delete.

      Returns Promise<boolean>

      for async flow control

    • Removed multiple data sources from an existing in-memory configuration.

      Parameters

      • dataSourceCodes: string[]

      Returns Promise<{ DELETED: boolean; DSRC_CODE: string }[]>

      JSON documents for each datasource listing the newly created data source

    • Parameters

      • OptionalconfigDefinition: string

      Returns Promise<unknown>

    • Wait for the client to be ready. The callback will be called when the client has successfully connected to the server, and it will be called with an error if the attempt to connect to the server has unrecoverablly failed or if the deadline expires. This function will make the channel start connecting if it has not already done so.

      Parameters

      • deadline: Date
      • cb: (error: Error | null) => void

      Returns any

    Accessors

    • get definition(): string

      Returns string

    • set definition(value: string): void

      Parameters

      • value: string

      Returns void