@servicenow/sdk - v4.4.1
    Preparing search index...
    interface IConnector {
        appCreatorVendorPrefix(): Promise<string>;
        appUpgradeStatus(scope: string): Promise<{ finished: boolean; id: string }>;
        download(
            scope: string,
            options?:
                | { method: "complete" }
                | { lastPull?: string; method: "incremental" },
        ): Promise<Response>;
        downloadUpdateSet(updateSetId: string, scopeId: string): Promise<Response>;
        getHost(): URL;
        getInstanceBuildName(): Promise<string | undefined>;
        getProgress(
            progressId: string,
        ): Promise<
            { percent_complete: number; status: string; status_message: string },
        >;
        getScopeInfo(
            scope?: string,
            scopeId?: string,
        ): Promise<
            | {
                active: boolean;
                appId: string;
                name: string;
                scope: string;
                shortDescription: string;
                sysClassName: string;
            }
            | undefined,
        >;
        getUpdateMutex(): Promise<boolean>;
        getUpdateXMLCount(updateSetId: string): Promise<number>;
        moveToApp(
            sysIds: string[],
            scope: string,
        ): Promise<CustomizeOrMoveResult[]>;
        processorRequest(
            api: string,
            search: URLSearchParams,
        ): Promise<{ status: number; value: string }>;
        setCurrentApplication(scopeId: string): Promise<void>;
        syntaxEditorCacheScriptIncludes(): Promise<Record<string, string>>;
        syntaxEditorCompletionDefinitions(): Promise<string>;
        syntaxEditorDefinitionsScriptIncludes(
            scriptIncludeIds: string[],
        ): Promise<Record<string, string>>;
        uninstallApplication(
            scopeId: string,
            isStoreApp: boolean,
        ): Promise<Response>;
        unloadDependentRecords<T extends string>(
            table: T,
            sysId: string,
            relationship: RelationshipHierarchy<T>[],
        ): Promise<UnloadedRecord[]>;
        unloadRecords(sysIds: string[], scopeId: string): Promise<UnloadedRecord[]>;
        uploadScopedAppPackage(
            file: Blob,
            options: {
                appInfo?: { scope: string; scopeId: string; version: string };
                installAsync?: boolean;
                isStoreApp?: boolean;
                loadDemoData?: boolean;
                registerScope?: boolean;
                timeoutMs?: number;
            },
        ): Promise<{ rollbackId: string; trackerId: string } | undefined>;
        uploadXmlFiles(
            scope: string,
            files: { blob: Blob; name: string }[],
            options?: { targetUpdateSetId?: string; timeoutMs?: number },
        ): Promise<string>;
    }

    Implemented by

    Index

    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>

    • Returns Promise<Record<string, string>>

    • Returns Promise<string>

    • Parameters

      • scriptIncludeIds: string[]

      Returns Promise<Record<string, string>>

    • Parameters

      • scopeId: string
      • isStoreApp: boolean

      Returns Promise<Response>

    • Type Parameters

      • T extends string

      Parameters

      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

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

      Returns Promise<string>