🚨 Announcing Vendure v2 Beta

ConfigurableOperationDefOptions

ConfigurableOperationDefOptions

Common configuration options used when creating a new instance of a ConfigurableOperationDef (

Signature

interface ConfigurableOperationDefOptions<T extends ConfigArgs> extends InjectableStrategy {
  code: string;
  args: T;
  description: LocalizedStringArray;
}

Extends

Members

code

property
type:
string
A unique code used to identify this operation.

args

property
type:
T

Optional provider-specific arguments which, when specified, are editable in the admin-ui. For example, args could be used to store an API key for a payment provider service.

Example

args: {
  apiKey: { type: 'string' },
}

See ConfigArgs for available configuration options.

description

property
A human-readable description for the operation method.