@salesforce/b2c-tooling-sdk / operations/mrt / InvalidateCacheBackendOptions
Interface: InvalidateCacheBackendOptions
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:2002
Options for invalidateCacheWithBackend.
Extends
Properties
environment
environment:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:2004
Environment slug (= SCAPI environment ID) to invalidate on.
legacyAuth?
optionallegacyAuth:AuthStrategy
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1450
Legacy API-key auth strategy. Optional; required only when the legacy backend actually runs.
Inherited from
onFallback()?
optionalonFallback: (reason) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1456
Invoked when auto falls back from SCAPI to legacy.
Parameters
reason
string
Returns
void
Inherited from
onResolve()?
optionalonResolve: (backend) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1458
Invoked with the backend that serves the call (for -D debug).
Parameters
backend
Returns
void
Inherited from
origin?
optionalorigin:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1454
Legacy MRT API origin.
Inherited from
pattern
pattern:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:2006
Path prefix to invalidate (must start with /).
preference
preference:
MrtBackendPreference
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1446
Resolved --mrt-backend preference.
Inherited from
projectSlug
projectSlug:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1452
Project slug (= SCAPI storefront ID).
Inherited from
scapiConnection?
optionalscapiConnection:ScapiMrtConnection
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1448
SCAPI connection; when absent, auto uses legacy and scapi throws.