@bitblit/ratchet-aws 4.0.183-alpha → 4.0.185-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/batch/aws-batch-background-processor.d.ts +8 -0
- package/lib/batch/aws-batch-background-processor.spec.d.ts +1 -0
- package/lib/batch/aws-batch-ratchet.d.ts +13 -0
- package/lib/batch/aws-batch-ratchet.spec.d.ts +1 -0
- package/lib/build/ratchet-aws-info.d.ts +5 -0
- package/lib/cache/dynamo-db-storage-provider.d.ts +25 -0
- package/lib/cache/s3-storage-provider.d.ts +14 -0
- package/lib/cache/simple-cache-object-wrapper.d.ts +7 -0
- package/lib/cache/simple-cache-read-options.d.ts +5 -0
- package/lib/cache/simple-cache-storage-provider.d.ts +8 -0
- package/lib/cache/simple-cache.d.ts +14 -0
- package/lib/cache/simple-cache.spec.d.ts +1 -0
- package/lib/cloudwatch/cloud-watch-log-group-ratchet.d.ts +10 -0
- package/lib/cloudwatch/cloud-watch-log-group-ratchet.spec.d.ts +1 -0
- package/lib/cloudwatch/cloud-watch-logs-ratchet.d.ts +15 -0
- package/lib/cloudwatch/cloud-watch-logs-ratchet.spec.d.ts +1 -0
- package/lib/cloudwatch/cloud-watch-metrics-ratchet.d.ts +11 -0
- package/lib/cloudwatch/cloud-watch-metrics-ratchet.spec.d.ts +1 -0
- package/lib/daemon/daemon-like.d.ts +17 -0
- package/lib/daemon/daemon-process-create-options.d.ts +7 -0
- package/lib/daemon/daemon-process-state-public-token.d.ts +4 -0
- package/lib/daemon/daemon-process-state.d.ts +13 -0
- package/lib/daemon/daemon-stream-data-options.d.ts +3 -0
- package/lib/daemon/daemon-util.d.ts +19 -0
- package/lib/daemon/daemon-util.spec.d.ts +4 -0
- package/lib/daemon/daemon.d.ts +33 -0
- package/lib/dao/prototype-dao-config.d.ts +8 -0
- package/lib/dao/prototype-dao-db.d.ts +4 -0
- package/lib/dao/prototype-dao-provider.d.ts +5 -0
- package/lib/dao/prototype-dao.d.ts +15 -0
- package/lib/dao/prototype-dao.spec.d.ts +8 -0
- package/lib/dao/s3-prototype-dao-provider.d.ts +10 -0
- package/lib/dao/s3-simple-dao.d.ts +15 -0
- package/lib/dao/simple-dao-item.d.ts +5 -0
- package/lib/dynamodb/dynamo-ratchet-like.d.ts +27 -0
- package/lib/dynamodb/dynamo-ratchet.d.ts +37 -0
- package/lib/dynamodb/dynamo-ratchet.spec.d.ts +1 -0
- package/lib/dynamodb/dynamo-table-ratchet.d.ts +13 -0
- package/lib/dynamodb/dynamo-table-ratchet.spec.d.ts +1 -0
- package/lib/dynamodb/hash-spreader.d.ts +15 -0
- package/lib/dynamodb/hash-spreader.spec.d.ts +1 -0
- package/lib/ec2/ec2-ratchet.d.ts +16 -0
- package/lib/ec2/ec2-ratchet.spec.d.ts +1 -0
- package/lib/environment/cascade-environment-service-provider.d.ts +6 -0
- package/lib/environment/env-var-environment-service-provider.d.ts +6 -0
- package/lib/environment/environment-service-config.d.ts +4 -0
- package/lib/environment/environment-service-provider.d.ts +3 -0
- package/lib/environment/environment-service.d.ts +11 -0
- package/lib/environment/environment-service.spec.d.ts +1 -0
- package/lib/environment/fixed-environment-service-provider.d.ts +7 -0
- package/lib/environment/s3-environment-service-provider.d.ts +15 -0
- package/lib/environment/ssm-environment-service-provider.d.ts +8 -0
- package/lib/expiring-code/dynamo-expiring-code-provider.d.ts +12 -0
- package/lib/expiring-code/expiring-code-params.d.ts +7 -0
- package/lib/expiring-code/expiring-code-provider.d.ts +5 -0
- package/lib/expiring-code/expiring-code-ratchet.d.ts +10 -0
- package/lib/expiring-code/expiring-code-ratchet.spec.d.ts +1 -0
- package/lib/expiring-code/expiring-code.d.ts +6 -0
- package/lib/expiring-code/s3-expiring-code-provider.d.ts +17 -0
- package/lib/expiring-code/s3-expiring-code-provider.spec.d.ts +1 -0
- package/lib/iam/aws-credentials-ratchet.d.ts +4 -0
- package/lib/index.mjs +1 -1
- package/lib/lambda/lambda-event-detector.d.ts +14 -0
- package/lib/lambda/lambda-event-type-guards.d.ts +10 -0
- package/lib/model/cloud-watch-metrics-minute-level-dynamo-count-request.d.ts +12 -0
- package/lib/model/cloud-watch-metrics-unit.d.ts +29 -0
- package/lib/model/dynamo/doc-put-item-command-input.d.ts +4 -0
- package/lib/model/dynamo/doc-query-command-input.d.ts +5 -0
- package/lib/model/dynamo/doc-scan-command-input.d.ts +5 -0
- package/lib/model/dynamo/doc-update-item-command-input.d.ts +5 -0
- package/lib/model/dynamo-count-result.d.ts +5 -0
- package/lib/route53/route-53-ratchet.d.ts +8 -0
- package/lib/runtime-parameter/cached-stored-runtime-parameter.d.ts +4 -0
- package/lib/runtime-parameter/dynamo-runtime-parameter-provider.d.ts +11 -0
- package/lib/runtime-parameter/dynamo-runtime-parameter-provider.spec.d.ts +1 -0
- package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.d.ts +17 -0
- package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.spec.d.ts +1 -0
- package/lib/runtime-parameter/memory-runtime-parameter-provider.d.ts +9 -0
- package/lib/runtime-parameter/runtime-parameter-provider.d.ts +6 -0
- package/lib/runtime-parameter/runtime-parameter-ratchet.d.ts +15 -0
- package/lib/runtime-parameter/runtime-parameter-ratchet.spec.d.ts +1 -0
- package/lib/runtime-parameter/stored-runtime-parameter.d.ts +6 -0
- package/lib/s3/expanded-file-children.d.ts +5 -0
- package/lib/s3/s3-cache-ratchet-like.d.ts +26 -0
- package/lib/s3/s3-cache-ratchet.d.ts +34 -0
- package/lib/s3/s3-cache-ratchet.spec.d.ts +1 -0
- package/lib/s3/s3-location-sync-ratchet.d.ts +21 -0
- package/lib/s3/s3-ratchet.d.ts +5 -0
- package/lib/s3/s3-ratchet.spec.d.ts +1 -0
- package/lib/ses/email-attachment.d.ts +5 -0
- package/lib/ses/mailer-config.d.ts +12 -0
- package/lib/ses/mailer-like.d.ts +11 -0
- package/lib/ses/mailer.d.ts +20 -0
- package/lib/ses/mailer.spec.d.ts +1 -0
- package/lib/ses/ready-to-send-email.d.ts +13 -0
- package/lib/ses/resolved-ready-to-send-email.d.ts +5 -0
- package/lib/sns/sns-ratchet.d.ts +9 -0
- package/lib/sns/sns-ratchet.spec.d.ts +1 -0
- package/lib/sync-lock/dynamo-db-sync-lock.d.ts +10 -0
- package/lib/sync-lock/dynamo-db-sync-lock.spec.d.ts +1 -0
- package/lib/sync-lock/memory-sync-lock.d.ts +8 -0
- package/lib/sync-lock/sync-lock-provider.d.ts +5 -0
- package/package.json +45 -45
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
|
|
2
|
+
export interface RuntimeParameterProvider {
|
|
3
|
+
readParameter(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>;
|
|
4
|
+
readAllParametersForGroup(groupId: string): Promise<StoredRuntimeParameter[]>;
|
|
5
|
+
writeParameter(param: StoredRuntimeParameter): Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RuntimeParameterProvider } from './runtime-parameter-provider.js';
|
|
2
|
+
import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
|
|
3
|
+
export declare class RuntimeParameterRatchet {
|
|
4
|
+
private provider;
|
|
5
|
+
private cache;
|
|
6
|
+
constructor(provider: RuntimeParameterProvider);
|
|
7
|
+
fetchParameter<T>(groupId: string, paramKey: string, defaultValue?: T, forceFreshRead?: boolean): Promise<T>;
|
|
8
|
+
fetchAllParametersForGroup(groupId: string): Promise<Map<string, any>>;
|
|
9
|
+
readUnderlyingEntry(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>;
|
|
10
|
+
readUnderlyingEntries(groupId: string): Promise<StoredRuntimeParameter[]>;
|
|
11
|
+
storeParameter(groupId: string, paramKey: string, paramValue: any, ttlSeconds: number): Promise<StoredRuntimeParameter>;
|
|
12
|
+
private static toCacheStoreKey;
|
|
13
|
+
private addToCache;
|
|
14
|
+
clearCache(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
import { Readable } from 'stream';
|
|
4
|
+
import { CompleteMultipartUploadCommandOutput, CopyObjectCommandOutput, DeleteObjectCommandOutput, GetObjectCommandOutput, HeadObjectCommandOutput, PutObjectCommandInput, S3Client } from '@aws-sdk/client-s3';
|
|
5
|
+
export interface S3CacheRatchetLike {
|
|
6
|
+
getDefaultBucket(): string;
|
|
7
|
+
getS3Client(): S3Client;
|
|
8
|
+
fileExists(key: string, bucket?: string): Promise<boolean>;
|
|
9
|
+
fetchCacheFileAsS3GetObjectCommandOutput(key: string, bucket?: string): Promise<GetObjectCommandOutput>;
|
|
10
|
+
fetchCacheFileAsReadableStream(key: string, bucket?: string): Promise<ReadableStream>;
|
|
11
|
+
fetchCacheFileAsBuffer(key: string, bucket?: string): Promise<Buffer>;
|
|
12
|
+
fetchCacheFileAsString(key: string, bucket?: string): Promise<string>;
|
|
13
|
+
fetchCacheFileAsObject<T>(key: string, bucket?: string): Promise<T>;
|
|
14
|
+
removeCacheFile(key: string, bucket?: string): Promise<DeleteObjectCommandOutput>;
|
|
15
|
+
writeObjectToCacheFile(key: string, dataObject: any, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
16
|
+
writeStringToCacheFile(key: string, dataString: string, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
17
|
+
writeStreamToCacheFile(key: string, data: ReadableStream | Readable, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
18
|
+
synchronize(srcPrefix: string, targetPrefix: string, targetRatchet?: S3CacheRatchetLike, recurseSubFolders?: boolean): Promise<string[]>;
|
|
19
|
+
preSignedDownloadUrlForCacheFile(key: string, expirationSeconds?: number, bucket?: string): Promise<string>;
|
|
20
|
+
fetchMetaForCacheFile(key: string, bucket?: string): Promise<HeadObjectCommandOutput>;
|
|
21
|
+
cacheFileAgeInSeconds(key: string, bucket?: string): Promise<number>;
|
|
22
|
+
copyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<CopyObjectCommandOutput>;
|
|
23
|
+
quietCopyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<boolean>;
|
|
24
|
+
directChildrenOfPrefix(prefix: string, expandFiles?: boolean, bucket?: string, maxToReturn?: number): Promise<string[]>;
|
|
25
|
+
allSubFoldersOfPrefix(prefix: string, bucket?: string): Promise<string[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
import { CompleteMultipartUploadCommandOutput, CopyObjectCommandOutput, DeleteObjectCommandOutput, GetObjectCommandOutput, HeadObjectCommandOutput, PutObjectCommandInput, S3Client } from '@aws-sdk/client-s3';
|
|
4
|
+
import { Readable } from 'stream';
|
|
5
|
+
import { S3CacheRatchetLike } from './s3-cache-ratchet-like.js';
|
|
6
|
+
export declare class S3CacheRatchet implements S3CacheRatchetLike {
|
|
7
|
+
private s3;
|
|
8
|
+
private defaultBucket;
|
|
9
|
+
constructor(s3: S3Client, defaultBucket?: string);
|
|
10
|
+
get s3Client(): S3Client;
|
|
11
|
+
static applyCacheControlMaxAge(input: PutObjectCommandInput, seconds: number): PutObjectCommandInput;
|
|
12
|
+
static applyUserMetaData(input: PutObjectCommandInput, key: string, value: string): PutObjectCommandInput;
|
|
13
|
+
getDefaultBucket(): string;
|
|
14
|
+
getS3Client(): S3Client;
|
|
15
|
+
fileExists(key: string, bucket?: string): Promise<boolean>;
|
|
16
|
+
fetchCacheFileAsS3GetObjectCommandOutput(key: string, bucket?: string): Promise<GetObjectCommandOutput>;
|
|
17
|
+
fetchCacheFileAsReadableStream(key: string, bucket?: string): Promise<ReadableStream>;
|
|
18
|
+
fetchCacheFileAsBuffer(key: string, bucket?: string): Promise<Buffer>;
|
|
19
|
+
fetchCacheFileAsString(key: string, bucket?: string): Promise<string>;
|
|
20
|
+
fetchCacheFileAsObject<T>(key: string, bucket?: string): Promise<T>;
|
|
21
|
+
removeCacheFile(key: string, bucket?: string): Promise<DeleteObjectCommandOutput>;
|
|
22
|
+
writeObjectToCacheFile(key: string, dataObject: any, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
23
|
+
writeStringToCacheFile(key: string, dataString: string, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
24
|
+
writeStreamToCacheFile(key: string, data: ReadableStream | Readable, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
25
|
+
synchronize(srcPrefix: string, targetPrefix: string, targetRatchet?: S3CacheRatchetLike, recurseSubFolders?: boolean): Promise<string[]>;
|
|
26
|
+
fetchMetaForCacheFile(key: string, bucket?: string): Promise<HeadObjectCommandOutput>;
|
|
27
|
+
cacheFileAgeInSeconds(key: string, bucket?: string): Promise<number>;
|
|
28
|
+
copyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<CopyObjectCommandOutput>;
|
|
29
|
+
quietCopyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<boolean>;
|
|
30
|
+
preSignedDownloadUrlForCacheFile(key: string, expirationSeconds?: number, bucket?: string): Promise<string>;
|
|
31
|
+
directChildrenOfPrefix(prefix: string, expandFiles?: boolean, bucket?: string, maxToReturn?: number): Promise<string[]>;
|
|
32
|
+
allSubFoldersOfPrefix(prefix: string, bucket?: string): Promise<string[]>;
|
|
33
|
+
private bucketVal;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
|
2
|
+
export interface S3LocationSyncRatchetConfig {
|
|
3
|
+
srcS3: S3Client;
|
|
4
|
+
srcBucket: string;
|
|
5
|
+
srcPrefix: string;
|
|
6
|
+
dstS3: S3Client;
|
|
7
|
+
dstBucket: string;
|
|
8
|
+
dstPrefix: string;
|
|
9
|
+
maxNumThreads?: number;
|
|
10
|
+
maxRetries?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class S3LocationSyncRatchet {
|
|
13
|
+
private config;
|
|
14
|
+
constructor(config: S3LocationSyncRatchetConfig);
|
|
15
|
+
updateSrcPrefix(prefix: string): void;
|
|
16
|
+
updateDstPrefix(prefix: string): void;
|
|
17
|
+
copyObject(key: string, size: number, express?: boolean): Promise<void>;
|
|
18
|
+
listObjects(bucket: string, prefix: string, s3: S3Client): Promise<any>;
|
|
19
|
+
startSyncing(): Promise<boolean>;
|
|
20
|
+
private compareSrcAndDst;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RatchetTemplateRenderer } from '@bitblit/ratchet-common';
|
|
2
|
+
import { S3CacheRatchetLike } from '../s3/s3-cache-ratchet-like.js';
|
|
3
|
+
export interface MailerConfig {
|
|
4
|
+
defaultSendingAddress?: string;
|
|
5
|
+
autoBccAddresses?: string[];
|
|
6
|
+
templateRenderer?: RatchetTemplateRenderer;
|
|
7
|
+
allowedDestinationEmails?: RegExp[];
|
|
8
|
+
archive?: S3CacheRatchetLike;
|
|
9
|
+
archivePrefix?: string;
|
|
10
|
+
maxMessageBodySizeInBytes?: number;
|
|
11
|
+
maxAttachmentSizeInBase64Bytes?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReadyToSendEmail } from './ready-to-send-email.js';
|
|
2
|
+
import { SendRawEmailResponse } from '@aws-sdk/client-ses';
|
|
3
|
+
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
4
|
+
export interface MailerLike {
|
|
5
|
+
fillEmailBody(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<ReadyToSendEmail>;
|
|
6
|
+
fillEmailBodyAndSend(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<SendRawEmailResponse>;
|
|
7
|
+
filterEmailsToValid(emails: string[]): string[];
|
|
8
|
+
applyLimitsToBodySizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
9
|
+
applyLimitsToAttachmentSizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
10
|
+
sendEmail(inRts: ReadyToSendEmail): Promise<SendRawEmailResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReadyToSendEmail } from './ready-to-send-email.js';
|
|
2
|
+
import { SendRawEmailCommandOutput, SendRawEmailResponse, SESClient } from '@aws-sdk/client-ses';
|
|
3
|
+
import { MailerConfig } from './mailer-config.js';
|
|
4
|
+
import { ResolvedReadyToSendEmail } from './resolved-ready-to-send-email.js';
|
|
5
|
+
import { MailerLike } from './mailer-like.js';
|
|
6
|
+
export declare class Mailer implements MailerLike {
|
|
7
|
+
private ses;
|
|
8
|
+
private config;
|
|
9
|
+
static readonly EMAIL: RegExp;
|
|
10
|
+
constructor(ses: SESClient, config?: MailerConfig);
|
|
11
|
+
get sESClient(): SESClient;
|
|
12
|
+
fillEmailBody(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<ReadyToSendEmail>;
|
|
13
|
+
fillEmailBodyAndSend(rts: ReadyToSendEmail, context: any, htmlTemplateName: string, txtTemplateName?: string, layoutName?: string, partialNames?: string[]): Promise<SendRawEmailResponse>;
|
|
14
|
+
filterEmailsToValid(emails: string[]): string[];
|
|
15
|
+
private archiveEmailIfConfigured;
|
|
16
|
+
applyLimitsToBodySizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
17
|
+
applyLimitsToAttachmentSizesIfAnyInPlace(rts: ResolvedReadyToSendEmail): void;
|
|
18
|
+
sendEmail(inRts: ReadyToSendEmail): Promise<SendRawEmailCommandOutput>;
|
|
19
|
+
static validEmail(email: string): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EmailAttachment } from './email-attachment.js';
|
|
2
|
+
export interface ReadyToSendEmail {
|
|
3
|
+
destinationAddresses?: Array<string>;
|
|
4
|
+
bccAddresses?: Array<string>;
|
|
5
|
+
attachments?: Array<EmailAttachment>;
|
|
6
|
+
fromAddress?: string;
|
|
7
|
+
txtMessage?: string;
|
|
8
|
+
htmlMessage?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
fromName?: string;
|
|
11
|
+
doNotAutoBcc?: boolean;
|
|
12
|
+
doNotArchive?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PublishCommandOutput, SNSClient } from '@aws-sdk/client-sns';
|
|
2
|
+
export declare class SnsRatchet {
|
|
3
|
+
private sns;
|
|
4
|
+
private topicArn;
|
|
5
|
+
constructor(sns: SNSClient, topicArn: string);
|
|
6
|
+
get snsClient(): SNSClient;
|
|
7
|
+
sendMessage(inMsg: any, suppressErrors?: boolean): Promise<PublishCommandOutput>;
|
|
8
|
+
conditionallySendMessage(inMsg: any, condition: boolean, suppressErrors?: boolean): Promise<PublishCommandOutput>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DynamoRatchet } from '../dynamodb/dynamo-ratchet.js';
|
|
2
|
+
import { SyncLockProvider } from './sync-lock-provider.js';
|
|
3
|
+
export declare class DynamoDbSyncLock implements SyncLockProvider {
|
|
4
|
+
private ratchet;
|
|
5
|
+
private tableName;
|
|
6
|
+
constructor(ratchet: DynamoRatchet, tableName: string);
|
|
7
|
+
acquireLock(lockKey: string, expirationSeconds?: number): Promise<boolean>;
|
|
8
|
+
releaseLock(lockKey: string): Promise<void>;
|
|
9
|
+
clearExpiredSyncLocks(): Promise<number>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncLockProvider } from './sync-lock-provider.js';
|
|
2
|
+
export declare class MemorySyncLock implements SyncLockProvider {
|
|
3
|
+
private _locks;
|
|
4
|
+
constructor();
|
|
5
|
+
acquireLock(lockKey: string, expirationSeconds?: number): Promise<boolean>;
|
|
6
|
+
releaseLock(lockKey: string): Promise<void>;
|
|
7
|
+
clearExpiredSyncLocks(): Promise<number>;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ratchet-aws",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.185-alpha",
|
|
4
4
|
"description": "Common tools for use with AWS browser and node",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "./lib/index.mjs",
|
|
8
8
|
"types": "./lib/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
|
-
"lib
|
|
11
|
-
"bin
|
|
10
|
+
"lib/**",
|
|
11
|
+
"bin/**"
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -52,50 +52,50 @@
|
|
|
52
52
|
},
|
|
53
53
|
"license": "Apache-2.0",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@bitblit/ratchet-common": "4.0.
|
|
55
|
+
"@bitblit/ratchet-common": "4.0.185-alpha"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@aws-sdk/abort-controller": "3.
|
|
59
|
-
"@aws-sdk/client-athena": "3.
|
|
60
|
-
"@aws-sdk/client-batch": "3.
|
|
61
|
-
"@aws-sdk/client-cloudwatch": "3.
|
|
62
|
-
"@aws-sdk/client-cloudwatch-logs": "3.
|
|
63
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
64
|
-
"@aws-sdk/client-ec2": "3.
|
|
65
|
-
"@aws-sdk/client-ec2-instance-connect": "3.
|
|
66
|
-
"@aws-sdk/client-route-53": "3.
|
|
67
|
-
"@aws-sdk/client-s3": "3.
|
|
68
|
-
"@aws-sdk/client-ses": "3.
|
|
69
|
-
"@aws-sdk/client-sns": "3.
|
|
70
|
-
"@aws-sdk/client-ssm": "3.
|
|
71
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
72
|
-
"@aws-sdk/lib-storage": "3.
|
|
73
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
74
|
-
"@aws-sdk/smithy-client": "3.
|
|
75
|
-
"@aws-sdk/types": "3.
|
|
76
|
-
"@aws-sdk/util-waiter": "3.
|
|
58
|
+
"@aws-sdk/abort-controller": "3.370.0",
|
|
59
|
+
"@aws-sdk/client-athena": "3.370.0",
|
|
60
|
+
"@aws-sdk/client-batch": "3.370.0",
|
|
61
|
+
"@aws-sdk/client-cloudwatch": "3.370.0",
|
|
62
|
+
"@aws-sdk/client-cloudwatch-logs": "3.370.0",
|
|
63
|
+
"@aws-sdk/client-dynamodb": "3.370.0",
|
|
64
|
+
"@aws-sdk/client-ec2": "3.370.0",
|
|
65
|
+
"@aws-sdk/client-ec2-instance-connect": "3.370.0",
|
|
66
|
+
"@aws-sdk/client-route-53": "3.370.0",
|
|
67
|
+
"@aws-sdk/client-s3": "3.370.0",
|
|
68
|
+
"@aws-sdk/client-ses": "3.370.0",
|
|
69
|
+
"@aws-sdk/client-sns": "3.370.0",
|
|
70
|
+
"@aws-sdk/client-ssm": "3.370.0",
|
|
71
|
+
"@aws-sdk/lib-dynamodb": "3.370.0",
|
|
72
|
+
"@aws-sdk/lib-storage": "3.370.0",
|
|
73
|
+
"@aws-sdk/s3-request-presigner": "3.370.0",
|
|
74
|
+
"@aws-sdk/smithy-client": "3.370.0",
|
|
75
|
+
"@aws-sdk/types": "3.370.0",
|
|
76
|
+
"@aws-sdk/util-waiter": "3.370.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@aws-sdk/abort-controller": "^3.
|
|
80
|
-
"@aws-sdk/client-athena": "^3.
|
|
81
|
-
"@aws-sdk/client-batch": "^3.
|
|
82
|
-
"@aws-sdk/client-cloudwatch": "^3.
|
|
83
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
84
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
85
|
-
"@aws-sdk/client-ec2": "^3.
|
|
86
|
-
"@aws-sdk/client-ec2-instance-connect": "^3.
|
|
87
|
-
"@aws-sdk/client-route-53": "^3.
|
|
88
|
-
"@aws-sdk/client-s3": "^3.
|
|
89
|
-
"@aws-sdk/client-ses": "^3.
|
|
90
|
-
"@aws-sdk/client-sns": "^3.
|
|
91
|
-
"@aws-sdk/client-ssm": "^3.
|
|
92
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
93
|
-
"@aws-sdk/lib-storage": "^3.
|
|
94
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
95
|
-
"@aws-sdk/smithy-client": "^3.
|
|
96
|
-
"@aws-sdk/types": "^3.
|
|
97
|
-
"@aws-sdk/util-waiter": "^3.
|
|
98
|
-
"@bitblit/ratchet-common": "4.0.
|
|
79
|
+
"@aws-sdk/abort-controller": "^3.370.0",
|
|
80
|
+
"@aws-sdk/client-athena": "^3.370.0",
|
|
81
|
+
"@aws-sdk/client-batch": "^3.370.0",
|
|
82
|
+
"@aws-sdk/client-cloudwatch": "^3.370.0",
|
|
83
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.370.0",
|
|
84
|
+
"@aws-sdk/client-dynamodb": "^3.370.0",
|
|
85
|
+
"@aws-sdk/client-ec2": "^3.370.0",
|
|
86
|
+
"@aws-sdk/client-ec2-instance-connect": "^3.370.0",
|
|
87
|
+
"@aws-sdk/client-route-53": "^3.370.0",
|
|
88
|
+
"@aws-sdk/client-s3": "^3.370.0",
|
|
89
|
+
"@aws-sdk/client-ses": "^3.370.0",
|
|
90
|
+
"@aws-sdk/client-sns": "^3.370.0",
|
|
91
|
+
"@aws-sdk/client-ssm": "^3.370.0",
|
|
92
|
+
"@aws-sdk/lib-dynamodb": "^3.370.0",
|
|
93
|
+
"@aws-sdk/lib-storage": "^3.370.0",
|
|
94
|
+
"@aws-sdk/s3-request-presigner": "^3.370.0",
|
|
95
|
+
"@aws-sdk/smithy-client": "^3.370.0",
|
|
96
|
+
"@aws-sdk/types": "^3.370.0",
|
|
97
|
+
"@aws-sdk/util-waiter": "^3.370.0",
|
|
98
|
+
"@bitblit/ratchet-common": "4.0.185-alpha"
|
|
99
99
|
},
|
|
100
100
|
"peerDependenciesMeta": {
|
|
101
101
|
"@aws-sdk/abort-controller": {
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
|
-
"@bitblit/ratchet-jest": "4.0.
|
|
161
|
-
"@bitblit/ratchet-node-only": "4.0.
|
|
160
|
+
"@bitblit/ratchet-jest": "4.0.185-alpha",
|
|
161
|
+
"@bitblit/ratchet-node-only": "4.0.185-alpha",
|
|
162
162
|
"@types/aws-lambda": "8.10.119",
|
|
163
163
|
"aws-sdk-client-mock": "3.0.0"
|
|
164
164
|
}
|