@bitblit/ratchet-aws 4.0.354-alpha → 4.0.362-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.
Files changed (105) hide show
  1. package/lib/index.mjs +1 -1
  2. package/lib/types.d.ts +815 -0
  3. package/package.json +56 -51
  4. package/lib/batch/aws-batch-background-processor.d.ts +0 -8
  5. package/lib/batch/aws-batch-background-processor.spec.d.ts +0 -1
  6. package/lib/batch/aws-batch-ratchet.d.ts +0 -13
  7. package/lib/batch/aws-batch-ratchet.spec.d.ts +0 -1
  8. package/lib/build/ratchet-aws-info.d.ts +0 -5
  9. package/lib/cache/dynamo-db-storage-provider.d.ts +0 -25
  10. package/lib/cache/s3-storage-provider.d.ts +0 -14
  11. package/lib/cache/simple-cache-object-wrapper.d.ts +0 -7
  12. package/lib/cache/simple-cache-read-options.d.ts +0 -5
  13. package/lib/cache/simple-cache-storage-provider.d.ts +0 -8
  14. package/lib/cache/simple-cache.d.ts +0 -14
  15. package/lib/cache/simple-cache.spec.d.ts +0 -1
  16. package/lib/cloudwatch/cloud-watch-log-group-ratchet.d.ts +0 -10
  17. package/lib/cloudwatch/cloud-watch-log-group-ratchet.spec.d.ts +0 -1
  18. package/lib/cloudwatch/cloud-watch-logs-ratchet.d.ts +0 -15
  19. package/lib/cloudwatch/cloud-watch-logs-ratchet.spec.d.ts +0 -1
  20. package/lib/cloudwatch/cloud-watch-metrics-ratchet.d.ts +0 -10
  21. package/lib/cloudwatch/cloud-watch-metrics-ratchet.spec.d.ts +0 -1
  22. package/lib/daemon/daemon-like.d.ts +0 -17
  23. package/lib/daemon/daemon-process-create-options.d.ts +0 -7
  24. package/lib/daemon/daemon-process-state-public-token.d.ts +0 -4
  25. package/lib/daemon/daemon-process-state.d.ts +0 -13
  26. package/lib/daemon/daemon-stream-data-options.d.ts +0 -5
  27. package/lib/daemon/daemon-util.d.ts +0 -19
  28. package/lib/daemon/daemon-util.spec.d.ts +0 -4
  29. package/lib/daemon/daemon.d.ts +0 -33
  30. package/lib/dao/prototype-dao-config.d.ts +0 -8
  31. package/lib/dao/prototype-dao-db.d.ts +0 -4
  32. package/lib/dao/prototype-dao-provider.d.ts +0 -5
  33. package/lib/dao/prototype-dao.d.ts +0 -15
  34. package/lib/dao/prototype-dao.spec.d.ts +0 -8
  35. package/lib/dao/s3-prototype-dao-provider.d.ts +0 -10
  36. package/lib/dao/s3-simple-dao.d.ts +0 -15
  37. package/lib/dao/simple-dao-item.d.ts +0 -5
  38. package/lib/dynamodb/dynamo-ratchet-like.d.ts +0 -25
  39. package/lib/dynamodb/dynamo-ratchet.d.ts +0 -34
  40. package/lib/dynamodb/dynamo-ratchet.spec.d.ts +0 -1
  41. package/lib/dynamodb/dynamo-table-ratchet.d.ts +0 -13
  42. package/lib/dynamodb/dynamo-table-ratchet.spec.d.ts +0 -1
  43. package/lib/dynamodb/hash-spreader.d.ts +0 -15
  44. package/lib/dynamodb/hash-spreader.spec.d.ts +0 -1
  45. package/lib/ec2/ec2-ratchet.d.ts +0 -16
  46. package/lib/ec2/ec2-ratchet.spec.d.ts +0 -1
  47. package/lib/ecr/ecr-unused-image-cleaner-options.d.ts +0 -7
  48. package/lib/ecr/ecr-unused-image-cleaner-output.d.ts +0 -7
  49. package/lib/ecr/ecr-unused-image-cleaner-repository-output.d.ts +0 -8
  50. package/lib/ecr/ecr-unused-image-cleaner.d.ts +0 -18
  51. package/lib/ecr/ecr-unused-image-cleaner.spec.d.ts +0 -1
  52. package/lib/ecr/retained-image-descriptor.d.ts +0 -6
  53. package/lib/ecr/retained-image-reason.d.ts +0 -4
  54. package/lib/ecr/used-image-finder.d.ts +0 -3
  55. package/lib/ecr/used-image-finders/aws-batch-used-image-finder.d.ts +0 -8
  56. package/lib/ecr/used-image-finders/lambda-used-image-finder.d.ts +0 -8
  57. package/lib/environment/cascade-environment-service-provider.d.ts +0 -6
  58. package/lib/environment/env-var-environment-service-provider.d.ts +0 -6
  59. package/lib/environment/environment-service-config.d.ts +0 -4
  60. package/lib/environment/environment-service-provider.d.ts +0 -3
  61. package/lib/environment/environment-service.d.ts +0 -11
  62. package/lib/environment/environment-service.spec.d.ts +0 -1
  63. package/lib/environment/fixed-environment-service-provider.d.ts +0 -7
  64. package/lib/environment/s3-environment-service-provider.d.ts +0 -15
  65. package/lib/environment/ssm-environment-service-provider.d.ts +0 -8
  66. package/lib/expiring-code/dynamo-expiring-code-provider.d.ts +0 -12
  67. package/lib/expiring-code/expiring-code-params.d.ts +0 -7
  68. package/lib/expiring-code/expiring-code-provider.d.ts +0 -5
  69. package/lib/expiring-code/expiring-code-ratchet.d.ts +0 -10
  70. package/lib/expiring-code/expiring-code-ratchet.spec.d.ts +0 -1
  71. package/lib/expiring-code/expiring-code.d.ts +0 -6
  72. package/lib/expiring-code/s3-expiring-code-provider.d.ts +0 -17
  73. package/lib/expiring-code/s3-expiring-code-provider.spec.d.ts +0 -1
  74. package/lib/iam/aws-credentials-ratchet.d.ts +0 -4
  75. package/lib/index.d.ts +0 -77
  76. package/lib/index.mjs.map +0 -1
  77. package/lib/lambda/lambda-event-detector.d.ts +0 -15
  78. package/lib/lambda/lambda-event-type-guards.d.ts +0 -11
  79. package/lib/model/cloud-watch-metrics-minute-level-dynamo-count-request.d.ts +0 -12
  80. package/lib/model/dynamo-count-result.d.ts +0 -5
  81. package/lib/route53/route-53-ratchet.d.ts +0 -8
  82. package/lib/runtime-parameter/cached-stored-runtime-parameter.d.ts +0 -4
  83. package/lib/runtime-parameter/dynamo-runtime-parameter-provider.d.ts +0 -11
  84. package/lib/runtime-parameter/dynamo-runtime-parameter-provider.spec.d.ts +0 -1
  85. package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.d.ts +0 -17
  86. package/lib/runtime-parameter/global-variable-override-runtime-parameter-provider.spec.d.ts +0 -1
  87. package/lib/runtime-parameter/memory-runtime-parameter-provider.d.ts +0 -9
  88. package/lib/runtime-parameter/runtime-parameter-provider.d.ts +0 -6
  89. package/lib/runtime-parameter/runtime-parameter-ratchet.d.ts +0 -15
  90. package/lib/runtime-parameter/runtime-parameter-ratchet.spec.d.ts +0 -1
  91. package/lib/runtime-parameter/stored-runtime-parameter.d.ts +0 -6
  92. package/lib/s3/expanded-file-children.d.ts +0 -5
  93. package/lib/s3/s3-cache-ratchet-like.d.ts +0 -26
  94. package/lib/s3/s3-cache-ratchet.d.ts +0 -35
  95. package/lib/s3/s3-cache-ratchet.spec.d.ts +0 -1
  96. package/lib/s3/s3-location-sync-ratchet.d.ts +0 -21
  97. package/lib/s3/s3-ratchet.d.ts +0 -5
  98. package/lib/s3/s3-ratchet.spec.d.ts +0 -1
  99. package/lib/ses/ses-mail-sending-provider.d.ts +0 -14
  100. package/lib/sns/sns-ratchet.d.ts +0 -9
  101. package/lib/sns/sns-ratchet.spec.d.ts +0 -1
  102. package/lib/sync-lock/dynamo-db-sync-lock.d.ts +0 -10
  103. package/lib/sync-lock/dynamo-db-sync-lock.spec.d.ts +0 -1
  104. package/lib/sync-lock/memory-sync-lock.d.ts +0 -8
  105. package/lib/sync-lock/sync-lock-provider.d.ts +0 -5
