API class for Tooling API call

Type Parameters

Constructors

Properties

_conn: Connection<S>
_createMany: Object = _createMany
_createParallel: Object = _createParallel
_createSingle: Object = _createSingle
_destroyMany: Object = _destroyMany
_destroyParallel: Object = _destroyParallel
_destroySingle: Object = _destroySingle
_ensureVersion: ((majorVersion) => boolean) = _ensureVersion

Type declaration

    • (majorVersion): boolean
    • Parameters

      • majorVersion: number

      Returns boolean

_retrieveMany: Object = _retrieveMany
_retrieveParallel: Object = _retrieveParallel
_retrieveSingle: Object = _retrieveSingle
_updateMany: Object = _updateMany
_updateParallel: Object = _updateParallel
_updateSingle: Object = _updateSingle
cache: Cache = ...
create: {
    <N, InputRecord>(type, records, options?): Promise<SaveResult[]>;
    <N, InputRecord>(type, record, options?): Promise<SaveResult>;
    <N, InputRecord>(type, records, options?): Promise<SaveResult | SaveResult[]>;
} = create

Create records

Type declaration

del: {
    <N>(type, ids, options?): Promise<SaveResult[]>;
    <N>(type, id, options?): Promise<SaveResult>;
    <N>(type, ids, options?): Promise<SaveResult | SaveResult[]>;
} = destroy

Synonym of Tooling#destroy()

Type declaration

delete: {
    <N>(type, ids, options?): Promise<SaveResult[]>;
    <N>(type, id, options?): Promise<SaveResult>;
    <N>(type, ids, options?): Promise<SaveResult | SaveResult[]>;
} = destroy

Synonym of Tooling#destroy()

Type declaration

describe: CachedFunction<((type) => Promise<DescribeSObjectResult>)> = ...

Describe SObject metadata

Type declaration

describe$: CachedFunction<((type) => Promise<DescribeSObjectResult>)> = ...

Type declaration

describe$$: CachedFunction<((name) => DescribeSObjectResult)> = ...

Type declaration

describeGlobal: CachedFunction<(() => Promise<DescribeGlobalResult>)> = ...

Describe global SObjects

Type declaration

describeGlobal$: CachedFunction<(() => Promise<DescribeGlobalResult>)> = ...

Type declaration

describeGlobal$$: CachedFunction<((name) => DescribeGlobalResult)> = ...

Type declaration

describeSObject: CachedFunction<((type) => Promise<DescribeSObjectResult>)> = ...

Synonym of Tooling#describe()

Type declaration

describeSObject$: CachedFunction<((type) => Promise<DescribeSObjectResult>)> = ...

Type declaration

describeSObject$$: CachedFunction<((name) => DescribeSObjectResult)> = ...

Type declaration

destroy: {
    <N>(type, ids, options?): Promise<SaveResult[]>;
    <N>(type, id, options?): Promise<SaveResult>;
    <N>(type, ids, options?): Promise<SaveResult | SaveResult[]>;
} = destroy

Delete records

Type declaration

insert: {
    <N, InputRecord>(type, records, options?): Promise<SaveResult[]>;
    <N, InputRecord>(type, record, options?): Promise<SaveResult>;
    <N, InputRecord>(type, records, options?): Promise<SaveResult | SaveResult[]>;
} = create

Synonym of Tooling#create()

Type declaration

query: (<T>(soql, options?) => Query<S, Extract<keyof S["SObjects"], string>, T, "QueryResult">) = query

Execute query by using SOQL

Type declaration

    • <T>(soql, options?): Query<S, Extract<keyof S["SObjects"], string>, T, "QueryResult">
    • Type Parameters

      Parameters

      Returns Query<S, Extract<keyof S["SObjects"], string>, T, "QueryResult">

queryMore: ((locator, options?) => Query<S, Extract<keyof S["SObjects"], string>, Record, "QueryResult">) = queryMore

Query next record set by using query locator

Type declaration

    • (locator, options?): Query<S, Extract<keyof S["SObjects"], string>, Record, "QueryResult">
    • Parameters

      Returns Query<S, Extract<keyof S["SObjects"], string>, Record, "QueryResult">

retrieve: {
    <N>(type, ids, options?): Promise<Record>;
    <N>(type, ids, options?): Promise<Record[]>;
    <N>(type, ids, options?): Promise<Record | Record[]>;
} = retrieve

Retrieve specified records

Type declaration

    • <N>(type, ids, options?): Promise<Record>
    • Type Parameters

      • N extends string

      Parameters

      Returns Promise<Record>

    • <N>(type, ids, options?): Promise<Record[]>
    • Type Parameters

      • N extends string

      Parameters

      Returns Promise<Record[]>

    • <N>(type, ids, options?): Promise<Record | Record[]>
    • Type Parameters

      • N extends string

      Parameters

      Returns Promise<Record | Record[]>

sobject: (<N>(type) => SObject<S, N, Extract<keyof S["SObjects"][N]["Fields"], string>, SObjectRecord<S, N, "*", Record, {}>, Partial<SObjectRecord<S, N, "*", Record, {}>>, SObjectUpdateRecord<S, N>>) = sobject

Get SObject instance

Type declaration

sobjects: {
    [N in string]?: SObject<S, N, Extract<keyof S["SObjects"][N]["Fields"], string>, SObjectRecord<S, N, "*", Record, {}>, Partial<SObjectRecord<S, N, "*", Record, {}>>, SObjectUpdateRecord<S, N>>
} = {}
update: {
    <N, UpdateRecord>(type, records, options?): Promise<SaveResult[]>;
    <N, UpdateRecord>(type, record, options?): Promise<SaveResult>;
    <N, UpdateRecord>(type, records, options?): Promise<SaveResult | SaveResult[]>;
} = update

Update records

Type declaration

upsert: {
    <N, InputRecord, FieldNames>(type, records, extIdField, options?): Promise<UpsertResult[]>;
    <N, InputRecord, FieldNames>(type, record, extIdField, options?): Promise<UpsertResult>;
    <N, InputRecord, FieldNames>(type, records, extIdField, options?): Promise<UpsertResult | UpsertResult[]>;
} = upsert

Upsert records

Type declaration

Accessors

Methods