MCPcopy Index your code
hub / github.com/callstack/agent-device / leaseScopeToCommandFlags

Function leaseScopeToCommandFlags

src/core/lease-scope.ts:120–130  ·  view source on GitHub ↗
(scope: LeaseScope)

Source from the content-addressed store, hash-verified

118}
119
120export function leaseScopeToCommandFlags(scope: LeaseScope): Record<string, unknown> {
121 return stripUndefined({
122 tenant: scope.tenantId,
123 runId: scope.runId,
124 leaseId: scope.leaseId,
125 leaseBackend: scope.leaseBackend,
126 leaseProvider: scope.leaseProvider,
127 deviceKey: scope.deviceKey,
128 clientId: scope.clientId,
129 });
130}
131
132export function leaseScopeToAllocateRequest(scope: LeaseScope): LeaseAllocateRequestScope {
133 return stripUndefined({

Callers 3

buildFlagsFunction · 0.90

Calls 1

stripUndefinedFunction · 0.90

Tested by

no test coverage detected