@longvansoftware/service-js-client 1.20.1 → 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,
@@ -90,8 +90,8 @@ const CHART_IN_YEAR = (fields = []) => {
90
90
  const fieldStr = fields.join('\n ');
91
91
  const hasFields = fields.length > 0;
92
92
  return (0, graphql_tag_1.gql) `
93
- query ChartInYear($s3UserId: String!, $year: Int!) {
94
- chartInYear(s3UserId: $s3UserId, year: $year) {
93
+ query ChartInYear($s3UserId: String!, $year: Int!, $month: Int!) {
94
+ chartInYear(s3UserId: $s3UserId, year: $year, month: $month) {
95
95
  ${hasFields ? `${fieldStr}` : ''}
96
96
  }
97
97
  }
@@ -29,9 +29,9 @@ 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(s3UserId: string, bucketId: string, corsId: string, updateBy: string, fields: string[]): Promise<any>;
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>;
36
- chartInYear(s3UserId: string, year: number, fields: string[]): Promise<any>;
36
+ chartInYear(s3UserId: string, year: number, month: number, fields: string[]): Promise<any>;
37
37
  }
@@ -520,11 +520,10 @@ class StorageS3Service extends serviceSDK_1.Service {
520
520
  }
521
521
  });
522
522
  }
523
- removeCorsBucket(s3UserId, bucketId, corsId, updateBy, fields) {
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,
@@ -595,12 +594,13 @@ class StorageS3Service extends serviceSDK_1.Service {
595
594
  }
596
595
  });
597
596
  }
598
- chartInYear(s3UserId, year, fields) {
597
+ chartInYear(s3UserId, year, month, fields) {
599
598
  return __awaiter(this, void 0, void 0, function* () {
600
599
  const query = (0, queries_1.CHART_IN_YEAR)(fields);
601
600
  const variables = {
602
601
  s3UserId,
603
- year
602
+ year,
603
+ month
604
604
  };
605
605
  try {
606
606
  const response = yield this.graphqlQueryV2(query, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [