Skip to content

Commit c12ef9e

Browse files
authored
Merge branch 'main' into 20260317-ts-sdk-root-workflow-empty-fix
2 parents b0f3f6f + fac8d00 commit c12ef9e

13 files changed

Lines changed: 565 additions & 467 deletions

File tree

packages/common/src/internal-non-workflow/codec-helpers.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,17 @@ export function noopEncodeMap<K extends string>(
357357
return map as Record<K, EncodedPayload> | null | undefined;
358358
}
359359

360+
export function noopEncodeSearchAttrs<K extends string>(
361+
attrs: temporal.api.common.v1.ISearchAttributes | null | undefined
362+
): temporal.api.common.v1.ISearchAttributes | null | undefined {
363+
if (!attrs) {
364+
return attrs;
365+
}
366+
return {
367+
indexedFields: noopEncodeMap(attrs.indexedFields),
368+
};
369+
}
370+
360371
/**
361372
* Mark all values in the map as decoded.
362373
* Use this for headers, which we don't encode.

0 commit comments

Comments
 (0)