@inweb/client
    Preparing search index...

    Class ClashTest

    Сlash detection test.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • data: any

        Raw test data received from the server.

      • path: string

        The API path of the resource that owns the test.

      • httpClient: IHttpClient

        HTTP client instance used to send requests to the REST API server.

      Returns ClashTest

    Properties

    headers: HeadersInit

    Endpoint-specific HTTP headers for the GET, POST, PUT and DELETE requests. You can add custom headers at any time.

    path: string

    Endpoint API path relative to the REST API server URL.

    Accessors

    • get clearance(): number | boolean

      The distance used for detecting clearance clashes. Can be:

      • number - The distance in meters at which the test begins detecting clearance clashes.
      • null, false - Clearance clash detection was disabled for this test.
      • true - Clearance clash detection is enabled, but the tolerance value is used as the distance.

      Clearance clashes occur when object A is closer to object B than specified distance, but does not intersect it.

      Returns number | boolean

    • get createdAt(): string

      Test creation time (UTC) in the format specified in ISO 8601.

      Returns string

    • get id(): string

      Unique test ID.

      Returns string

    • get lastModifiedAt(): string

      Test last update (UTC) time in the format specified in ISO 8601.

      Returns string

    • get name(): string

      Test name.

      Returns string

    • get status(): string

      Test status. Can be waiting, inprogress, done, or failed.

      Returns string

    • get tolerance(): number

      The distance used for detecting hard clashes, in meters. null if hard clash detection was disabled for this test.

      Hard clashes occur when object A intersects with object B by a distance greater than the specified value.

      Returns number

    Methods

    • Reloads test data from the server.

      Returns Promise<ClashTest>

    • Deletes a test and its report from the server.

      Returns Promise<any>

      Returns the raw data of the deleted test.

    • Returns a list of detected clash pairs for this test.

      Returns Promise<any>

    • Saves test properties changes to the server. Call this method to update test data on the server after any property changes.

      Returns Promise<ClashTest>

    • Updates test data on the server.

      Parameters

      • data: any

        Raw test data.

      Returns Promise<ClashTest>

    • Waits for test to complete. Test is done when it changes to done or failed status.

      Parameters

      • Optionalparams: {
            interval?: number;
            onCheckout?: (test: ClashTest, ready: boolean) => boolean;
            signal?: AbortSignal;
            timeout?: number;
        }

        An object containing waiting parameters.

        • Optionalinterval?: number

          The time, in milliseconds, the function should delay between status checks.

        • OptionalonCheckout?: (test: ClashTest, ready: boolean) => boolean

          Waiting progress callback. Return true to cancel waiting.

        • Optionalsignal?: AbortSignal

          An AbortController signal, which can be used to abort waiting.

        • Optionaltimeout?: number

          The time, in milliseconds that the function should wait. If the test is not complete during this time, a TimeoutError exception will be thrown.

      Returns Promise<ClashTest>