@aspan-corporation/ac-shared 1.0.16 → 1.0.18

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.
@@ -6,10 +6,11 @@ export declare class DynamoDBService {
6
6
  logger: GenericLogger;
7
7
  client: DynamoDBClient;
8
8
  documentClient: DynamoDBDocumentClient;
9
- constructor({ logger, client, assumeRoleCommandOutput }?: {
9
+ constructor({ logger, client, assumeRoleCommandOutput, region }: {
10
10
  logger?: GenericLogger;
11
11
  client?: DynamoDBClient;
12
12
  assumeRoleCommandOutput?: AssumeRoleCommandOutput;
13
+ region?: string;
13
14
  });
14
15
  getCommand(getCommandInput: GetCommandInput): Promise<GetCommandOutput>;
15
16
  updateCommand(updateCommandInput: UpdateCommandInput): Promise<UpdateCommandOutput>;
@@ -3,3 +3,4 @@ export * from "./dynamoDB.js";
3
3
  export * from "./ssm.js";
4
4
  export * from "./sqs.js";
5
5
  export * from "./sts.js";
6
+ export * from "./location.js";
@@ -0,0 +1,14 @@
1
+ import { LocationClient, SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "@aws-sdk/client-location";
2
+ import { AssumeRoleCommandOutput } from "@aws-sdk/client-sts";
3
+ import { GenericLogger } from "./types.js";
4
+ export declare class LocationService {
5
+ logger: GenericLogger;
6
+ client: LocationClient;
7
+ constructor({ logger, client, assumeRoleCommandOutput, region }: {
8
+ logger?: GenericLogger;
9
+ client?: LocationClient;
10
+ assumeRoleCommandOutput?: AssumeRoleCommandOutput;
11
+ region?: string;
12
+ });
13
+ searchPlaceIndexForPositionCommand(searchPlaceIndexForPositionCommandInput: SearchPlaceIndexForPositionCommandInput): Promise<SearchPlaceIndexForPositionCommandOutput>;
14
+ }
@@ -7,10 +7,11 @@ import { GenericLogger } from "./types.js";
7
7
  export declare class S3Service {
8
8
  logger: GenericLogger;
9
9
  client: S3Client;
10
- constructor({ logger, client, assumeRoleCommandOutput }?: {
10
+ constructor({ logger, client, assumeRoleCommandOutput, region }: {
11
11
  logger?: GenericLogger;
12
12
  client?: S3Client;
13
13
  assumeRoleCommandOutput?: AssumeRoleCommandOutput;
14
+ region?: string;
14
15
  });
15
16
  createS3UploadStream(putObjectCommandInput: PutObjectCommandInput): PassThrough;
16
17
  createS3DownloadStream(getObjectCommandInput: GetObjectCommandInput): Promise<import("@smithy/types").StreamingBlobPayloadOutputTypes>;
@@ -4,10 +4,11 @@ import { GenericLogger } from "./types.js";
4
4
  export declare class SQSService {
5
5
  logger: GenericLogger;
6
6
  client: SQSClient;
7
- constructor({ logger, client, assumeRoleCommandOutput }?: {
7
+ constructor({ logger, client, assumeRoleCommandOutput, region }: {
8
8
  logger?: GenericLogger;
9
9
  client?: SQSClient;
10
10
  assumeRoleCommandOutput?: AssumeRoleCommandOutput;
11
+ region?: string;
11
12
  });
12
13
  sendMessage(params: SendMessageCommandInput): Promise<SendMessageCommandOutput>;
13
14
  sendMessageBatch(params: SendMessageBatchCommandInput): Promise<SendMessageBatchCommandOutput>;
@@ -1,13 +1,14 @@
1
- import { SSMClient, GetParameterCommandInput, GetParameterCommandOutput, PutParameterCommandInput, PutParameterCommandOutput } from "@aws-sdk/client-ssm";
1
+ import { GetParameterCommandInput, GetParameterCommandOutput, PutParameterCommandInput, PutParameterCommandOutput, SSMClient } from "@aws-sdk/client-ssm";
2
2
  import { AssumeRoleCommandOutput } from "@aws-sdk/client-sts";
3
3
  import { GenericLogger } from "./types.js";
4
4
  export declare class SSMService {
5
5
  logger: GenericLogger;
6
6
  client: SSMClient;
7
- constructor({ logger, client, assumeRoleCommandOutput }?: {
7
+ constructor({ logger, client, assumeRoleCommandOutput, region }?: {
8
8
  logger?: GenericLogger;
9
9
  client?: SSMClient;
10
10
  assumeRoleCommandOutput?: AssumeRoleCommandOutput;
11
+ region?: string;
11
12
  });
12
13
  getParameter(params: GetParameterCommandInput): Promise<GetParameterCommandOutput>;
13
14
  putParameter(params: PutParameterCommandInput): Promise<PutParameterCommandOutput>;
@@ -1,10 +1,12 @@
1
- import { STSClient, AssumeRoleCommandInput } from "@aws-sdk/client-sts";
1
+ import { AssumeRoleCommandInput, STSClient } from "@aws-sdk/client-sts";
2
2
  import { GenericLogger } from "./types.js";
3
3
  export declare class STSService {
4
4
  logger: GenericLogger;
5
5
  client: STSClient;
6
- constructor({ logger }?: {
6
+ constructor({ logger, region, client }: {
7
7
  logger?: GenericLogger;
8
+ region?: string;
9
+ client?: STSClient;
8
10
  });
9
11
  getCallerIdentity(): Promise<import("@aws-sdk/client-sts").GetCallerIdentityCommandOutput>;
10
12
  assumeRole(assumeRoleCommandInput: AssumeRoleCommandInput): Promise<import("@aws-sdk/client-sts").AssumeRoleCommandOutput>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspan-corporation/ac-shared",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "lib/index.js",
@@ -26,6 +26,7 @@
26
26
  "@aws-lambda-powertools/metrics": "^2.19.0",
27
27
  "@aws-lambda-powertools/tracer": "^2.19.0",
28
28
  "@aws-sdk/client-dynamodb": "^3.812.0",
29
+ "@aws-sdk/client-location": "^3.864.0",
29
30
  "@aws-sdk/client-s3": "^3.812.0",
30
31
  "@aws-sdk/client-sqs": "^3.812.0",
31
32
  "@aws-sdk/client-ssm": "^3.812.0",