@mcma/data
Advanced tools
Comparing version 0.11.1 to 0.12.0
import { DocumentDatabaseTable } from "./document-database-table"; | ||
export interface DocumentDatabaseTableProvider { | ||
get<TPartitionKey = string, TSortKey = string>(tableName: string): Promise<DocumentDatabaseTable<TPartitionKey, TSortKey>>; | ||
get(tableName: string): Promise<DocumentDatabaseTable>; | ||
} |
@@ -1,8 +0,8 @@ | ||
import { DocumentDatabaseQuery } from "./document-database-query"; | ||
import { Query } from "./query/query"; | ||
import { Document } from "./document"; | ||
export declare abstract class DocumentDatabaseTable<TPartitionKey = string, TSortKey = string> { | ||
abstract query<TDocument extends Document = Document>(query: DocumentDatabaseQuery<TDocument, TPartitionKey, TSortKey>): Promise<TDocument[]>; | ||
abstract get<TDocument extends Document = Document>(partitionKey: TPartitionKey, sortKey: TSortKey): Promise<TDocument>; | ||
abstract put<TDocument extends Document = Document>(partitionKey: TPartitionKey, sortKey: TSortKey, resource: TDocument): Promise<TDocument>; | ||
abstract delete(partitionKey: TPartitionKey, sortKey: TSortKey): Promise<void>; | ||
export interface DocumentDatabaseTable { | ||
query<TDocument extends Document = Document>(query: Query<TDocument>): Promise<TDocument[]>; | ||
get<TDocument extends Document = Document>(id: string): Promise<TDocument>; | ||
put<TDocument extends Document = Document>(id: string, resource: TDocument): Promise<TDocument>; | ||
delete(id: string): Promise<void>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class DocumentDatabaseTable { | ||
} | ||
exports.DocumentDatabaseTable = DocumentDatabaseTable; |
export * from "./document"; | ||
export * from "./document-database-filter-criteria"; | ||
export * from "./document-database-filter-expression"; | ||
export * from "./document-database-query"; | ||
export * from "./query/operator"; | ||
export * from "./query/filter"; | ||
export * from "./query/query"; | ||
export * from "./query/helpers"; | ||
export * from "./document-database-table"; | ||
export * from "./document-database-table-provider"; | ||
export * from "./document-type"; | ||
export * from "./get-filter-expression-from-key-value-pairs"; |
@@ -6,5 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./document-database-filter-criteria")); | ||
__export(require("./document-database-filter-expression")); | ||
__export(require("./document-database-table")); | ||
__export(require("./get-filter-expression-from-key-value-pairs")); | ||
__export(require("./query/filter")); | ||
__export(require("./query/helpers")); |
{ | ||
"name": "@mcma/data", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"description": "Node module with helper utils for dealing with data in the EBU MCMA framework", | ||
@@ -32,6 +32,6 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/core": "0.11.1" | ||
"@mcma/core": "0.12.0" | ||
}, | ||
"devDependencies": { | ||
"@mcma/core": "0.11.1", | ||
"@mcma/core": "0.12.0", | ||
"@types/node": "^13.7.4", | ||
@@ -38,0 +38,0 @@ "jasmine": "^3.3.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5654
110