/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Apideck } from "../index.js"; import { createTestHTTPClient } from "./testclient.js"; test("Apiresources Connector Api Resources One", async () => { const testHttpClient = createTestHTTPClient("connector.apiResourcesOne"); const apideck = new Apideck({ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", httpClient: testHttpClient, apiKey: process.env["APIDECK_API_KEY"] ?? "value", }); const result = await apideck.connector.apiResources.get({ appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", id: "", resourceId: "", }); expect(result.httpMeta.response.status).toBe(200); expect(result.getApiResourceResponse).toBeDefined(); expect(result.getApiResourceResponse).toEqual({ statusCode: 200, status: "OK", data: { id: "companies", name: "Companies", linkedResources: [ { id: "companies", unifiedProperty: "owner_id", }, { id: "companies", unifiedProperty: "owner_id", }, { id: "companies", unifiedProperty: "owner_id", }, ], }, meta: { itemsOnPage: 50, cursors: { previous: "em9oby1jcm06OnBhZ2U6OjE=", current: "em9oby1jcm06OnBhZ2U6OjI=", next: "em9oby1jcm06OnBhZ2U6OjM=", }, }, links: { previous: "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", current: "https://unify.apideck.com/crm/companies", next: "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", }, }); });