@bitblit/ratchet-aws 4.0.354-alpha → 4.0.355-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/index.mjs +1 -1
- package/lib/types.d.ts +815 -0
- package/package.json +6 -6
- package/lib/batch/aws-batch-background-processor.d.ts +0 -8
- package/lib/batch/aws-batch-background-processor.spec.d.ts +0 -1
- package/lib/batch/aws-batch-ratchet.d.ts +0 -13
- package/lib/batch/aws-batch-ratchet.spec.d.ts +0 -1
- package/lib/build/ratchet-aws-info.d.ts +0 -5
- package/lib/cache/dynamo-db-storage-provider.d.ts +0 -25
- package/lib/cache/s3-storage-provider.d.ts +0 -14
- package/lib/cache/simple-cache-object-wrapper.d.ts +0 -7
- package/lib/cache/simple-cache-read-options.d.ts +0 -5
- package/lib/cache/simple-cache-storage-provider.d.ts +0 -8
- package/lib/cache/simple-cache.d.ts +0 -14
- package/lib/cache/simple-cache.spec.d.ts +0 -1
- package/lib/cloudwatch/cloud-watch-log-group-ratchet.d.ts +0 -10
- package/lib/cloudwatch/cloud-watch-log-group-ratchet.spec.d.ts +0 -1
- package/lib/cloudwatch/cloud-watch-logs-ratchet.d.ts +0 -15
- package/lib/cloudwatch/cloud-watch-logs-ratchet.spec.d.ts +0 -1
- package/lib/cloudwatch/cloud-watch-metrics-ratchet.d.ts +0 -10
- package/lib/cloudwatch/cloud-watch-metrics-ratchet.spec.d.ts +0 -1
- package/lib/daemon/daemon-like.d.ts +0 -17
- package/lib/daemon/daemon-process-create-options.d.ts +0 -7
- package/lib/daemon/daemon-process-state-public-token.d.ts +0 -4
- package/lib/daemon/daemon-process-state.d.ts +0 -13
- package/lib/daemon/daemon-stream-data-options.d.ts +0 -5
- package/lib/daemon/daemon-util.d.ts +0 -19
- package/lib/daemon/daemon-util.spec.d.ts +0 -4
- package/lib/daemon/daemon.d.ts +0 -33
- package/lib/dao/prototype-dao-config.d.ts +0 -8
- package/lib/dao/prototype-dao-db.d.ts +0 -4
- package/lib/dao/prototype-dao-provider.d.ts +0 -5
- package/lib/dao/prototype-dao.d.ts +0 -15
- package/lib/dao/prototype-dao.spec.d.ts +0 -8
- package/lib/dao/s3-prototype-dao-provider.d.ts +0 -10
- package/lib/dao/s3-simple-dao.d.ts +0 -15
- package/lib/dao/simple-dao-item.d.ts +0 -5
- package/lib/dynamodb/dynamo-ratchet-like.d.ts +0 -25
- package/lib/dynamodb/dynamo-ratchet.d.ts +0 -34
- package/lib/dynamodb/dynamo-ratchet.spec.d.ts +0 -1
- package/lib/dynamodb/dynamo-table-ratchet.d.ts +0 -13
- package/lib/dynamodb/dynamo-table-ratchet.spec.d.ts +0 -1
- package/lib/dynamodb/hash-spreader.d.ts +0 -15
- package/lib/dynamodb/hash-spreader.spec.d.ts +0 -1
- package/lib/ec2/ec2-ratchet.d.ts +0 -16
- package/lib/ec2/ec2-ratchet.spec.d.ts +0 -1
- package/lib/ecr/ecr-unused-image-cleaner-options.d.ts +0 -7
- package/lib/ecr/ecr-unused-image-cleaner-output.d.ts +0 -7
- package/lib/ecr/ecr-unused-image-cleaner-repository-output.d.ts +0 -8
- package/lib/ecr/ecr-unused-image-cleaner.d.ts +0 -18
- package/lib/ecr/ecr-unused-image-cleaner.spec.d.ts +0 -1
- package/lib/ecr/retained-image-descriptor.d.ts +0 -6
- package/lib/ecr/retained-image-reason.d.ts +0 -4
- package/lib/ecr/used-image-finder.d.ts +0 -3
- package/lib/ecr/used-image-finders/aws-batch-used-image-finder.d.ts +0 -8
- package/lib/ecr/used-image-finders/lambda-used-image-finder.d.ts +0 -8
- package/lib/environment/cascade-environment-service-provider.d.ts +0 -6
- package/lib/environment/env-var-environment-service-provider.d.ts +0 -6
- package/lib/environment/environment-service-config.d.ts +0 -4
- package/lib/environment/environment-service-provider.d.ts +0 -3
- package/lib/environment/environment-service.d.ts +0 -11
- package/lib/environment/environment-service.spec.d.ts +0 -1
- package/lib/environment/fixed-environment-service-provider.d.ts +0 -7
- package/lib/environment/s3-environment-service-provider.d.ts +0 -15
- package/lib/environment/ssm-environment-service-provider.d.ts +0 -8
- package/lib/expiring-code/dynamo-expiring-code-provider.d.ts +0 -12
- package/lib/expiring-code/expiring-code-params.d.ts +0 -7
- package/lib/expiring-code/expiring-code-provider.d.ts +0 -5
- package/lib/expiring-code/expiring-code-ratchet.d.ts +0 -10
- package/lib/expiring-code/expiring-code-ratchet.spec.d.ts +0 -1
- package/lib/expiring-code/expiring-code.d.ts +0 -6
- package/lib/expiring-code/s3-expiring-code-provider.d.ts +0 -17
- package/lib/expiring-code/s3-expiring-code-provider.spec.d.ts +0 -1
- package/lib/iam/aws-credentials-ratchet.d.ts +0 -4
- package/lib/index.d.ts +0 -77
- package/lib/index.mjs.map +0 -1
- package/lib/lambda/lambda-event-detector.d.ts +0 -15
- package/lib/lambda/lambda-event-type-guards.d.ts +0 -11
- package/lib/model/cloud-watch-metrics-minute-level-dynamo-count-request.d.ts +0 -12
- package/lib/model/dynamo-count-result.d.ts +0 -5
- package/lib/route53/route-53-ratchet.d.ts +0 -8
- package/lib/runtime-parameter/cached-stored-runtime-parameter.d.ts +0 -4
- package/lib/runtime-parameter/dynamo-runtime-parameter-provider.d.ts +0 -11
- package/lib/runtime-parameter/dynamo-runtime-parameter-provider.spec.d.ts +0 -1
- package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.d.ts +0 -17
- package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.spec.d.ts +0 -1
- package/lib/runtime-parameter/memory-runtime-parameter-provider.d.ts +0 -9
- package/lib/runtime-parameter/runtime-parameter-provider.d.ts +0 -6
- package/lib/runtime-parameter/runtime-parameter-ratchet.d.ts +0 -15
- package/lib/runtime-parameter/runtime-parameter-ratchet.spec.d.ts +0 -1
- package/lib/runtime-parameter/stored-runtime-parameter.d.ts +0 -6
- package/lib/s3/expanded-file-children.d.ts +0 -5
- package/lib/s3/s3-cache-ratchet-like.d.ts +0 -26
- package/lib/s3/s3-cache-ratchet.d.ts +0 -35
- package/lib/s3/s3-cache-ratchet.spec.d.ts +0 -1
- package/lib/s3/s3-location-sync-ratchet.d.ts +0 -21
- package/lib/s3/s3-ratchet.d.ts +0 -5
- package/lib/s3/s3-ratchet.spec.d.ts +0 -1
- package/lib/ses/ses-mail-sending-provider.d.ts +0 -14
- package/lib/sns/sns-ratchet.d.ts +0 -9
- package/lib/sns/sns-ratchet.spec.d.ts +0 -1
- package/lib/sync-lock/dynamo-db-sync-lock.d.ts +0 -10
- package/lib/sync-lock/dynamo-db-sync-lock.spec.d.ts +0 -1
- package/lib/sync-lock/memory-sync-lock.d.ts +0 -8
- package/lib/sync-lock/sync-lock-provider.d.ts +0 -5
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
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
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { CompleteMultipartUploadCommandOutput, CopyObjectCommandOutput, DeleteObjectCommandOutput, GetObjectCommandOutput, HeadObjectCommandOutput, PutObjectCommandInput, S3Client } from '@aws-sdk/client-s3';
|
|
4
|
-
import { Progress } from '@aws-sdk/lib-storage';
|
|
5
|
-
import { Readable } from 'stream';
|
|
6
|
-
import { S3CacheRatchetLike } from './s3-cache-ratchet-like.js';
|
|
7
|
-
export declare class S3CacheRatchet implements S3CacheRatchetLike {
|
|
8
|
-
private s3;
|
|
9
|
-
private defaultBucket;
|
|
10
|
-
constructor(s3: S3Client, defaultBucket?: string);
|
|
11
|
-
get s3Client(): S3Client;
|
|
12
|
-
static applyCacheControlMaxAge(input: PutObjectCommandInput, seconds: number): PutObjectCommandInput;
|
|
13
|
-
static applyUserMetaData(input: PutObjectCommandInput, key: string, value: string): PutObjectCommandInput;
|
|
14
|
-
getDefaultBucket(): string;
|
|
15
|
-
getS3Client(): S3Client;
|
|
16
|
-
fileExists(key: string, bucket?: string): Promise<boolean>;
|
|
17
|
-
fetchCacheFileAsS3GetObjectCommandOutput(key: string, bucket?: string): Promise<GetObjectCommandOutput>;
|
|
18
|
-
fetchCacheFileAsReadableStream(key: string, bucket?: string): Promise<ReadableStream>;
|
|
19
|
-
fetchCacheFileAsBuffer(key: string, bucket?: string): Promise<Buffer>;
|
|
20
|
-
fetchCacheFileAsString(key: string, bucket?: string): Promise<string>;
|
|
21
|
-
fetchCacheFileAsObject<T>(key: string, bucket?: string): Promise<T>;
|
|
22
|
-
removeCacheFile(key: string, bucket?: string): Promise<DeleteObjectCommandOutput>;
|
|
23
|
-
writeObjectToCacheFile(key: string, dataObject: any, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
24
|
-
writeStringToCacheFile(key: string, dataString: string, template?: PutObjectCommandInput, bucket?: string): Promise<CompleteMultipartUploadCommandOutput>;
|
|
25
|
-
writeStreamToCacheFile(key: string, data: ReadableStream | Readable, template?: PutObjectCommandInput, bucket?: string, progressFn?: (progress: Progress) => void): Promise<CompleteMultipartUploadCommandOutput>;
|
|
26
|
-
synchronize(srcPrefix: string, targetPrefix: string, targetRatchet?: S3CacheRatchetLike, recurseSubFolders?: boolean): Promise<string[]>;
|
|
27
|
-
fetchMetaForCacheFile(key: string, bucket?: string): Promise<HeadObjectCommandOutput>;
|
|
28
|
-
cacheFileAgeInSeconds(key: string, bucket?: string): Promise<number>;
|
|
29
|
-
copyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<CopyObjectCommandOutput>;
|
|
30
|
-
quietCopyFile(srcKey: string, dstKey: string, srcBucket?: string, dstBucket?: string): Promise<boolean>;
|
|
31
|
-
preSignedDownloadUrlForCacheFile(key: string, expirationSeconds?: number, bucket?: string): Promise<string>;
|
|
32
|
-
directChildrenOfPrefix(prefix: string, expandFiles?: boolean, bucket?: string, maxToReturn?: number): Promise<string[]>;
|
|
33
|
-
allSubFoldersOfPrefix(prefix: string, bucket?: string): Promise<string[]>;
|
|
34
|
-
private bucketVal;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/s3/s3-ratchet.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MailSendingProvider, ResolvedReadyToSendEmail } from '@bitblit/ratchet-common';
|
|
2
|
-
import { SendRawEmailCommandOutput, SESClient } from '@aws-sdk/client-ses';
|
|
3
|
-
import { CompleteMultipartUploadCommandOutput } from '@aws-sdk/client-s3';
|
|
4
|
-
import { S3CacheRatchetLike } from '../s3/s3-cache-ratchet-like';
|
|
5
|
-
export declare class SesMailSendingProvider implements MailSendingProvider<SendRawEmailCommandOutput, CompleteMultipartUploadCommandOutput> {
|
|
6
|
-
private _ses;
|
|
7
|
-
private _archiveRatchet?;
|
|
8
|
-
private archivePrefix?;
|
|
9
|
-
constructor(_ses: SESClient, _archiveRatchet?: S3CacheRatchetLike, archivePrefix?: string);
|
|
10
|
-
archiveEmail(mail: ResolvedReadyToSendEmail, rawSendResult: SendRawEmailCommandOutput): Promise<CompleteMultipartUploadCommandOutput>;
|
|
11
|
-
get sesClient(): SESClient;
|
|
12
|
-
get archiveRatchet(): S3CacheRatchetLike;
|
|
13
|
-
sendEmail(inRts: ResolvedReadyToSendEmail): Promise<SendRawEmailCommandOutput>;
|
|
14
|
-
}
|
package/lib/sns/sns-ratchet.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|