@pi-r/aws-v3 0.6.9 → 0.6.10
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/package.json +5 -5
- package/types/index.d.ts +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/aws-v3",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "AWS V3 cloud functions for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/cloud": "^0.8.
|
|
24
|
-
"@e-mc/module": "^0.8.
|
|
25
|
-
"@e-mc/types": "^0.8.
|
|
26
|
-
"@pi-r/aws": "^0.6.
|
|
23
|
+
"@e-mc/cloud": "^0.8.29",
|
|
24
|
+
"@e-mc/module": "^0.8.29",
|
|
25
|
+
"@e-mc/types": "^0.8.29",
|
|
26
|
+
"@pi-r/aws": "^0.6.10",
|
|
27
27
|
"@aws-sdk/client-dynamodb": "^3.614.0",
|
|
28
28
|
"@aws-sdk/client-s3": "^3.614.0",
|
|
29
29
|
"@aws-sdk/credential-providers": "^3.614.0",
|
package/types/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { CloudDatabase, CloudStorage } from '@e-mc/types/lib/cloud';
|
|
2
|
-
|
|
3
|
-
import type { AwsSdkSigV4AuthInputConfig } from '@aws-sdk/core';
|
|
4
|
-
import type { DynamoDBClientConfig, QueryCommandInput, ScanCommandInput, TransactGetItemsCommandInput } from '@aws-sdk/client-dynamodb';
|
|
5
|
-
import type { BatchGetCommandInput, NativeAttributeValue, TranslateConfig, UpdateCommandInput } from '@aws-sdk/lib-dynamodb';
|
|
6
|
-
import type { S3ClientConfig } from '@aws-sdk/client-s3';
|
|
7
|
-
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from '@aws-sdk/types';
|
|
8
|
-
|
|
9
|
-
export interface AWSBaseCredential extends Omit<AwsSdkSigV4AuthInputConfig, "credentials"> {
|
|
10
|
-
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
11
|
-
provider?: {
|
|
12
|
-
http?: unknown;
|
|
13
|
-
ini?: unknown;
|
|
14
|
-
cognitoIdentity?: unknown;
|
|
15
|
-
cognitoIdentityPool?: unknown;
|
|
16
|
-
temporaryCredentials?: unknown;
|
|
17
|
-
webToken?: unknown;
|
|
18
|
-
containerMetadata?: unknown;
|
|
19
|
-
instanceMetadata?: unknown;
|
|
20
|
-
process?: unknown;
|
|
21
|
-
tokenFile?: unknown;
|
|
22
|
-
sso?: unknown;
|
|
23
|
-
env?: unknown;
|
|
24
|
-
nodeProviderChain?: unknown;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type AWSStorage = CloudStorage<AWSStorageCredential, "aws-v3">;
|
|
29
|
-
|
|
30
|
-
export interface AWSStorageCredential extends S3ClientConfig, AWSBaseCredential {}
|
|
31
|
-
|
|
32
|
-
export interface AWSDatabaseQuery extends CloudDatabase<QueryCommandInput | ObjectMap<NativeAttributeValue>[] | string, PlainObject, UpdateCommandInput | string, BatchGetCommandInput | ScanCommandInput | TransactGetItemsCommandInput | NativeAttributeValue[]> {
|
|
33
|
-
source: "cloud";
|
|
34
|
-
service: "aws-v3";
|
|
35
|
-
key?: string | AttributeKey;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface AWSDatabaseCredential extends Omit<DynamoDBClientConfig, "credentials">, AWSBaseCredential {
|
|
39
|
-
translateConfig?: TranslateConfig;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type AttributeKey = Record<string, NativeAttributeValue>;
|