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.
@@ -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=AYbms_u9gRVcM-XZbdl1
6
- ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=AYbms_u9gRVcM-XZbdl1
5
+ ceTaskId=AYb_wiRQgRVcM-XZbdmD
6
+ ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=AYb_wiRQgRVcM-XZbdmD
@@ -1,7 +1,7 @@
1
1
  import { SourceFileDto } from "./source-file-dto";
2
2
 
3
3
  interface FullSourceFileDto extends SourceFileDto {
4
- name: string;
4
+ localeIds: Array<string>;
5
5
  }
6
6
 
7
7
  export { FullSourceFileDto };
@@ -1,9 +1,9 @@
1
1
  import { JobDto } from "./job-dto";
2
- import { FullSourceFileDto } from "./full-source-file-dto";
2
+ import { SourceFileDto } from "./source-file-dto";
3
3
 
4
4
  interface JobDetailsDto extends JobDto {
5
5
  priority: string;
6
- sourceFiles: Array<FullSourceFileDto>;
6
+ sourceFiles: Array<SourceFileDto>;
7
7
  }
8
8
 
9
9
  export { JobDetailsDto };
@@ -1,5 +1,7 @@
1
1
  interface SourceFileDto {
2
2
  uri: string;
3
+ name: string;
4
+ fileUid: string;
3
5
  }
4
6
 
5
7
  export { SourceFileDto };
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<SourceFileDto>> {
45
+ ): Promise<SmartlingListResponse<FullSourceFileDto>> {
46
46
  return await this.makeRequest(
47
47
  "get",
48
48
  `${this.entrypoint}/${projectId}/jobs/${translationJobUid}/files`,
@@ -1,5 +1,5 @@
1
1
  import { SourceFileDto } from "./source-file-dto";
2
2
  interface FullSourceFileDto extends SourceFileDto {
3
- name: string;
3
+ localeIds: Array<string>;
4
4
  }
5
5
  export { FullSourceFileDto };
@@ -1,7 +1,7 @@
1
1
  import { JobDto } from "./job-dto";
2
- import { FullSourceFileDto } from "./full-source-file-dto";
2
+ import { SourceFileDto } from "./source-file-dto";
3
3
  interface JobDetailsDto extends JobDto {
4
4
  priority: string;
5
- sourceFiles: Array<FullSourceFileDto>;
5
+ sourceFiles: Array<SourceFileDto>;
6
6
  }
7
7
  export { JobDetailsDto };
@@ -1,4 +1,6 @@
1
1
  interface SourceFileDto {
2
2
  uri: string;
3
+ name: string;
4
+ fileUid: string;
3
5
  }
4
6
  export { SourceFileDto };
@@ -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<SourceFileDto>>;
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>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartling-api-sdk-nodejs",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Package for Smartling API",
5
5
  "main": "built/index.js",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartling-api-sdk-nodejs",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Package for Smartling API",
5
5
  "main": "built/index.js",
6
6
  "scripts": {