UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

207 lines (206 loc) 23.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableAction = exports.Table = exports.SubSchema = exports.Finder = exports.fromSchemaDTO = exports.SchemaDTO = exports.JSONSchemer = exports.ConditionParser = exports.PathParser = exports.Formatter = exports.Parser = exports.ItemSchema_ = exports.ItemSchema = exports.item = exports.AnyOfSchema_ = exports.AnyOfSchema = exports.anyOf = exports.RecordSchema_ = exports.RecordSchema = exports.record = exports.MapSchema_ = exports.MapSchema = exports.map = exports.ListSchema_ = exports.ListSchema = exports.list = exports.SetSchema_ = exports.SetSchema = exports.set = exports.BinarySchema_ = exports.BinarySchema = exports.binary = exports.StringSchema_ = exports.StringSchema = exports.string = exports.NumberSchema_ = exports.NumberSchema = exports.number = exports.BooleanSchema_ = exports.BooleanSchema = exports.boolean = exports.NullSchema_ = exports.NullSchema = exports.nul = exports.AnySchema_ = exports.AnySchema = exports.any = exports.s = exports.schema = exports.SchemaAction = void 0; exports.isRemoval = exports.isGetting = exports.isPrepending = exports.isDeletion = exports.isAppending = exports.isAddition = exports.isExtension = exports.$SUM = exports.$SUBTRACT = exports.$SET = exports.$REMOVE = exports.$PREPEND = exports.$GET = exports.$DELETE = exports.$APPEND = exports.$ADD = exports.$IS_EXTENSION = exports.$prepend = exports.$append = exports.$delete = exports.$add = exports.$subtract = exports.$sum = exports.$remove = exports.$get = exports.$set = exports.parseUpdateExtension = exports.UpdateItemCommand = exports.DeleteItemCommand = exports.PutItemCommand = exports.GetItemCommand = exports.EntityAction = exports.Entity = exports.Registry = exports.TableRepository = exports.fromTableDTO = exports.TableDTO = exports.TableSpy = exports.TableAccessPattern = exports.ITableAccessPattern = exports.executeBatchWrite = exports.BatchWriteCommand = exports.executeBatchGet = exports.BatchGetCommand = exports.DeletePartitionCommand = exports.ScanCommand = exports.IScanCommand = exports.QueryCommand = exports.IQueryCommand = exports.PrimaryKeyParser = void 0; exports.jsonStringify = exports.pipe = exports.suffix = exports.prefix = exports.isSerializableTransformer = exports.DynamoDBToolboxError = exports.fromEntityDTO = exports.EntityDTO = exports.EntityRepository = exports.EntitySpy = exports.EntityFormatter = exports.EntityPathParser = exports.EntityConditionParser = exports.EntityParser = exports.EntityAccessPattern = exports.IEntityAccessPattern = exports.ConditionCheck = exports.DeleteTransaction = exports.UpdateTransaction = exports.PutTransaction = exports.executeTransactWrite = exports.GetTransaction = exports.executeTransactGet = exports.BatchPutRequest = exports.BatchDeleteRequest = exports.BatchGetRequest = exports.parseUpdateAttributesExtension = exports.UpdateAttributesCommand = exports.isSum = exports.isSubtraction = exports.isSetting = void 0; // schema var index_js_1 = require("./schema/index.js"); Object.defineProperty(exports, "SchemaAction", { enumerable: true, get: function () { return index_js_1.SchemaAction; } }); Object.defineProperty(exports, "schema", { enumerable: true, get: function () { return index_js_1.schema; } }); Object.defineProperty(exports, "s", { enumerable: true, get: function () { return index_js_1.s; } }); var index_js_2 = require("./schema/any/index.js"); Object.defineProperty(exports, "any", { enumerable: true, get: function () { return index_js_2.any; } }); Object.defineProperty(exports, "AnySchema", { enumerable: true, get: function () { return index_js_2.AnySchema; } }); Object.defineProperty(exports, "AnySchema_", { enumerable: true, get: function () { return index_js_2.AnySchema_; } }); var index_js_3 = require("./schema/null/index.js"); Object.defineProperty(exports, "nul", { enumerable: true, get: function () { return index_js_3.nul; } }); Object.defineProperty(exports, "NullSchema", { enumerable: true, get: function () { return index_js_3.NullSchema; } }); Object.defineProperty(exports, "NullSchema_", { enumerable: true, get: function () { return index_js_3.NullSchema_; } }); var index_js_4 = require("./schema/boolean/index.js"); Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return index_js_4.boolean; } }); Object.defineProperty(exports, "BooleanSchema", { enumerable: true, get: function () { return index_js_4.BooleanSchema; } }); Object.defineProperty(exports, "BooleanSchema_", { enumerable: true, get: function () { return index_js_4.BooleanSchema_; } }); var index_js_5 = require("./schema/number/index.js"); Object.defineProperty(exports, "number", { enumerable: true, get: function () { return index_js_5.number; } }); Object.defineProperty(exports, "NumberSchema", { enumerable: true, get: function () { return index_js_5.NumberSchema; } }); Object.defineProperty(exports, "NumberSchema_", { enumerable: true, get: function () { return index_js_5.NumberSchema_; } }); var index_js_6 = require("./schema/string/index.js"); Object.defineProperty(exports, "string", { enumerable: true, get: function () { return index_js_6.string; } }); Object.defineProperty(exports, "StringSchema", { enumerable: true, get: function () { return index_js_6.StringSchema; } }); Object.defineProperty(exports, "StringSchema_", { enumerable: true, get: function () { return index_js_6.StringSchema_; } }); var index_js_7 = require("./schema/binary/index.js"); Object.defineProperty(exports, "binary", { enumerable: true, get: function () { return index_js_7.binary; } }); Object.defineProperty(exports, "BinarySchema", { enumerable: true, get: function () { return index_js_7.BinarySchema; } }); Object.defineProperty(exports, "BinarySchema_", { enumerable: true, get: function () { return index_js_7.BinarySchema_; } }); var index_js_8 = require("./schema/set/index.js"); Object.defineProperty(exports, "set", { enumerable: true, get: function () { return index_js_8.set; } }); Object.defineProperty(exports, "SetSchema", { enumerable: true, get: function () { return index_js_8.SetSchema; } }); Object.defineProperty(exports, "SetSchema_", { enumerable: true, get: function () { return index_js_8.SetSchema_; } }); var index_js_9 = require("./schema/list/index.js"); Object.defineProperty(exports, "list", { enumerable: true, get: function () { return index_js_9.list; } }); Object.defineProperty(exports, "ListSchema", { enumerable: true, get: function () { return index_js_9.ListSchema; } }); Object.defineProperty(exports, "ListSchema_", { enumerable: true, get: function () { return index_js_9.ListSchema_; } }); var index_js_10 = require("./schema/map/index.js"); Object.defineProperty(exports, "map", { enumerable: true, get: function () { return index_js_10.map; } }); Object.defineProperty(exports, "MapSchema", { enumerable: true, get: function () { return index_js_10.MapSchema; } }); Object.defineProperty(exports, "MapSchema_", { enumerable: true, get: function () { return index_js_10.MapSchema_; } }); var index_js_11 = require("./schema/record/index.js"); Object.defineProperty(exports, "record", { enumerable: true, get: function () { return index_js_11.record; } }); Object.defineProperty(exports, "RecordSchema", { enumerable: true, get: function () { return index_js_11.RecordSchema; } }); Object.defineProperty(exports, "RecordSchema_", { enumerable: true, get: function () { return index_js_11.RecordSchema_; } }); var index_js_12 = require("./schema/anyOf/index.js"); Object.defineProperty(exports, "anyOf", { enumerable: true, get: function () { return index_js_12.anyOf; } }); Object.defineProperty(exports, "AnyOfSchema", { enumerable: true, get: function () { return index_js_12.AnyOfSchema; } }); Object.defineProperty(exports, "AnyOfSchema_", { enumerable: true, get: function () { return index_js_12.AnyOfSchema_; } }); var index_js_13 = require("./schema/item/index.js"); Object.defineProperty(exports, "item", { enumerable: true, get: function () { return index_js_13.item; } }); Object.defineProperty(exports, "ItemSchema", { enumerable: true, get: function () { return index_js_13.ItemSchema; } }); Object.defineProperty(exports, "ItemSchema_", { enumerable: true, get: function () { return index_js_13.ItemSchema_; } }); var index_js_14 = require("./schema/actions/parse/index.js"); Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return index_js_14.Parser; } }); var index_js_15 = require("./schema/actions/format/index.js"); Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return index_js_15.Formatter; } }); var index_js_16 = require("./schema/actions/parsePaths/index.js"); Object.defineProperty(exports, "PathParser", { enumerable: true, get: function () { return index_js_16.PathParser; } }); var index_js_17 = require("./schema/actions/parseCondition/index.js"); Object.defineProperty(exports, "ConditionParser", { enumerable: true, get: function () { return index_js_17.ConditionParser; } }); var index_js_18 = require("./schema/actions/jsonSchemer/index.js"); Object.defineProperty(exports, "JSONSchemer", { enumerable: true, get: function () { return index_js_18.JSONSchemer; } }); var index_js_19 = require("./schema/actions/dto/index.js"); Object.defineProperty(exports, "SchemaDTO", { enumerable: true, get: function () { return index_js_19.SchemaDTO; } }); var index_js_20 = require("./schema/actions/fromDTO/index.js"); Object.defineProperty(exports, "fromSchemaDTO", { enumerable: true, get: function () { return index_js_20.fromSchemaDTO; } }); var index_js_21 = require("./schema/actions/finder/index.js"); Object.defineProperty(exports, "Finder", { enumerable: true, get: function () { return index_js_21.Finder; } }); Object.defineProperty(exports, "SubSchema", { enumerable: true, get: function () { return index_js_21.SubSchema; } }); // tables var index_js_22 = require("./table/index.js"); Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return index_js_22.Table; } }); Object.defineProperty(exports, "TableAction", { enumerable: true, get: function () { return index_js_22.TableAction; } }); var index_js_23 = require("./table/actions/parsePrimaryKey/index.js"); Object.defineProperty(exports, "PrimaryKeyParser", { enumerable: true, get: function () { return index_js_23.PrimaryKeyParser; } }); var index_js_24 = require("./table/actions/query/index.js"); Object.defineProperty(exports, "IQueryCommand", { enumerable: true, get: function () { return index_js_24.IQueryCommand; } }); Object.defineProperty(exports, "QueryCommand", { enumerable: true, get: function () { return index_js_24.QueryCommand; } }); var index_js_25 = require("./table/actions/scan/index.js"); Object.defineProperty(exports, "IScanCommand", { enumerable: true, get: function () { return index_js_25.IScanCommand; } }); Object.defineProperty(exports, "ScanCommand", { enumerable: true, get: function () { return index_js_25.ScanCommand; } }); var index_js_26 = require("./table/actions/deletePartition/index.js"); Object.defineProperty(exports, "DeletePartitionCommand", { enumerable: true, get: function () { return index_js_26.DeletePartitionCommand; } }); var index_js_27 = require("./table/actions/batchGet/index.js"); Object.defineProperty(exports, "BatchGetCommand", { enumerable: true, get: function () { return index_js_27.BatchGetCommand; } }); Object.defineProperty(exports, "executeBatchGet", { enumerable: true, get: function () { return index_js_27.execute; } }); var index_js_28 = require("./table/actions/batchWrite/index.js"); Object.defineProperty(exports, "BatchWriteCommand", { enumerable: true, get: function () { return index_js_28.BatchWriteCommand; } }); Object.defineProperty(exports, "executeBatchWrite", { enumerable: true, get: function () { return index_js_28.execute; } }); var index_js_29 = require("./table/actions/accessPattern/index.js"); Object.defineProperty(exports, "ITableAccessPattern", { enumerable: true, get: function () { return index_js_29.IAccessPattern; } }); Object.defineProperty(exports, "TableAccessPattern", { enumerable: true, get: function () { return index_js_29.AccessPattern; } }); var index_js_30 = require("./table/actions/spy/index.js"); Object.defineProperty(exports, "TableSpy", { enumerable: true, get: function () { return index_js_30.TableSpy; } }); var index_js_31 = require("./table/actions/dto/index.js"); Object.defineProperty(exports, "TableDTO", { enumerable: true, get: function () { return index_js_31.TableDTO; } }); var index_js_32 = require("./table/actions/fromDTO/index.js"); Object.defineProperty(exports, "fromTableDTO", { enumerable: true, get: function () { return index_js_32.fromTableDTO; } }); var index_js_33 = require("./table/actions/repository/index.js"); Object.defineProperty(exports, "TableRepository", { enumerable: true, get: function () { return index_js_33.TableRepository; } }); var index_js_34 = require("./table/actions/registry/index.js"); Object.defineProperty(exports, "Registry", { enumerable: true, get: function () { return index_js_34.Registry; } }); // entities var index_js_35 = require("./entity/index.js"); Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return index_js_35.Entity; } }); Object.defineProperty(exports, "EntityAction", { enumerable: true, get: function () { return index_js_35.EntityAction; } }); var index_js_36 = require("./entity/actions/get/index.js"); Object.defineProperty(exports, "GetItemCommand", { enumerable: true, get: function () { return index_js_36.GetItemCommand; } }); var index_js_37 = require("./entity/actions/put/index.js"); Object.defineProperty(exports, "PutItemCommand", { enumerable: true, get: function () { return index_js_37.PutItemCommand; } }); var index_js_38 = require("./entity/actions/delete/index.js"); Object.defineProperty(exports, "DeleteItemCommand", { enumerable: true, get: function () { return index_js_38.DeleteItemCommand; } }); var index_js_39 = require("./entity/actions/update/index.js"); Object.defineProperty(exports, "UpdateItemCommand", { enumerable: true, get: function () { return index_js_39.UpdateItemCommand; } }); Object.defineProperty(exports, "parseUpdateExtension", { enumerable: true, get: function () { return index_js_39.parseUpdateExtension; } }); Object.defineProperty(exports, "$set", { enumerable: true, get: function () { return index_js_39.$set; } }); Object.defineProperty(exports, "$get", { enumerable: true, get: function () { return index_js_39.$get; } }); Object.defineProperty(exports, "$remove", { enumerable: true, get: function () { return index_js_39.$remove; } }); Object.defineProperty(exports, "$sum", { enumerable: true, get: function () { return index_js_39.$sum; } }); Object.defineProperty(exports, "$subtract", { enumerable: true, get: function () { return index_js_39.$subtract; } }); Object.defineProperty(exports, "$add", { enumerable: true, get: function () { return index_js_39.$add; } }); Object.defineProperty(exports, "$delete", { enumerable: true, get: function () { return index_js_39.$delete; } }); Object.defineProperty(exports, "$append", { enumerable: true, get: function () { return index_js_39.$append; } }); Object.defineProperty(exports, "$prepend", { enumerable: true, get: function () { return index_js_39.$prepend; } }); var index_js_40 = require("./entity/actions/update/symbols/index.js"); Object.defineProperty(exports, "$IS_EXTENSION", { enumerable: true, get: function () { return index_js_40.$IS_EXTENSION; } }); Object.defineProperty(exports, "$ADD", { enumerable: true, get: function () { return index_js_40.$ADD; } }); Object.defineProperty(exports, "$APPEND", { enumerable: true, get: function () { return index_js_40.$APPEND; } }); Object.defineProperty(exports, "$DELETE", { enumerable: true, get: function () { return index_js_40.$DELETE; } }); Object.defineProperty(exports, "$GET", { enumerable: true, get: function () { return index_js_40.$GET; } }); Object.defineProperty(exports, "$PREPEND", { enumerable: true, get: function () { return index_js_40.$PREPEND; } }); Object.defineProperty(exports, "$REMOVE", { enumerable: true, get: function () { return index_js_40.$REMOVE; } }); Object.defineProperty(exports, "$SET", { enumerable: true, get: function () { return index_js_40.$SET; } }); Object.defineProperty(exports, "$SUBTRACT", { enumerable: true, get: function () { return index_js_40.$SUBTRACT; } }); Object.defineProperty(exports, "$SUM", { enumerable: true, get: function () { return index_js_40.$SUM; } }); Object.defineProperty(exports, "isExtension", { enumerable: true, get: function () { return index_js_40.isExtension; } }); Object.defineProperty(exports, "isAddition", { enumerable: true, get: function () { return index_js_40.isAddition; } }); Object.defineProperty(exports, "isAppending", { enumerable: true, get: function () { return index_js_40.isAppending; } }); Object.defineProperty(exports, "isDeletion", { enumerable: true, get: function () { return index_js_40.isDeletion; } }); Object.defineProperty(exports, "isPrepending", { enumerable: true, get: function () { return index_js_40.isPrepending; } }); Object.defineProperty(exports, "isGetting", { enumerable: true, get: function () { return index_js_40.isGetting; } }); Object.defineProperty(exports, "isRemoval", { enumerable: true, get: function () { return index_js_40.isRemoval; } }); Object.defineProperty(exports, "isSetting", { enumerable: true, get: function () { return index_js_40.isSetting; } }); Object.defineProperty(exports, "isSubtraction", { enumerable: true, get: function () { return index_js_40.isSubtraction; } }); Object.defineProperty(exports, "isSum", { enumerable: true, get: function () { return index_js_40.isSum; } }); var index_js_41 = require("./entity/actions/updateAttributes/index.js"); Object.defineProperty(exports, "UpdateAttributesCommand", { enumerable: true, get: function () { return index_js_41.UpdateAttributesCommand; } }); Object.defineProperty(exports, "parseUpdateAttributesExtension", { enumerable: true, get: function () { return index_js_41.parseUpdateAttributesExtension; } }); var index_js_42 = require("./entity/actions/batchGet/index.js"); Object.defineProperty(exports, "BatchGetRequest", { enumerable: true, get: function () { return index_js_42.BatchGetRequest; } }); var index_js_43 = require("./entity/actions/batchDelete/index.js"); Object.defineProperty(exports, "BatchDeleteRequest", { enumerable: true, get: function () { return index_js_43.BatchDeleteRequest; } }); var index_js_44 = require("./entity/actions/batchPut/index.js"); Object.defineProperty(exports, "BatchPutRequest", { enumerable: true, get: function () { return index_js_44.BatchPutRequest; } }); var index_js_45 = require("./entity/actions/transactGet/index.js"); Object.defineProperty(exports, "executeTransactGet", { enumerable: true, get: function () { return index_js_45.execute; } }); var index_js_46 = require("./entity/actions/transactGet/index.js"); Object.defineProperty(exports, "GetTransaction", { enumerable: true, get: function () { return index_js_46.GetTransaction; } }); var index_js_47 = require("./entity/actions/transactWrite/index.js"); Object.defineProperty(exports, "executeTransactWrite", { enumerable: true, get: function () { return index_js_47.execute; } }); var index_js_48 = require("./entity/actions/transactPut/index.js"); Object.defineProperty(exports, "PutTransaction", { enumerable: true, get: function () { return index_js_48.PutTransaction; } }); var index_js_49 = require("./entity/actions/transactUpdate/index.js"); Object.defineProperty(exports, "UpdateTransaction", { enumerable: true, get: function () { return index_js_49.UpdateTransaction; } }); var index_js_50 = require("./entity/actions/transactDelete/index.js"); Object.defineProperty(exports, "DeleteTransaction", { enumerable: true, get: function () { return index_js_50.DeleteTransaction; } }); var index_js_51 = require("./entity/actions/transactCheck/index.js"); Object.defineProperty(exports, "ConditionCheck", { enumerable: true, get: function () { return index_js_51.ConditionCheck; } }); var index_js_52 = require("./entity/actions/accessPattern/index.js"); Object.defineProperty(exports, "IEntityAccessPattern", { enumerable: true, get: function () { return index_js_52.IAccessPattern; } }); Object.defineProperty(exports, "EntityAccessPattern", { enumerable: true, get: function () { return index_js_52.AccessPattern; } }); var index_js_53 = require("./entity/actions/parse/index.js"); Object.defineProperty(exports, "EntityParser", { enumerable: true, get: function () { return index_js_53.EntityParser; } }); var index_js_54 = require("./entity/actions/parseCondition/index.js"); Object.defineProperty(exports, "EntityConditionParser", { enumerable: true, get: function () { return index_js_54.EntityConditionParser; } }); var index_js_55 = require("./entity/actions/parsePaths/index.js"); Object.defineProperty(exports, "EntityPathParser", { enumerable: true, get: function () { return index_js_55.EntityPathParser; } }); var index_js_56 = require("./entity/actions/format/index.js"); Object.defineProperty(exports, "EntityFormatter", { enumerable: true, get: function () { return index_js_56.EntityFormatter; } }); var index_js_57 = require("./entity/actions/spy/index.js"); Object.defineProperty(exports, "EntitySpy", { enumerable: true, get: function () { return index_js_57.EntitySpy; } }); var index_js_58 = require("./entity/actions/repository/index.js"); Object.defineProperty(exports, "EntityRepository", { enumerable: true, get: function () { return index_js_58.EntityRepository; } }); var index_js_59 = require("./entity/actions/dto/index.js"); Object.defineProperty(exports, "EntityDTO", { enumerable: true, get: function () { return index_js_59.EntityDTO; } }); var index_js_60 = require("./entity/actions/fromDTO/index.js"); Object.defineProperty(exports, "fromEntityDTO", { enumerable: true, get: function () { return index_js_60.fromEntityDTO; } }); // errors var index_js_61 = require("./errors/index.js"); Object.defineProperty(exports, "DynamoDBToolboxError", { enumerable: true, get: function () { return index_js_61.DynamoDBToolboxError; } }); var index_js_62 = require("./transformers/index.js"); Object.defineProperty(exports, "isSerializableTransformer", { enumerable: true, get: function () { return index_js_62.isSerializableTransformer; } }); var prefix_js_1 = require("./transformers/prefix.js"); Object.defineProperty(exports, "prefix", { enumerable: true, get: function () { return prefix_js_1.prefix; } }); var suffix_js_1 = require("./transformers/suffix.js"); Object.defineProperty(exports, "suffix", { enumerable: true, get: function () { return suffix_js_1.suffix; } }); var pipe_js_1 = require("./transformers/pipe.js"); Object.defineProperty(exports, "pipe", { enumerable: true, get: function () { return pipe_js_1.pipe; } }); var jsonStringify_js_1 = require("./transformers/jsonStringify.js"); Object.defineProperty(exports, "jsonStringify", { enumerable: true, get: function () { return jsonStringify_js_1.jsonStringify; } });