smartling-api-sdk-nodejs 1.5.0 → 1.5.1
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/.scannerwork/report-task.txt +2 -2
- package/api/jobs/dto/full-source-file-dto.ts +1 -1
- package/api/jobs/dto/job-details-dto.ts +2 -2
- package/api/jobs/dto/source-file-dto.ts +2 -0
- package/api/jobs/index.ts +2 -2
- package/built/api/jobs/dto/full-source-file-dto.d.ts +1 -1
- package/built/api/jobs/dto/job-details-dto.d.ts +2 -2
- package/built/api/jobs/dto/source-file-dto.d.ts +2 -0
- package/built/api/jobs/index.d.ts +2 -2
- package/built/package.json +1 -1
- package/package.json +1 -1
|
@@ -2,5 +2,5 @@ projectKey=smartling-api-sdk-nodejs
|
|
|
2
2
|
serverUrl=https://sonar-next.connectors.stg.smartling.net
|
|
3
3
|
serverVersion=8.6.1.40680
|
|
4
4
|
dashboardUrl=https://sonar-next.connectors.stg.smartling.net/dashboard?id=smartling-api-sdk-nodejs
|
|
5
|
-
ceTaskId=
|
|
6
|
-
ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=
|
|
5
|
+
ceTaskId=AYb_wiRQgRVcM-XZbdmD
|
|
6
|
+
ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=AYb_wiRQgRVcM-XZbdmD
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JobDto } from "./job-dto";
|
|
2
|
-
import {
|
|
2
|
+
import { SourceFileDto } from "./source-file-dto";
|
|
3
3
|
|
|
4
4
|
interface JobDetailsDto extends JobDto {
|
|
5
5
|
priority: string;
|
|
6
|
-
sourceFiles: Array<
|
|
6
|
+
sourceFiles: Array<SourceFileDto>;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export { JobDetailsDto };
|
package/api/jobs/index.ts
CHANGED
|
@@ -11,12 +11,12 @@ import { JobDetailsDto } from "./dto/job-details-dto";
|
|
|
11
11
|
import { SmartlingListResponse } from "../http/smartling-list-response";
|
|
12
12
|
import { BaseJobDto } from "./dto/base-job-dto";
|
|
13
13
|
import { FileProgressDto } from "./dto/file-progress-dto";
|
|
14
|
-
import { SourceFileDto } from "./dto/source-file-dto";
|
|
15
14
|
import { RemovedFileDto } from "./dto/removed-file-dto";
|
|
16
15
|
import { JobProgressDto } from "./dto/job-progress-dto";
|
|
17
16
|
import { JobProgressParameters } from "./params/job-progress-parameters";
|
|
18
17
|
import { CancelJobParameters } from "./params/cancel-job-parameters";
|
|
19
18
|
import { SearchJobsParameters } from "./params/search-jobs-parameters";
|
|
19
|
+
import { FullSourceFileDto } from "./dto/full-source-file-dto";
|
|
20
20
|
|
|
21
21
|
export class SmartlingJobsApi extends SmartlingBaseApi {
|
|
22
22
|
constructor(smartlingApiBaseUrl: string, authApi: SmartlingAuthApi, logger: Logger) {
|
|
@@ -42,7 +42,7 @@ export class SmartlingJobsApi extends SmartlingBaseApi {
|
|
|
42
42
|
|
|
43
43
|
async getJobFiles(
|
|
44
44
|
projectId: string, translationJobUid: string, params: ListJobFilesParameters
|
|
45
|
-
): Promise<SmartlingListResponse<
|
|
45
|
+
): Promise<SmartlingListResponse<FullSourceFileDto>> {
|
|
46
46
|
return await this.makeRequest(
|
|
47
47
|
"get",
|
|
48
48
|
`${this.entrypoint}/${projectId}/jobs/${translationJobUid}/files`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JobDto } from "./job-dto";
|
|
2
|
-
import {
|
|
2
|
+
import { SourceFileDto } from "./source-file-dto";
|
|
3
3
|
interface JobDetailsDto extends JobDto {
|
|
4
4
|
priority: string;
|
|
5
|
-
sourceFiles: Array<
|
|
5
|
+
sourceFiles: Array<SourceFileDto>;
|
|
6
6
|
}
|
|
7
7
|
export { JobDetailsDto };
|
|
@@ -11,17 +11,17 @@ import { JobDetailsDto } from "./dto/job-details-dto";
|
|
|
11
11
|
import { SmartlingListResponse } from "../http/smartling-list-response";
|
|
12
12
|
import { BaseJobDto } from "./dto/base-job-dto";
|
|
13
13
|
import { FileProgressDto } from "./dto/file-progress-dto";
|
|
14
|
-
import { SourceFileDto } from "./dto/source-file-dto";
|
|
15
14
|
import { RemovedFileDto } from "./dto/removed-file-dto";
|
|
16
15
|
import { JobProgressDto } from "./dto/job-progress-dto";
|
|
17
16
|
import { JobProgressParameters } from "./params/job-progress-parameters";
|
|
18
17
|
import { CancelJobParameters } from "./params/cancel-job-parameters";
|
|
19
18
|
import { SearchJobsParameters } from "./params/search-jobs-parameters";
|
|
19
|
+
import { FullSourceFileDto } from "./dto/full-source-file-dto";
|
|
20
20
|
export declare class SmartlingJobsApi extends SmartlingBaseApi {
|
|
21
21
|
constructor(smartlingApiBaseUrl: string, authApi: SmartlingAuthApi, logger: Logger);
|
|
22
22
|
createJob(projectId: string, params: CreateJobParameters): Promise<JobDto>;
|
|
23
23
|
getJob(projectId: string, translationJobUid: string): Promise<JobDetailsDto>;
|
|
24
|
-
getJobFiles(projectId: string, translationJobUid: string, params: ListJobFilesParameters): Promise<SmartlingListResponse<
|
|
24
|
+
getJobFiles(projectId: string, translationJobUid: string, params: ListJobFilesParameters): Promise<SmartlingListResponse<FullSourceFileDto>>;
|
|
25
25
|
listJobs(projectId: string, params: ListJobsParameters): Promise<SmartlingListResponse<BaseJobDto>>;
|
|
26
26
|
searchJobs(projectId: string, params: SearchJobsParameters): Promise<SmartlingListResponse<BaseJobDto>>;
|
|
27
27
|
removeFileFromJob(projectId: string, translationJobUid: string, params: RemoveFileParameters): Promise<RemovedFileDto>;
|
package/built/package.json
CHANGED