diff --git a/.changeset/spotty-onions-march.md b/.changeset/spotty-onions-march.md new file mode 100644 index 000000000..583f4d9ac --- /dev/null +++ b/.changeset/spotty-onions-march.md @@ -0,0 +1,5 @@ +--- +"@osdk/client": minor +--- + +Adding more package exports diff --git a/etc/client.report.api.md b/etc/client.report.api.md index d83a16fde..1f4ac57c2 100644 --- a/etc/client.report.api.md +++ b/etc/client.report.api.md @@ -12,11 +12,13 @@ import { ActionValidationResponse } from '@osdk/client.api'; import { ApplyActionOptions } from '@osdk/client.api'; import { ApplyBatchActionOptions } from '@osdk/client.api'; import type { Attachment } from '@osdk/client.api'; +import type { AttachmentUpload } from '@osdk/client.api'; import type { GreaterThan } from 'type-fest'; import type { GreaterThanOrEqual } from 'type-fest'; import type { InterfaceDefinition } from '@osdk/api'; import { InterfaceObjectSet } from '@osdk/client.api'; import type { IsEqual } from 'type-fest'; +import { isOk } from '@osdk/client.api'; import type { LessThan } from 'type-fest'; import type { Logger } from 'pino'; import { NOOP } from '@osdk/client.api'; @@ -31,6 +33,7 @@ import { PageResult } from '@osdk/client.api'; import { PalantirApiError } from '@osdk/shared.net.errors'; import type { QueryDefinition } from '@osdk/api'; import type { QuerySignatureFromDef } from '@osdk/client.api'; +import { Result } from '@osdk/client.api'; import type { SharedClient } from '@osdk/shared.client'; import { SharedClientContext } from '@osdk/shared.client'; import type { VersionBound } from '@osdk/api'; @@ -70,6 +73,9 @@ export interface Client extends SharedClient { // @public (undocumented) export function createAttachmentFromRid(client: MinimalClient, rid: string): Attachment; +// @public (undocumented) +export function createAttachmentUpload(data: Blob, name: string): AttachmentUpload; + // @public (undocumented) export const createClient: (baseUrl: string, ontologyRid: string | Promise, tokenProvider: () => Promise, options?: { logger?: Logger; @@ -85,10 +91,7 @@ export function createPlatformClient(baseUrl: string, tokenProvider: () => Promi export { InterfaceObjectSet } -// @public (undocumented) -export function isOk(result: ResultOrError): result is { - type: "ok"; -}; +export { isOk } export { NOOP } @@ -104,6 +107,8 @@ export { PageResult } export { PalantirApiError } +export { Result } + // @public (undocumented) export type ResultOrError = ({ type: "ok"; diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index 7c9b9947e..9954610a3 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -27,8 +27,11 @@ export type { OsdkActionParameters, OsdkObject, PageResult, + Result, WhereClause, } from "@osdk/client.api"; + +export { isOk } from "@osdk/client.api"; export { PalantirApiError } from "@osdk/shared.net.errors"; export type { Client } from "./Client.js"; @@ -36,7 +39,7 @@ export { createClient } from "./createClient.js"; export { createPlatformClient } from "./createPlatformClient.js"; export { createAttachmentFromRid } from "./createAttachmentFromRid.js"; +export { createAttachmentUpload } from "./object/AttachmentUpload.js"; export { ActionValidationError } from "./actions/ActionValidationError.js"; -export { isOk } from "./ResultOrError.js"; export type { ResultOrError } from "./ResultOrError.js";