@arizeai/phoenix-client
Version:
A client for the Phoenix API
15 lines • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveProjectIdentifier = resolveProjectIdentifier;
/**
* Resolves a {@link ProjectIdentifier} union to a plain string
* suitable for the REST `project_identifier` path parameter.
*/
function resolveProjectIdentifier(identifier) {
if ("project" in identifier)
return identifier.project;
if ("projectId" in identifier)
return identifier.projectId;
return identifier.projectName;
}
//# sourceMappingURL=projects.js.map