@longvansoftware/service-js-client 1.20.1 → 1.20.2
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.
|
@@ -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
|
}
|
|
@@ -33,5 +33,5 @@ export declare class StorageS3Service extends Service {
|
|
|
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
|
}
|
|
@@ -595,12 +595,13 @@ class StorageS3Service extends serviceSDK_1.Service {
|
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
chartInYear(s3UserId, year, fields) {
|
|
598
|
+
chartInYear(s3UserId, year, month, fields) {
|
|
599
599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
600
|
const query = (0, queries_1.CHART_IN_YEAR)(fields);
|
|
601
601
|
const variables = {
|
|
602
602
|
s3UserId,
|
|
603
|
-
year
|
|
603
|
+
year,
|
|
604
|
+
month
|
|
604
605
|
};
|
|
605
606
|
try {
|
|
606
607
|
const response = yield this.graphqlQueryV2(query, variables);
|