Skip to content
module@warp-drive/utilities

Interface FindRecordUrlOptions ​

ts
interface FindRecordUrlOptions {
  host?: string;
  identifier: { id: string; type: string };
  namespace?: string;
  op: "findRecord";
  resourcePath?: string;
}

Defined in: index.ts:108

buildBaseURL options for a findRecord request.

Properties ​

host? ​

ts
host?: string;

Defined in: index.ts:133

Overrides the globally configured host for this call only.


identifier ​

ts
identifier: {
  id: string;
  type: string;
};

Defined in: index.ts:116

The type and id of the record to find.

id ​

ts
id: string;

The resource id.

type ​

ts
type: string;

The resource type.


namespace? ​

ts
namespace?: string;

Defined in: index.ts:137

Overrides the globally configured namespace for this call only.


op ​

ts
op: "findRecord";

Defined in: index.ts:112

The request operation this URL is for.


resourcePath? ​

ts
resourcePath?: string;

Defined in: index.ts:129

The path segment for the resource, defaults to identifier.type if not provided.

Released under the MIT License.