@pi-r/aws-v3 0.8.2 → 0.8.3

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 (3) hide show
  1. package/README.md +6 -6
  2. package/package.json +10 -10
  3. package/types/index.d.ts +39 -39
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ### @pi-r/aws-v3
2
-
3
- https://e-mc.readthedocs.io/en/latest/cloud/aws-v3.html
4
-
5
- ### LICENSE
6
-
1
+ ### @pi-r/aws-v3
2
+
3
+ https://e-mc.readthedocs.io/en/latest/cloud/aws-v3.html
4
+
5
+ ### LICENSE
6
+
7
7
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/aws-v3",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "AWS cloud functions for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "publishConfig": {
@@ -20,14 +20,14 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "^0.10.2",
24
- "@e-mc/module": "^0.10.2",
25
- "@e-mc/types": "^0.10.2",
26
- "@pi-r/aws-lib": "^0.8.2",
27
- "@aws-sdk/client-dynamodb": "^3.645.0",
28
- "@aws-sdk/client-s3": "^3.645.0",
29
- "@aws-sdk/credential-providers": "^3.645.0",
30
- "@aws-sdk/lib-dynamodb": "^3.645.0",
31
- "@aws-sdk/lib-storage": "^3.645.0"
23
+ "@e-mc/cloud": "^0.10.3",
24
+ "@e-mc/module": "^0.10.3",
25
+ "@e-mc/types": "^0.10.3",
26
+ "@pi-r/aws-lib": "^0.8.3",
27
+ "@aws-sdk/client-dynamodb": "^3.670.0",
28
+ "@aws-sdk/client-s3": "^3.670.0",
29
+ "@aws-sdk/credential-providers": "^3.670.0",
30
+ "@aws-sdk/lib-dynamodb": "^3.670.0",
31
+ "@aws-sdk/lib-storage": "^3.670.0"
32
32
  }
33
33
  }
package/types/index.d.ts CHANGED
@@ -1,40 +1,40 @@
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 } 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
-
8
- export interface AWSBaseCredential extends AwsSdkSigV4AuthInputConfig {
9
- provider?: {
10
- http?: unknown;
11
- ini?: unknown;
12
- cognitoIdentity?: unknown;
13
- cognitoIdentityPool?: unknown;
14
- temporaryCredentials?: unknown;
15
- webToken?: unknown;
16
- containerMetadata?: unknown;
17
- instanceMetadata?: unknown;
18
- process?: unknown;
19
- tokenFile?: unknown;
20
- sso?: unknown;
21
- env?: unknown;
22
- nodeProviderChain?: unknown;
23
- };
24
- }
25
-
26
- export type AWSStorage = CloudStorage<AWSStorageCredential, "aws-v3">;
27
-
28
- export interface AWSStorageCredential extends S3ClientConfig, AWSBaseCredential {}
29
-
30
- export interface AWSDatabaseQuery extends CloudDatabase<QueryCommandInput | ObjectMap<NativeAttributeValue>[] | string, PlainObject, UpdateCommandInput | string, BatchGetCommandInput | ScanCommandInput | NativeAttributeValue[]> {
31
- source: "cloud";
32
- service: "aws-v3";
33
- key?: string | AttributeKey;
34
- }
35
-
36
- export interface AWSDatabaseCredential extends Omit<DynamoDBClientConfig, "credentials">, AWSBaseCredential {
37
- translateConfig?: TranslateConfig;
38
- }
39
-
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 } 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
+
8
+ export interface AWSBaseCredential extends AwsSdkSigV4AuthInputConfig {
9
+ provider?: {
10
+ http?: unknown;
11
+ ini?: unknown;
12
+ cognitoIdentity?: unknown;
13
+ cognitoIdentityPool?: unknown;
14
+ temporaryCredentials?: unknown;
15
+ webToken?: unknown;
16
+ containerMetadata?: unknown;
17
+ instanceMetadata?: unknown;
18
+ process?: unknown;
19
+ tokenFile?: unknown;
20
+ sso?: unknown;
21
+ env?: unknown;
22
+ nodeProviderChain?: unknown;
23
+ };
24
+ }
25
+
26
+ export type AWSStorage = CloudStorage<AWSStorageCredential, "aws-v3">;
27
+
28
+ export interface AWSStorageCredential extends S3ClientConfig, AWSBaseCredential {}
29
+
30
+ export interface AWSDatabaseQuery extends CloudDatabase<QueryCommandInput | ObjectMap<NativeAttributeValue>[] | string, PlainObject, UpdateCommandInput | string, BatchGetCommandInput | ScanCommandInput | NativeAttributeValue[]> {
31
+ source: "cloud";
32
+ service: "aws-v3";
33
+ key?: string | AttributeKey;
34
+ }
35
+
36
+ export interface AWSDatabaseCredential extends Omit<DynamoDBClientConfig, "credentials">, AWSBaseCredential {
37
+ translateConfig?: TranslateConfig;
38
+ }
39
+
40
40
  export type AttributeKey = Record<string, NativeAttributeValue>;