The function Parts is a TypeScript function that returns an object with methods for retrieving, creating, updating, and deleting parts based on a given base URL, client ID, site ID, and optional part ID.

  • Parameters

    • baseUrl: string

      The base URL for the API endpoint.

    • clientId: TClientId

      The clientId parameter is of type TClientId, which represents the client ID. It is used to identify the client for whom the parts are being queried.

    • siteId: string

      The siteId parameter is a string that represents the ID of a site. It is used to identify a specific site in the system.

    • OptionalpartId: string = null

      The partId parameter is a string that represents the ID of a specific part. It is optional and can be set to null if not needed.

    Returns IQueryParts

    an object of type IQueryParts.