Docs@skmtc/core

Webhooks

TYPE

WebhookProjectionBaseClass

@skmtc/core 0.63.4

The class that toWebhookProjectionBase returns: its statics, and a constructor that gives a WebhookProjectionInstance.

Signature

import type { WebhookProjectionBaseClass } from '@skmtc/core'

interface WebhookProjectionBaseClass<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType, ProjectionOptions = undefined>

Properties

new, (args: WebhookProjectionConstructorArgs<EnrichmentType, ProjectionOptions>) => WebhookProjectionInstance<EnrichmentType, ProjectionOptions> required
lang, Lang required

The language of the base class. See LangSnippetConstructor.

id, string required

The generator's id.

type, 'webhook' required
toIdentifierName, (args: ToWebhookIdentifierNameArgs<EnrichmentType, ProjectionOptions>) => string required

The config's toIdentifierName.

toIdentifierType, (webhook: OasWebhook, context: GenerateContextType) => IdType required

The config's toIdentifierType.

toExportPath, (args: ToWebhookExportPathArgs<EnrichmentType, ProjectionOptions>) => string required

The config's toExportPath.

toEnrichmentDefaults, (args: ToWebhookEnrichmentsArgs) => EnrichmentType | undefined required

Calls the config's toEnrichmentDefaults; returns undefined when it has none.