Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / operations/content / LibraryParseOptions

Interface: LibraryParseOptions

Defined in: packages/b2c-tooling-sdk/src/operations/content/types.ts:17

Options for parsing a library XML string into a Library tree.

Properties

assetQuery?

optional assetQuery: string[]

Defined in: packages/b2c-tooling-sdk/src/operations/content/types.ts:30

Dot-notation paths for extracting static asset references from component JSON data. Use * as a wildcard to traverse arrays.

Default

ts
['image.path']

Example

typescript
// Extract image paths from nested JSON
{ assetQuery: ['image.path', 'banners.*.image.src'] }

keepOrphans?

optional keepOrphans: boolean

Defined in: packages/b2c-tooling-sdk/src/operations/content/types.ts:38

Include orphan components (components not linked to any page) as root-level children. Useful for cleaning up unused components.

Default

ts
false

Released under the Apache-2.0 License.