@longvansoftware/service-js-client 2.3.5 → 2.3.7
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.
|
@@ -472,7 +472,6 @@ const UPDATE_CORS_BUCKET = (fields = []) => {
|
|
|
472
472
|
const hasFields = fields.length > 0;
|
|
473
473
|
return (0, graphql_tag_1.gql) `
|
|
474
474
|
mutation UpdateCorsBucket(
|
|
475
|
-
$s3UserId: String!,
|
|
476
475
|
$bucketId: String!,
|
|
477
476
|
$allowedMethods: [String],
|
|
478
477
|
$allowedOrigins: [String],
|
|
@@ -483,7 +482,6 @@ const UPDATE_CORS_BUCKET = (fields = []) => {
|
|
|
483
482
|
$updateBy: String!
|
|
484
483
|
) {
|
|
485
484
|
updateCorsBucket(
|
|
486
|
-
s3UserId: $s3UserId,
|
|
487
485
|
bucketId: $bucketId,
|
|
488
486
|
allowedMethods: $allowedMethods,
|
|
489
487
|
allowedOrigins: $allowedOrigins,
|
|
@@ -29,7 +29,7 @@ export declare class StorageS3Service extends Service {
|
|
|
29
29
|
removeS3Domain(s3UserId: string, domainId: string, byUser: string, fields: string[]): Promise<any>;
|
|
30
30
|
getListCorsByS3UserId(s3UserId: string, bucketId: string, fields: string[]): Promise<any>;
|
|
31
31
|
addCorsBucket(s3UserId: string, bucketId: string, allowedMethods: string[], allowedOrigins: string[], allowedHeaders: string[], exposeHeaders: string[], maxAgeSeconds: number, updateBy: string, fields: string[]): Promise<any>;
|
|
32
|
-
updateCorsBucket(
|
|
32
|
+
updateCorsBucket(bucketId: string, corsId: string, allowedMethods: string[], allowedOrigins: string[], allowedHeaders: string[], exposeHeaders: string[], maxAgeSeconds: number, updateBy: string, fields: string[]): Promise<any>;
|
|
33
33
|
removeCorsBucket(bucketId: string, corsId: string, updateBy: string, fields: string[]): Promise<any>;
|
|
34
34
|
getListFileOtherVersion(s3UserId: string, bucketId: string, key: string, fields: string[]): Promise<any>;
|
|
35
35
|
restoreFileOtherVersion(s3UserId: string, bucketId: string, key: string, versionId: string, fields: string[]): Promise<any>;
|
|
@@ -512,11 +512,10 @@ class StorageS3Service extends serviceSDK_1.Service {
|
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
updateCorsBucket(
|
|
515
|
+
updateCorsBucket(bucketId, corsId, allowedMethods, allowedOrigins, allowedHeaders, exposeHeaders, maxAgeSeconds, updateBy, fields) {
|
|
516
516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
517
517
|
const mutation = (0, mutations_1.UPDATE_CORS_BUCKET)(fields);
|
|
518
518
|
const variables = {
|
|
519
|
-
s3UserId,
|
|
520
519
|
bucketId,
|
|
521
520
|
corsId,
|
|
522
521
|
allowedMethods,
|