@longvansoftware/service-js-client 1.20.2 → 1.20.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.
|
@@ -504,13 +504,11 @@ const REMOVE_CORS_BUCKET = (fields = []) => {
|
|
|
504
504
|
const hasFields = fields.length > 0;
|
|
505
505
|
return (0, graphql_tag_1.gql) `
|
|
506
506
|
mutation RemoveCorsBucket(
|
|
507
|
-
$s3UserId: String!,
|
|
508
507
|
$bucketId: String!,
|
|
509
508
|
$corsId: String!,
|
|
510
509
|
$updateBy: String!
|
|
511
510
|
) {
|
|
512
511
|
removeCorsBucket(
|
|
513
|
-
s3UserId: $s3UserId,
|
|
514
512
|
bucketId: $bucketId,
|
|
515
513
|
corsId: $corsId,
|
|
516
514
|
updateBy: $updateBy,
|
|
@@ -29,7 +29,7 @@ export declare class StorageS3Service extends Service {
|
|
|
29
29
|
getListCorsByS3UserId(s3UserId: string, bucketId: string, fields: string[]): Promise<any>;
|
|
30
30
|
addCorsBucket(s3UserId: string, bucketId: string, allowedMethods: string[], allowedOrigins: string[], allowedHeaders: string[], exposeHeaders: string[], maxAgeSeconds: number, updateBy: string, fields: string[]): Promise<any>;
|
|
31
31
|
updateCorsBucket(s3UserId: string, bucketId: string, corsId: string, allowedMethods: string[], allowedOrigins: string[], allowedHeaders: string[], exposeHeaders: string[], maxAgeSeconds: number, updateBy: string, fields: string[]): Promise<any>;
|
|
32
|
-
removeCorsBucket(
|
|
32
|
+
removeCorsBucket(bucketId: string, corsId: string, updateBy: string, fields: string[]): Promise<any>;
|
|
33
33
|
getListFileOtherVersion(s3UserId: string, bucketId: string, key: string, fields: string[]): Promise<any>;
|
|
34
34
|
restoreFileOtherVersion(s3UserId: string, bucketId: string, key: string, versionId: string, fields: string[]): Promise<any>;
|
|
35
35
|
removeFileOtherVersion(s3UserId: string, bucketId: string, key: string, versionId: string, fields: string[]): Promise<any>;
|
|
@@ -520,11 +520,10 @@ class StorageS3Service extends serviceSDK_1.Service {
|
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
-
removeCorsBucket(
|
|
523
|
+
removeCorsBucket(bucketId, corsId, updateBy, fields) {
|
|
524
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
525
|
const query = (0, mutations_1.REMOVE_CORS_BUCKET)(fields);
|
|
526
526
|
const variables = {
|
|
527
|
-
s3UserId,
|
|
528
527
|
bucketId,
|
|
529
528
|
corsId,
|
|
530
529
|
updateBy,
|