@servicenow/sdk - v4.4.1
    Preparing search index...

    This class handles http communication with the ServiceNow instance

    Implements

    • IConnector
    Index

    Constructors

    • Parameters

      • credential: LazyCredential | Credential

        The credential for authentication with the instance

      Returns Connector

    Methods

    • Returns Promise<string>

    • Parameters

      • scope: string

      Returns Promise<{ finished: boolean; id: string }>

    • Parameters

      • scope: string
      • Optionaloptions: { method: "complete" } | { lastPull?: string; method: "incremental" }

      Returns Promise<Response>

    • Parameters

      • updateSetId: string
      • scopeId: string

      Returns Promise<Response>

    • Returns URL

    • Returns Promise<string | undefined>

    • Parameters

      • progressId: string

      Returns Promise<{ percent_complete: number; status: string; status_message: string }>

    • Parameters

      • Optionalscope: string
      • OptionalscopeId: string

      Returns Promise<
          | {
              active: boolean;
              appId: string;
              name: string;
              scope: string;
              shortDescription: string;
              sysClassName: string;
          }
          | undefined,
      >

    • Returns Promise<boolean>

    • Parameters

      • updateSetId: string

      Returns Promise<number>

    • Parameters

      • sysIds: string[]
      • scope: string

      Returns Promise<CustomizeOrMoveResult[]>

    • Parameters

      • api: string
      • search: URLSearchParams

      Returns Promise<{ status: number; value: string }>

    • Parameters

      • scopeId: string

      Returns Promise<void>

    • Mapping between script include identifiers and their sys_id

      Returns Promise<Record<string, string>>

      Mapping of script to scripd sys_id (Example: { 'global.JSUtil': '1e2e4e24c1af42bea7f0c0f9fa40fbeb' })

    • Produces the typescript definition for glide server scriptables

      Returns Promise<string>

    • Produces the definitions for script includes

      Parameters

      • scriptIncludeIds: string[]

      Returns Promise<Record<string, string>>

    • Parameters

      • scopeId: string
      • isStoreApp: boolean

      Returns Promise<Response>

    • Type Parameters

      • T extends string

      Parameters

      • table: T
      • sysId: string
      • tableGraphs: RelationshipHierarchy<T>[]

      Returns Promise<UnloadedRecord[]>

    • Parameters

      • sysIds: string[]
      • scopeId: string

      Returns Promise<UnloadedRecord[]>

    • Parameters

      • file: Blob
      • options: {
            appInfo?: { scope: string; scopeId: string; version: string };
            installAsync?: boolean;
            isStoreApp?: boolean;
            loadDemoData?: boolean;
            registerScope?: boolean;
            timeoutMs?: number;
        }

      Returns Promise<{ rollbackId: string; trackerId: string } | undefined>

    • Parameters

      • scopeId: string
      • files: { blob: Blob; name: string }[]
      • Optionaloptions: { targetUpdateSetId?: string; timeoutMs?: number }

      Returns Promise<string>