Skip to content

Commit

Permalink
Add dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gndelia committed Dec 27, 2023
1 parent 9faf7b5 commit 1715e76
Show file tree
Hide file tree
Showing 157 changed files with 3,457 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
.nyc_output
coverage
dist
4 changes: 4 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { DynamoDB } from './lib';
export { ReadItem, TransactRead, TransactQuery, TransactDeleteItem, TransactInsertItem, TransactUpdateItem, WriteItem, BatchWrite, TransactWrite, TransactMethod, BaseQuery, CreateTable, DeleteItem, DeleteTable, Executable, InsertItem, ListTables, Method, Query, Scan, UpdateItem, UpdateQuery, DynamoDBOptions, DynamoDB, TableOptions, Table } from './lib';
declare const _default: DynamoDB;
export default _default;
26 changes: 26 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions dist/lib/dynamodb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/// <reference types="node" />
import { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
import { NodeHttpHandlerOptions } from "@smithy/node-http-handler";
import { AwsCredentialIdentity } from "@aws-sdk/types";
import { AgentOptions } from "http";
import { Options as RetryOptions } from "p-retry";
import { Table, TableOptions } from "./table";
import { ListTables, DeleteTable, CreateTable, TransactWrite, WriteItem, TransactRead, ReadItem, BatchWrite } from "./methods";
import { Schema } from "./types";
import { BatchItem } from "./methods/batch";
export declare type DynamoDBOptions = Pick<DynamoDBClientConfig, "endpoint" | "region"> & Partial<Pick<AwsCredentialIdentity, "accessKeyId" | "secretAccessKey" | "sessionToken">> & Pick<AgentOptions, "keepAlive"> & {
httpOptions?: Omit<NodeHttpHandlerOptions, "httpAgent" | "httpsAgent">;
} & {
local?: boolean;
host?: string;
localPort?: number;
prefix?: string;
prefixDelimiter?: string;
retries?: number | RetryOptions;
};
export declare class DynamoDB {
client?: DynamoDBDocument;
private options;
private _retries?;
connect(_options?: DynamoDBOptions): void;
get delimiter(): string;
get prefix(): string;
get retries(): number | RetryOptions;
/**
* Returns the table that can be used to interact with it.
*
* @param name The name of the table that is being interacted with.
* @param options Options object.
*/
table(name: string, options?: TableOptions): Table;
/**
* Returns the table that can be used to interact with. The table name will not be prefixed automatically.
*
* @param name The name of the table that is being interacted with.
*/
rawTable(name: string): Table;
/**
* Instantiate a dropped table object.
*
* @param name The name of the table that should be dropped.
* @param options Options object.
*/
dropTable(name: string, options?: TableOptions): DeleteTable;
/**
* Instantiate a raw dropped table object. The table name will not be prefixed automatically.
*
* @param name The name of the table that should be dropped.
*/
dropRawTable(name: string): DeleteTable;
/**
* Instantiate a create table object.
*
* @param schema The schema of the table that should be created.
* @param options Options object.
*/
createTable(schema: Schema, options?: TableOptions): CreateTable;
/**
* Instantiate a create table object.
*
* @param schema The schema of the table that should be created.
*/
createRawTable(schema: Schema): CreateTable;
/**
* Instantiate a list tables object.
*/
listTables(): ListTables;
/**
* Start a write transaction with the provided actions.
*
* @param actions List of transaction actions.
*/
transactWrite(...actions: WriteItem[]): TransactWrite;
/**
* Start a read transaction with the provided actions.
*
* @param actions List of transaction actions.
*/
transactRead(...actions: ReadItem[]): TransactRead;
batchWrite(...items: BatchItem[]): BatchWrite;
}
141 changes: 141 additions & 0 deletions dist/lib/dynamodb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/dynamodb.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/lib/errors/unprocessed-items-exception.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export declare class UnprocessedItemsException extends Error {
readonly name: 'UnprocessedItemsException';
readonly code: 'UnprocessedItemsException';
constructor(message: string);
}
14 changes: 14 additions & 0 deletions dist/lib/errors/unprocessed-items-exception.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/errors/unprocessed-items-exception.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { ReadItem, TransactRead, TransactQuery, TransactDeleteItem, TransactInsertItem, TransactUpdateItem, WriteItem, BatchWrite, TransactWrite, TransactMethod, BaseQuery, CreateTable, DeleteItem, DeleteTable, Executable, InsertItem, ListTables, Method, Query, Scan, UpdateItem } from './methods';
export { UpdateQuery } from './types';
export { DynamoDBOptions, DynamoDB } from './dynamodb';
export { TableOptions, Table } from './table';
26 changes: 26 additions & 0 deletions dist/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1715e76

Please sign in to comment.