Home Reference Source Repository

Variable

Static Public Summary
public
public
public
public
public

buildUpdateExpression(args: object, fn(attrName,: function): object: *

Builds an UpdateExpression to use in 'params' using only the provided item fields.

public

ddb: *

public
public
public

iterateArrayOverPromise(arr: Array, fn: Function, chained: Boolean): *

Iterates a promise over each element of the array If chaining is true, the resolved value is passed on to the promise of the following iteration

public

sha256: *

Static Public

public COUNTERS_TABLE_NAME: string source

import {COUNTERS_TABLE_NAME} from 'pyrope/lib/actions.js'

public buildAction: * source

import {buildAction} from 'pyrope/lib/utils.js'

public buildAssociationTableName: * source

import {buildAssociationTableName} from 'pyrope/lib/utils.js'

public buildItemIndices: * source

import {buildItemIndices} from 'pyrope/lib/utils.js'

public buildUpdateExpression(args: object, fn(attrName,: function): object: * source

import {buildUpdateExpression} from 'pyrope/lib/utils.js'

Builds an UpdateExpression to use in 'params' using only the provided item fields.

It makes the assumption that the HASH key is 'uuid' (and is excluded) and that every updated model has the attribute 'updatedAt'

Return:

object

An object to be merged in params, in the form {UpdateExpression, ExpressionAttributeNames, ExpressionAttributeValues}

public ddb: * source

import {ddb} from 'pyrope/lib/core.js'

public ddbClient: * source

import {ddbClient} from 'pyrope/lib/core.js'

public genTableDigest: * source

import {genTableDigest} from 'pyrope/lib/utils.js'

public iterateArrayOverPromise(arr: Array, fn: Function, chained: Boolean): * source

import {iterateArrayOverPromise} from 'pyrope/lib/utils.js'

Iterates a promise over each element of the array If chaining is true, the resolved value is passed on to the promise of the following iteration

Promise should have the signature (arg, prev) Where arg is the current iterated item from the array and prev is the previously resolved value.

public sha256: * source

import {sha256} from 'pyrope/lib/utils.js'