@@ -1,15 +0,0 @@
1
- export declare class LambdaEventDetector {
2
- static isValidCronEvent(event: any): boolean;
3
- static isValidSnsEvent(event: any): boolean;
4
- static isValidSqsEvent(event: any): boolean;
5
- static isValidDynamoDBEvent(event: any): boolean;
6
- static isValidS3Event(event: any): boolean;
7
- static isValidApiGatewayV2WithRequestContextEvent(event: any): boolean;
8
- static isValidApiGatewayEvent(event: any): boolean;
9
- static isValidApiGatewayAuthorizerEvent(event: any): boolean;
10
- static isSingleCronEvent(event: any): boolean;
11
- static isSingleSnsEvent(event: any): boolean;
12
- static isSingleDynamoDBEvent(event: any): boolean;
13
- static isSingleS3Event(event: any): boolean;
14
- static isSingleEntryEvent(event: any, entryName?: string): boolean;
15
- }
@@ -1,11 +0,0 @@
1
- import { APIGatewayEvent, APIGatewayProxyEventV2, DynamoDBStreamEvent, S3Event, ScheduledEvent, SNSEvent, SQSEvent } from 'aws-lambda';
2
- export declare class LambdaEventTypeGuards {
3
- static isValidCronEvent(event: any): event is ScheduledEvent;
4
- static isValidSqsEvent(event: any): event is SQSEvent;
5
- static isValidSnsEvent(event: any): event is SNSEvent;
6
- static isValidDynamoDBEvent(event: any): event is DynamoDBStreamEvent;
7
- static isValidS3Event(event: any): event is S3Event;
8
- static isValidApiGatewayV2WithRequestContextEvent(event: any): event is APIGatewayProxyEventV2;
9
- static isValidApiGatewayEvent(event: any): event is APIGatewayEvent;
10
- static isValidApiGatewayAuthorizerEvent(event: any): boolean;
11
- }
@@ -1,12 +0,0 @@
1
- import { KeyValue } from '@bitblit/ratchet-common';
2
- import { DynamoRatchet } from '../dynamodb/dynamo-ratchet.js';
3
- import { QueryCommandInput, ScanCommandInput } from '@aws-sdk/lib-dynamodb';
4
- export interface CloudWatchMetricsMinuteLevelDynamoCountRequest {
5
- dynamoRatchet: DynamoRatchet;
6
- query: QueryCommandInput;
7
- scan: ScanCommandInput;
8
- minuteUTC: string;
9
- namespace: string;
10
- metric: string;
11
- dims: KeyValue<any>[];
12
- }
@@ -1,5 +0,0 @@
1
- export interface DynamoCountResult {
2
- count: number;
3
- scannedCount: number;
4
- pages: number;
5
- }
@@ -1,8 +0,0 @@
1
- import { Route53Client } from '@aws-sdk/client-route-53';
2
- export declare class Route53Ratchet {
3
- private route53;
4
- private hostedZoneId;
5
- constructor(route53: Route53Client, hostedZoneId: string);
6
- get route53Client(): Route53Client;
7
- changeCnameRecordTarget(domainName: string, target: string, hostedZoneId?: string, ttlSeconds?: number): Promise<boolean>;
8
- }
@@ -1,4 +0,0 @@
1
- import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
2
- export interface CachedStoredRuntimeParameter extends StoredRuntimeParameter {
3
- storedEpochMS: number;
4
- }
@@ -1,11 +0,0 @@
1
- import { RuntimeParameterProvider } from './runtime-parameter-provider.js';
2
- import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
3
- import { DynamoRatchet } from '../dynamodb/dynamo-ratchet.js';
4
- export declare class DynamoRuntimeParameterProvider implements RuntimeParameterProvider {
5
- private dynamo;
6
- private tableName;
7
- constructor(dynamo: DynamoRatchet, tableName: string);
8
- readParameter(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>;
9
- readAllParametersForGroup(groupId: string): Promise<StoredRuntimeParameter[]>;
10
- writeParameter(toStore: StoredRuntimeParameter): Promise<boolean>;
11
- }
@@ -1,17 +0,0 @@
1
- import { RuntimeParameterProvider } from './runtime-parameter-provider.js';
2
- import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
3
- export declare class GlobalVariableOverrideRuntimeParameterProvider implements RuntimeParameterProvider {
4
- private wrapped;
5
- private options;
6
- constructor(wrapped: RuntimeParameterProvider, opts?: GlobalVariableOverrideRuntimeParameterProviderOptions);
7
- generateName(groupId: string, paramKey: string): string;
8
- readParameter(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>;
9
- readAllParametersForGroup(groupId: string): Promise<StoredRuntimeParameter[]>;
10
- writeParameter(toStore: StoredRuntimeParameter): Promise<boolean>;
11
- }
12
- export interface GlobalVariableOverrideRuntimeParameterProviderOptions {
13
- globalTTL: number;
14
- separator: string;
15
- prefix?: string;
16
- suffix?: string;
17
- }
@@ -1,9 +0,0 @@
1
- import { RuntimeParameterProvider } from './runtime-parameter-provider.js';
2
- import { StoredRuntimeParameter } from './stored-runtime-parameter.js';
3
- export declare class MemoryRuntimeParameterProvider implements RuntimeParameterProvider {
4
- private data;
5
- constructor(data?: Promise<Record<string, StoredRuntimeParameter>>);
6
- readParameter(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>;
7
- readAllParametersForGroup(groupId: string): Promise<StoredRuntimeParameter[]>;
8
- writeParameter(toStore: StoredRuntimeParameter): Promise<boolean>;
9
- }
@@ -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,6 +0,0 @@
1
- export interface StoredRuntimeParameter {
2
- groupId: string;
3
- paramKey: string;
4
- paramValue: string;
5
- ttlSeconds: number;
6
- }
@@ -1,5 +0,0 @@
1
- export interface ExpandedFileChildren {
2
- link: string;
3
- name: string;
4
- size: number;
5
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- export declare class S3Ratchet {
2
- static checkS3UrlForValidity(value: string): boolean;
3
- static extractBucketFromURL(value: string): string;
4
- static extractKeyFromURL(value: string): string;
5
- }
@@ -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
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- export interface SyncLockProvider {
2
- acquireLock(lockKey: string, expirationSeconds?: number): Promise<boolean>;
3
- releaseLock(lockKey: string): Promise<void>;
4
- clearExpiredSyncLocks?(): Promise<number>;
5
- }