@typedorm/common
Advanced tools
Comparing version 1.16.0-beta.5 to 1.16.0-beta.6
import { INDEX_TYPE } from './enums'; | ||
import { Replace } from './helpers/replace-type'; | ||
/** | ||
* When a Global Secondary Index(GSI) is created with both a partition key and a sort key, any items added * to the table that lack a partition key or sort key value will be excluded from the index. | ||
* For GSIs that only have a partition key, the same behaviour applies, but only to the partition key. | ||
* | ||
* In these scenarios `isSparse` should be set to True. | ||
*/ | ||
export interface GSIIndexOptions { | ||
type: INDEX_TYPE.GSI; | ||
partitionKey: string; | ||
sortKey: string; | ||
/** | ||
* DynamoDB only adds item to index if both Partition Key and Sort Key defined | ||
* for any given GSI contains value | ||
* | ||
* Indexes missing sort key value will not be added to index. | ||
*/ | ||
sortKey?: string; | ||
isSparse?: boolean; | ||
@@ -14,0 +14,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvaW5kZXgtb3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJTkRFWF9UWVBFfSBmcm9tICcuL2VudW1zJztcbmltcG9ydCB7UmVwbGFjZX0gZnJvbSAnLi9oZWxwZXJzL3JlcGxhY2UtdHlwZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgR1NJSW5kZXhPcHRpb25zIHtcbiAgdHlwZTogSU5ERVhfVFlQRS5HU0k7XG4gIHBhcnRpdGlvbktleTogc3RyaW5nO1xuICBzb3J0S2V5OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBEeW5hbW9EQiBvbmx5IGFkZHMgaXRlbSB0byBpbmRleCBpZiBib3RoIFBhcnRpdGl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leTogc3RyaW5nO1xuICBzb3J0S2V5Pzogc3RyaW5nO1xuICBpc1NwYXJzZT86IGJvb2xlYW47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTFNJSW5kZXhPcHRpb25zIHtcbiAgdHlwZTogSU5ERVhfVFlQRS5MU0k7XG4gIHNvcnRLZXk6IHN0cmluZztcbiAgaXNTcGFyc2U/OiBib29sZWFuO1xufVxuZXhwb3J0IHR5cGUgSW5kZXhPcHRpb25zID0gR1NJSW5kZXhPcHRpb25zIHwgTFNJSW5kZXhPcHRpb25zO1xuXG5leHBvcnQgdHlwZSBLZXlBbGlhc1NjaGVtYTxFbnRpdHk+ID0ge1xuICBhbGlhczoga2V5b2YgRW50aXR5IGV4dGVuZHMgaW5mZXIgUiA/IFIgOiBuZXZlcjtcbn07XG5leHBvcnQgdHlwZSBFbnRpdHlBbGlhc09yU3RyaW5nPEVudGl0eT4gPSBzdHJpbmcgfCBLZXlBbGlhc1NjaGVtYTxFbnRpdHk+O1xuXG5leHBvcnQgdHlwZSBJbmRleE9wdGlvbnNXaXRoQWxpYXM8RW50aXR5PiA9XG4gIHwgUmVwbGFjZTxcbiAgICAgIEdTSUluZGV4T3B0aW9ucyxcbiAgICAgICdwYXJ0aXRpb25LZXknIHwgJ3NvcnRLZXknLFxuICAgICAge1xuICAgICAgICBwYXJ0aXRpb25LZXk6IEVudGl0eUFsaWFzT3JTdHJpbmc8RW50aXR5PjtcbiAgICAgICAgc29ydEtleTogRW50aXR5QWxpYXNPclN0cmluZzxFbnRpdHk+O1xuICAgICAgfVxuICAgID5cbiAgfCBSZXBsYWNlPFxuICAgICAgTFNJSW5kZXhPcHRpb25zLFxuICAgICAgJ3NvcnRLZXknLFxuICAgICAge1xuICAgICAgICBzb3J0S2V5OiBFbnRpdHlBbGlhc09yU3RyaW5nPEVudGl0eT47XG4gICAgICB9XG4gICAgPjtcbiJdfQ== |
import { INDEX_TYPE } from './enums'; | ||
import { Replace } from './helpers/replace-type'; | ||
/** | ||
* When a Global Secondary Index(GSI) is created with both a partition key and a sort key, any items added * to the table that lack a partition key or sort key value will be excluded from the index. | ||
* For GSIs that only have a partition key, the same behaviour applies, but only to the partition key. | ||
* | ||
* In these scenarios `isSparse` should be set to True. | ||
*/ | ||
export interface GSIIndexOptions { | ||
type: INDEX_TYPE.GSI; | ||
partitionKey: string; | ||
sortKey: string; | ||
/** | ||
* DynamoDB only adds item to index if both Partition Key and Sort Key defined | ||
* for any given GSI contains value | ||
* | ||
* Indexes missing sort key value will not be added to index. | ||
*/ | ||
sortKey?: string; | ||
isSparse?: boolean; | ||
@@ -14,0 +14,0 @@ } |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvaW5kZXgtb3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJTkRFWF9UWVBFfSBmcm9tICcuL2VudW1zJztcbmltcG9ydCB7UmVwbGFjZX0gZnJvbSAnLi9oZWxwZXJzL3JlcGxhY2UtdHlwZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgR1NJSW5kZXhPcHRpb25zIHtcbiAgdHlwZTogSU5ERVhfVFlQRS5HU0k7XG4gIHBhcnRpdGlvbktleTogc3RyaW5nO1xuICBzb3J0S2V5OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBEeW5hbW9EQiBvbmx5IGFkZHMgaXRlbSB0byBpbmRleCBpZiBib3RoIFBhcnRpdGlvbiBLZXkgYW5kIFNvcnQgS2V5IGRlZmluZWRcbiAgICogZm9yIGFueSBnaXZlbiBHU0kgY29udGFpbnMgdmFsdWVcbiAgICpcbiAgICogSW5kZXhlcyBtaXNzaW5nIHNvcnQga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gdHlwZTogSU5ERVhfVFlQRS5MU0k7XG4gIHNvcnRLZXk6IHN0cmluZztcbiAgaXNTcGFyc2U/OiBib29sZWFuO1xufVxuZXhwb3J0IHR5cGUgSW5kZXhPcHRpb25zID0gR1NJSW5kZXhPcHRpb25zIHwgTFNJSW5kZXhPcHRpb25zO1xuXG5leHBvcnQgdHlwZSBLZXlBbGlhc1NjaGVtYTxFbnRpdHk+ID0ge1xuICBhbGlhczoga2V5b2YgRW50aXR5IGV4dGVuZHMgaW5mZXIgUiA/IFIgOiBuZXZlcjtcbn07XG5leHBvcnQgdHlwZSBFbnRpdHlBbGlhc09yU3RyaW5nPEVudGl0eT4gPSBzdHJpbmcgfCBLZXlBbGlhc1NjaGVtYTxFbnRpdHk+O1xuXG5leHBvcnQgdHlwZSBJbmRleE9wdGlvbnNXaXRoQWxpYXM8RW50aXR5PiA9XG4gIHwgUmVwbGFjZTxcbiAgICAgIEdTSUluZGV4T3B0aW9ucyxcbiAgICAgICdwYXJ0aXRpb25LZXknIHwgJ3NvcnRLZXknLFxuICAgICAge1xuICAgICAgICBwYXJ0aXRpb25LZXk6IEVudGl0eUFsaWFzT3JTdHJpbmc8RW50aXR5PjtcbiAgICAgICAgc29ydEtleTogRW50aXR5QWxpYXNPclN0cmluZzxFbnRpdHk+O1xuICAgICAgfVxuICAgID5cbiAgfCBSZXBsYWNlPFxuICAgICAgTFNJSW5kZXhPcHRpb25zLFxuICAgICAgJ3NvcnRLZXknLFxuICAgICAge1xuICAgICAgICBzb3J0S2V5OiBFbnRpdHlBbGlhc09yU3RyaW5nPEVudGl0eT47XG4gICAgICB9XG4gICAgPjtcbiJdfQ== |
{ | ||
"name": "@typedorm/common", | ||
"version": "1.16.0-beta.5", | ||
"version": "1.16.0-beta.6", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
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
332706