"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSdk = void 0;
const sdk_1 = require("./generated/sdk");
const graphqlClient_1 = require("./graphqlClient");
/**
 * @deprecated DO NOT USE
 * DO NOT USE
 */
const createSdk = async ({ settings }) => {
    const client = (0, graphqlClient_1.initialiseClient)(settings);
    // Check if the client was successfully initialized
    if (client === undefined) {
        throw new Error('There was a problem creating the Healthie GraphQL API Client. Please check your extension settings to validate the API URL and API Key.');
    }
    const sdk = (0, sdk_1.getSdk)(client);
    return { sdk };
};
exports.createSdk = createSdk;
//# sourceMappingURL=createSdk.js.map