"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RestoreCommerceGrpcClient = exports.FieldFilter = exports.Sort_SortOrder = exports.Sort = exports.ReadRequest = exports.DeleteRequest = void 0;
const grpc_client_1 = require("@restorecommerce/grpc-client");
const resource_base_1 = require("./generated/io/restorecommerce/resource_base");
Object.defineProperty(exports, "DeleteRequest", { enumerable: true, get: function () { return resource_base_1.DeleteRequest; } });
Object.defineProperty(exports, "ReadRequest", { enumerable: true, get: function () { return resource_base_1.ReadRequest; } });
Object.defineProperty(exports, "Sort", { enumerable: true, get: function () { return resource_base_1.Sort; } });
Object.defineProperty(exports, "Sort_SortOrder", { enumerable: true, get: function () { return resource_base_1.Sort_SortOrder; } });
Object.defineProperty(exports, "FieldFilter", { enumerable: true, get: function () { return resource_base_1.FieldFilter; } });
const commandinterface_1 = require("./generated/io/restorecommerce/commandinterface");
const nice_grpc_1 = require("nice-grpc");
class RestoreCommerceGrpcClient {
    channel;
    command;
    constructor(address, cfg) {
        this.channel = (0, nice_grpc_1.createChannel)(address);
        this.command = (0, grpc_client_1.createClient)(cfg, commandinterface_1.CommandInterfaceServiceDefinition, this.channel);
    }
    createClient = grpc_client_1.createClient;
}
exports.RestoreCommerceGrpcClient = RestoreCommerceGrpcClient;
//# sourceMappingURL=grpc-client.js.map