/** * Upwork API Client * * Main client class that provides high-level access to Upwork API operations */ import { GeneratedUpworkClient } from "./generated/generated-client"; import { UpworkAuth } from "./lib/auth"; import { UpworkGraphQLClient } from "./lib/graphql-client"; import { AuthConfig, GraphQLClientOptions } from "./types"; export declare class UpworkClient { auth: UpworkAuth; graphql: UpworkGraphQLClient; generated: GeneratedUpworkClient; /** * Create an Upwork API client * @param authConfig - Authentication configuration * @param graphqlOptions - GraphQL client options */ constructor(authConfig: AuthConfig, graphqlOptions?: GraphQLClientOptions); /** * Job Postings API */ jobs: { /** * Get a job posting by ID */ getJobPosting: (jobId: string) => Promise>; /** * Search marketplace job postings */ searchJobs: (params: { query?: string; limit?: number; offset?: number; sort?: string; }) => Promise>; /** * Create a job posting */ createJobPosting: (input: any) => Promise>; /** * Update a job posting */ updateJobPosting: (id: string, input: any) => Promise>; }; /** * User and Profile API */ users: { /** * Get current user information */ getMe: () => Promise>; /** * Get organization information */ getOrganization: (id: string) => Promise>; /** * Get freelancer profile by key */ getFreelancerProfile: (profileKey: string) => Promise>; }; /** * Contracts and Offers API */ contracts: { /** * Get contract by ID */ getContract: (id: string) => Promise>; /** * Get list of contracts */ getContracts: (params?: { limit?: number; offset?: number; }) => Promise>; /** * End contract (freelancer) */ endContract: (contractId: string, reason: string) => Promise>; /** * Create an offer */ createOffer: (input: any) => Promise>; }; /** * Proposals API */ proposals: { /** * Get freelancer proposals */ getProposals: (params?: { limit?: number; offset?: number; }) => Promise>; /** * Get client proposals */ getClientProposals: (params?: { limit?: number; offset?: number; }) => Promise>; }; /** * Metadata API */ metadata: { /** * Get countries list */ getCountries: () => Promise>; /** * Get time zones */ getTimeZones: () => Promise>; /** * Get ontology skills */ getSkills: (params?: { query?: string; limit?: number; }) => Promise>; }; /** * Search API */ search: { /** * Search freelancers */ searchFreelancers: (params: { query?: string; limit?: number; offset?: number; }) => Promise>; }; } export * from "./types"; export { UpworkAuth } from "./lib/auth"; export { UpworkGraphQLClient } from "./lib/graphql-client"; export { GeneratedUpworkClient } from "./generated/generated-client"; export * as Types from "./generated/generated-types"; export { queries, mutations } from "./generated/generated-operations"; //# sourceMappingURL=index.d.ts.map