Skip to content

Latest commit

 

History

History
173 lines (80 loc) · 2.75 KB

File metadata and controls

173 lines (80 loc) · 2.75 KB

Home > @codemonger-io/mapping-template-compose

mapping-template-compose package

Compose API Gateway mapping templates.

Functions

Function

Description

andCommaConditions(conditions)

(BETA) ANDs given conditions that determine if a comma is necessary.

composeMappingTemplate(items)

(BETA) Composes a mapping template for Amazon API Gateway.

getCommaConditionAfterIfBlock(ifBlock)

(BETA) Returns the condition in which a trailing comma is necessary after a given IfBlock.

getCommaConditionAfterItem(item)

(BETA) Returns the condition in which a trailing comma is necessary after a given item.

ifThen(condition, thenBlock)

(BETA) Creates an IfBlock that has only the then-block.

ifThenElse(condition, thenBlock, elseBlock)

(BETA) Creates an IfBlock that has then- and else-blocks.

isKeyValue(item)

(BETA) Returns if a given value is a KeyValue.

orCommaConditions(conditions)

(BETA) ORs given conditions that determine if a comma is necessary.

Interfaces

Interface

Description

IfBlock

(BETA) If block.

Type Aliases

Type Alias

Description

KeyValue

(BETA) Key-value pair.

MappingTemplateItem

(BETA) Item constituting a mapping template.