@effect-aws/client-s3 1.10.9 → 2.0.0-beta.0
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/Errors.d.ts +10 -6
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/S3ClientInstance.d.ts +2 -2
- package/dist/dts/S3ClientInstance.d.ts.map +1 -1
- package/dist/dts/S3Service.d.ts +114 -128
- package/dist/dts/S3Service.d.ts.map +1 -1
- package/dist/dts/S3ServiceConfig.d.ts.map +1 -1
- package/dist/esm/Errors.js +3 -1
- package/dist/esm/Errors.js.map +1 -1
- package/dist/esm/S3ClientInstance.js +3 -3
- package/dist/esm/S3ClientInstance.js.map +1 -1
- package/dist/esm/S3Service.js +4 -3
- package/dist/esm/S3Service.js.map +1 -1
- package/dist/esm/S3ServiceConfig.js +5 -6
- package/dist/esm/S3ServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/Errors.ts +8 -4
- package/src/S3ClientInstance.ts +4 -4
- package/src/S3Service.ts +125 -139
- package/src/S3ServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -26
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -22
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/S3ClientInstance.d.ts +0 -24
- package/dist/cjs/S3ClientInstance.d.ts.map +0 -1
- package/dist/cjs/S3ClientInstance.js +0 -50
- package/dist/cjs/S3ClientInstance.js.map +0 -1
- package/dist/cjs/S3Service.d.ts +0 -497
- package/dist/cjs/S3Service.d.ts.map +0 -1
- package/dist/cjs/S3Service.js +0 -174
- package/dist/cjs/S3Service.js.map +0 -1
- package/dist/cjs/S3ServiceConfig.d.ts +0 -25
- package/dist/cjs/S3ServiceConfig.d.ts.map +0 -1
- package/dist/cjs/S3ServiceConfig.js +0 -35
- package/dist/cjs/S3ServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default S3Client instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { S3 } from "@effect-aws/client-s3";
|
|
18
18
|
|
|
19
|
-
const program = S3.headObject(args);
|
|
19
|
+
const program = S3.use((svc) => svc.headObject(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom S3Client instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { S3 } from "@effect-aws/client-s3";
|
|
32
32
|
|
|
33
|
-
const program = S3.headObject(args);
|
|
33
|
+
const program = S3.use((svc) => svc.headObject(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom S3Client configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { S3 } from "@effect-aws/client-s3";
|
|
48
48
|
|
|
49
|
-
const program = S3.headObject(args);
|
|
49
|
+
const program = S3.use((svc) => svc.headObject(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BucketAlreadyExists, BucketAlreadyOwnedByYou, EncryptionTypeMismatch, IdempotencyParameterMismatch, InvalidObjectState, InvalidRequest, InvalidWriteOffset, NoSuchBucket, NoSuchKey, NoSuchUpload, NotFound, ObjectAlreadyInActiveTierError as ObjectAlreadyInActiveTierException, ObjectNotInActiveTierError as ObjectNotInActiveTierException, S3ServiceException, TooManyParts } from "@aws-sdk/client-s3";
|
|
1
|
+
import type { AccessDenied, BucketAlreadyExists, BucketAlreadyOwnedByYou, EncryptionTypeMismatch, IdempotencyParameterMismatch, InvalidObjectState, InvalidRequest, InvalidWriteOffset, NoSuchBucket, NoSuchKey, NoSuchUpload, NotFound, ObjectAlreadyInActiveTierError as ObjectAlreadyInActiveTierException, ObjectNotInActiveTierError as ObjectNotInActiveTierException, S3ServiceException, TooManyParts } from "@aws-sdk/client-s3";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
export declare const AllServiceErrors: readonly ["AccessDenied", "BucketAlreadyExists", "BucketAlreadyOwnedByYou", "EncryptionTypeMismatch", "IdempotencyParameterMismatch", "InvalidObjectState", "InvalidRequest", "InvalidWriteOffset", "NoSuchBucket", "NoSuchKey", "NoSuchUpload", "NotFound", "ObjectAlreadyInActiveTierError", "ObjectNotInActiveTierError", "TooManyParts"];
|
|
4
|
+
export type AccessDeniedError = TaggedException<AccessDenied>;
|
|
5
5
|
export type BucketAlreadyExistsError = TaggedException<BucketAlreadyExists>;
|
|
6
6
|
export type BucketAlreadyOwnedByYouError = TaggedException<BucketAlreadyOwnedByYou>;
|
|
7
7
|
export type EncryptionTypeMismatchError = TaggedException<EncryptionTypeMismatch>;
|
|
@@ -16,11 +16,15 @@ export type NotFoundError = TaggedException<NotFound>;
|
|
|
16
16
|
export type ObjectAlreadyInActiveTierError = TaggedException<ObjectAlreadyInActiveTierException>;
|
|
17
17
|
export type ObjectNotInActiveTierError = TaggedException<ObjectNotInActiveTierException>;
|
|
18
18
|
export type TooManyPartsError = TaggedException<TooManyParts>;
|
|
19
|
-
|
|
19
|
+
declare const S3ServiceError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
20
|
+
readonly _tag: "S3ServiceError";
|
|
21
|
+
} & Readonly<A>;
|
|
22
|
+
export declare class S3ServiceError extends S3ServiceError_base<TaggedException<S3ServiceException & {
|
|
20
23
|
name: "S3ServiceError";
|
|
21
|
-
}
|
|
22
|
-
|
|
24
|
+
}>> {
|
|
25
|
+
}
|
|
23
26
|
export type SdkError = TaggedException<Error & {
|
|
24
27
|
name: "SdkError";
|
|
25
28
|
}>;
|
|
29
|
+
export {};
|
|
26
30
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,8BAA8B,IAAI,kCAAkC,EACpE,0BAA0B,IAAI,8BAA8B,EAC5D,kBAAkB,EAClB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,8BAA8B,IAAI,kCAAkC,EACpE,0BAA0B,IAAI,8BAA8B,EAC5D,kBAAkB,EAClB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,eAAO,MAAM,gBAAgB,8UAgBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA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
|
+
declare const S3ClientInstance_base: ServiceMap.ServiceClass<S3ClientInstance, "@effect-aws/client-s3/S3ClientInstance", S3Client>;
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"S3ClientInstance.d.ts","sourceRoot":"","sources":["../../src/S3ClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"S3ClientInstance.d.ts","sourceRoot":"","sources":["../../src/S3ClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAErC;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}
|