CommerceProviders
Literal union of valid commerce provider type strings, constrained to the same set as the
runtime CommerceProviders array. Use to type commerceProvider.type parameters in service
methods and admin forms without hardcoding string literals.
Definition
type CommerceProviders = typeof CommerceProviders[number];typeof CommerceProviders[number]
Example
import type { CommerceProviders } from '@nordcom/commerce-db';
function isSupported(type: string): type is CommerceProviders {
return (CommerceProviders as readonly string[]).includes(type);
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
CommerceProvider
Discriminated union of all supported commerce provider configurations. Narrow by commerceProvider.type to access providerspecific credential fields.
convexIdentityMutation
Calls a deployed Convex mutation by path on an identityauthenticated client — the bearertoken companion to . No serverSecret is injected: the callee is expected