This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Consumer, SQSMessage } from 'sqs-consumer'; | |
| import { Agent } from 'https'; | |
| import * as Sentry from '@sentry/node'; | |
| import { Event } from './base.event'; | |
| import AWS from '../../utils/awsConfig'; | |
| import { APP_LOGGER } from '../../utils/logger'; | |
| export abstract class BaseListener<T extends Event> { | |
| protected abstract queueUrl: string; | |
| protected abstract visibilityTimeout: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export abstract class Event { | |
| readonly $name: string; | |
| readonly $version: number; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await Promise.all( | |
| documentDrafts.map(async (documentDraft: DocumentDraft) => | |
| this.updateDocumentDraftPublisher.publish( | |
| new UpdateDocumentDraftCommand(templateId, documentDraft.id, batchId, userId) | |
| ) | |
| ) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable no-unused-vars */ | |
| import 'dotenv/config'; | |
| import throng from 'throng'; | |
| import { APP_LOGGER } from './utils/logger'; | |
| enum ProcessType { | |
| WEB = 'web', | |
| DOCUMENT_DRAFT_PROCESSOR_WORKER = 'document-draft-processor-worker', | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import peg from 'pegjs'; | |
| import HttpException from '../exceptions/HttpException'; | |
| import { | |
| Functions, | |
| TemplateFunctionsService, | |
| } from '../services'; | |
| import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [if condition='1=1']Hello world 01![/if]$capitalize([q#1234]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "conditionalStatement": { | |
| "conditional": { | |
| "op": "=", | |
| "lhs": "1", | |
| "rhs": "1" | |
| }, | |
| "body1": [ | |
| "Hello world 01!" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HighlightToken = "[highlight]" / "[/highlight]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Operator = op:("=" / "!=" / ">" / "<" / ">=" / "<=" / "$=")+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ConditionStatement = | |
| lhs:(Value / FunctionStatement) | |
| operator:Operator | |
| rhs:(Value / FunctionStatement) { | |
| return {op: operator.join(''), lhs, rhs} | |
| } |
NewerOlder