@ptkl/sdk - v1.10.0
    Preparing search index...
    Index

    Accessors

    • get params(): Record<string, string>

      All query-string key-value pairs, or empty object if none.

      Returns Record<string, string>

    • get path(): string

      The resource path segment, or empty string if absent.

      Returns string

    • get ref(): string

      The resource identifier within its type — slug, UUID, name.

      Returns string

    • get type(): string

      The resource category — e.g. "component", "integration", "user".

      Returns string

    Methods

    • Returns the value for the given query-param key, or empty string if not present.

      Parameters

      • key: string

      Returns string

    • Returns string

    • Constructs a PRN from its constituent parts. Params are sorted by key for deterministic output.

      Parameters

      • type: string
      • ref: string
      • Optionalpath: string
      • Optionalparams: Record<string, string>

      Returns PRN

    • Validates a PRN string and returns it as a PRN instance. Throws if the string is not a valid PRN.

      Parameters

      • s: string

      Returns PRN