smartling-api-sdk-nodejs 3.4.2 → 3.6.0
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/.env.example +2 -1
- package/api/estimates/dto/effective-rates-range-dto.ts +7 -0
- package/api/estimates/dto/estimate-report-dto.ts +34 -0
- package/api/estimates/dto/estimate-report-status-dto.ts +13 -0
- package/api/estimates/dto/estimate-report-tags-dto.ts +5 -0
- package/api/estimates/dto/fuzzy-match-tier-dto.ts +17 -0
- package/api/estimates/dto/generated-estimate-report-dto.ts +10 -0
- package/api/estimates/dto/locale-estimate-dto.ts +17 -0
- package/api/estimates/dto/locale-workflow-pair-dto.ts +6 -0
- package/api/estimates/dto/locale-workflow-step-pair-dto.ts +6 -0
- package/api/estimates/dto/price-information-dto.ts +12 -0
- package/api/estimates/dto/workflow-estimate-dto.ts +18 -0
- package/api/estimates/dto/workflow-step-estimate-dto.ts +21 -0
- package/api/estimates/index.ts +102 -0
- package/api/estimates/params/estimate-report-content-coverage.ts +4 -0
- package/api/estimates/params/estimate-report-status.ts +9 -0
- package/api/estimates/params/estimate-report-type.ts +4 -0
- package/api/estimates/params/fuzzy-match-type-code.ts +4 -0
- package/api/estimates/params/generate-job-estimate-report-parameters.ts +46 -0
- package/api/estimates/params/job-content-type.ts +6 -0
- package/api/estimates/params/list-job-estimate-reports-parameters.ts +64 -0
- package/api/estimates/params/modify-estimate-report-tags-parameters.ts +9 -0
- package/api/translation-memory/index.ts +39 -0
- package/api/translation-memory/params/search-tms-parameters.ts +47 -0
- package/api/translation-memory/params/tm-sorting.ts +4 -0
- package/built/api/estimates/dto/effective-rates-range-dto.d.ts +6 -0
- package/built/api/estimates/dto/effective-rates-range-dto.js +3 -0
- package/built/api/estimates/dto/effective-rates-range-dto.js.map +1 -0
- package/built/api/estimates/dto/estimate-report-dto.d.ts +30 -0
- package/built/api/estimates/dto/estimate-report-dto.js +3 -0
- package/built/api/estimates/dto/estimate-report-dto.js.map +1 -0
- package/built/api/estimates/dto/estimate-report-status-dto.d.ts +11 -0
- package/built/api/estimates/dto/estimate-report-status-dto.js +3 -0
- package/built/api/estimates/dto/estimate-report-status-dto.js.map +1 -0
- package/built/api/estimates/dto/estimate-report-tags-dto.d.ts +4 -0
- package/built/api/estimates/dto/estimate-report-tags-dto.js +3 -0
- package/built/api/estimates/dto/estimate-report-tags-dto.js.map +1 -0
- package/built/api/estimates/dto/fuzzy-match-tier-dto.d.ts +12 -0
- package/built/api/estimates/dto/fuzzy-match-tier-dto.js +3 -0
- package/built/api/estimates/dto/fuzzy-match-tier-dto.js.map +1 -0
- package/built/api/estimates/dto/generated-estimate-report-dto.d.ts +8 -0
- package/built/api/estimates/dto/generated-estimate-report-dto.js +3 -0
- package/built/api/estimates/dto/generated-estimate-report-dto.js.map +1 -0
- package/built/api/estimates/dto/locale-estimate-dto.d.ts +13 -0
- package/built/api/estimates/dto/locale-estimate-dto.js +3 -0
- package/built/api/estimates/dto/locale-estimate-dto.js.map +1 -0
- package/built/api/estimates/dto/locale-workflow-pair-dto.d.ts +5 -0
- package/built/api/estimates/dto/locale-workflow-pair-dto.js +3 -0
- package/built/api/estimates/dto/locale-workflow-pair-dto.js.map +1 -0
- package/built/api/estimates/dto/locale-workflow-step-pair-dto.d.ts +5 -0
- package/built/api/estimates/dto/locale-workflow-step-pair-dto.js +3 -0
- package/built/api/estimates/dto/locale-workflow-step-pair-dto.js.map +1 -0
- package/built/api/estimates/dto/price-information-dto.d.ts +9 -0
- package/built/api/estimates/dto/price-information-dto.js +3 -0
- package/built/api/estimates/dto/price-information-dto.js.map +1 -0
- package/built/api/estimates/dto/workflow-estimate-dto.d.ts +13 -0
- package/built/api/estimates/dto/workflow-estimate-dto.js +3 -0
- package/built/api/estimates/dto/workflow-estimate-dto.js.map +1 -0
- package/built/api/estimates/dto/workflow-step-estimate-dto.d.ts +17 -0
- package/built/api/estimates/dto/workflow-step-estimate-dto.js +3 -0
- package/built/api/estimates/dto/workflow-step-estimate-dto.js.map +1 -0
- package/built/api/estimates/index.d.ts +23 -0
- package/built/api/estimates/index.js +68 -0
- package/built/api/estimates/index.js.map +1 -0
- package/built/api/estimates/params/estimate-report-content-coverage.d.ts +4 -0
- package/built/api/estimates/params/estimate-report-content-coverage.js +9 -0
- package/built/api/estimates/params/estimate-report-content-coverage.js.map +1 -0
- package/built/api/estimates/params/estimate-report-status.d.ts +9 -0
- package/built/api/estimates/params/estimate-report-status.js +14 -0
- package/built/api/estimates/params/estimate-report-status.js.map +1 -0
- package/built/api/estimates/params/estimate-report-type.d.ts +4 -0
- package/built/api/estimates/params/estimate-report-type.js +9 -0
- package/built/api/estimates/params/estimate-report-type.js.map +1 -0
- package/built/api/estimates/params/fuzzy-match-type-code.d.ts +4 -0
- package/built/api/estimates/params/fuzzy-match-type-code.js +9 -0
- package/built/api/estimates/params/fuzzy-match-type-code.js.map +1 -0
- package/built/api/estimates/params/generate-job-estimate-report-parameters.d.ts +12 -0
- package/built/api/estimates/params/generate-job-estimate-report-parameters.js +32 -0
- package/built/api/estimates/params/generate-job-estimate-report-parameters.js.map +1 -0
- package/built/api/estimates/params/job-content-type.d.ts +6 -0
- package/built/api/estimates/params/job-content-type.js +11 -0
- package/built/api/estimates/params/job-content-type.js.map +1 -0
- package/built/api/estimates/params/list-job-estimate-reports-parameters.d.ts +15 -0
- package/built/api/estimates/params/list-job-estimate-reports-parameters.js +44 -0
- package/built/api/estimates/params/list-job-estimate-reports-parameters.js.map +1 -0
- package/built/api/estimates/params/modify-estimate-report-tags-parameters.d.ts +4 -0
- package/built/api/estimates/params/modify-estimate-report-tags-parameters.js +12 -0
- package/built/api/estimates/params/modify-estimate-report-tags-parameters.js.map +1 -0
- package/built/api/translation-memory/index.d.ts +3 -0
- package/built/api/translation-memory/index.js +24 -0
- package/built/api/translation-memory/index.js.map +1 -1
- package/built/api/translation-memory/params/search-tms-parameters.d.ts +12 -0
- package/built/api/translation-memory/params/search-tms-parameters.js +36 -0
- package/built/api/translation-memory/params/search-tms-parameters.js.map +1 -0
- package/built/api/translation-memory/params/tm-sorting.d.ts +4 -0
- package/built/api/translation-memory/params/tm-sorting.js +9 -0
- package/built/api/translation-memory/params/tm-sorting.js.map +1 -0
- package/built/index.d.ts +23 -0
- package/built/index.js +23 -0
- package/built/index.js.map +1 -1
- package/built/package.json +1 -1
- package/built/test/estimates.spec.d.ts +1 -0
- package/built/test/estimates.spec.js +191 -0
- package/built/test/estimates.spec.js.map +1 -0
- package/built/test/integration/estimates.spec.d.ts +1 -0
- package/built/test/integration/estimates.spec.js +182 -0
- package/built/test/integration/estimates.spec.js.map +1 -0
- package/built/test/integration/helpers/log-response.js +1 -2
- package/built/test/integration/helpers/log-response.js.map +1 -1
- package/built/test/integration/translation-memory.spec.js +32 -1
- package/built/test/integration/translation-memory.spec.js.map +1 -1
- package/built/test/translation-memory.spec.js +60 -0
- package/built/test/translation-memory.spec.js.map +1 -1
- package/index.ts +23 -0
- package/package.json +1 -1
- package/test/estimates.spec.ts +242 -0
- package/test/integration/estimates.spec.ts +271 -0
- package/test/integration/helpers/log-response.ts +5 -3
- package/test/integration/translation-memory.spec.ts +52 -1
- package/test/translation-memory.spec.ts +79 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-report-tags-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/estimate-report-tags-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FuzzyMatchTypeCode } from "../params/fuzzy-match-type-code";
|
|
2
|
+
import { PriceInformationDto } from "./price-information-dto";
|
|
3
|
+
interface FuzzyMatchTierDto {
|
|
4
|
+
threshold: number;
|
|
5
|
+
matchTypeCode: FuzzyMatchTypeCode;
|
|
6
|
+
stringsCount: number;
|
|
7
|
+
wordCount: number;
|
|
8
|
+
weightedWordCount: number;
|
|
9
|
+
characterCount: number | null;
|
|
10
|
+
priceInformation: PriceInformationDto | null;
|
|
11
|
+
}
|
|
12
|
+
export { FuzzyMatchTierDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fuzzy-match-tier-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/fuzzy-match-tier-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EstimateReportType } from "../params/estimate-report-type";
|
|
2
|
+
import { EstimateReportStatus } from "../params/estimate-report-status";
|
|
3
|
+
interface GeneratedEstimateReportDto {
|
|
4
|
+
reportUid: string;
|
|
5
|
+
reportType: EstimateReportType;
|
|
6
|
+
reportStatus: EstimateReportStatus;
|
|
7
|
+
}
|
|
8
|
+
export { GeneratedEstimateReportDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-estimate-report-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/generated-estimate-report-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PriceInformationDto } from "./price-information-dto";
|
|
2
|
+
import { WorkflowEstimateDto } from "./workflow-estimate-dto";
|
|
3
|
+
interface LocaleEstimateDto {
|
|
4
|
+
totalWordCount: number;
|
|
5
|
+
totalWeightedWordCount: number;
|
|
6
|
+
totalCharacterCount: number | null;
|
|
7
|
+
totalPageCount: number | null;
|
|
8
|
+
localeId: string;
|
|
9
|
+
localeDescription: string;
|
|
10
|
+
workflowEstimates: Array<WorkflowEstimateDto>;
|
|
11
|
+
priceInformation: PriceInformationDto | null;
|
|
12
|
+
}
|
|
13
|
+
export { LocaleEstimateDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-estimate-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/locale-estimate-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-workflow-pair-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/locale-workflow-pair-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-workflow-step-pair-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/locale-workflow-step-pair-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price-information-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/price-information-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PriceInformationDto } from "./price-information-dto";
|
|
2
|
+
import { WorkflowStepEstimateDto } from "./workflow-step-estimate-dto";
|
|
3
|
+
interface WorkflowEstimateDto {
|
|
4
|
+
totalWordCount: number;
|
|
5
|
+
totalWeightedWordCount: number;
|
|
6
|
+
totalCharacterCount: number | null;
|
|
7
|
+
totalPageCount: number | null;
|
|
8
|
+
workflowUid: string;
|
|
9
|
+
workflowName: string;
|
|
10
|
+
workflowStepEstimates: Array<WorkflowStepEstimateDto>;
|
|
11
|
+
priceInformation: PriceInformationDto | null;
|
|
12
|
+
}
|
|
13
|
+
export { WorkflowEstimateDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-estimate-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/workflow-estimate-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EffectiveRatesRangeDto } from "./effective-rates-range-dto";
|
|
2
|
+
import { FuzzyMatchTierDto } from "./fuzzy-match-tier-dto";
|
|
3
|
+
import { PriceInformationDto } from "./price-information-dto";
|
|
4
|
+
interface WorkflowStepEstimateDto {
|
|
5
|
+
totalWordCount: number;
|
|
6
|
+
totalWeightedWordCount: number;
|
|
7
|
+
totalCharacterCount: number | null;
|
|
8
|
+
totalPageCount: number | null;
|
|
9
|
+
workflowStepUid: string;
|
|
10
|
+
workflowStepName: string;
|
|
11
|
+
effectiveRatesRange: EffectiveRatesRangeDto;
|
|
12
|
+
fuzzyMatchTiers: Array<FuzzyMatchTierDto>;
|
|
13
|
+
priceInformation: PriceInformationDto | null;
|
|
14
|
+
warningType: string | null;
|
|
15
|
+
aiSubscriptionServiceType: string | null;
|
|
16
|
+
}
|
|
17
|
+
export { WorkflowStepEstimateDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-step-estimate-dto.js","sourceRoot":"","sources":["../../../../api/estimates/dto/workflow-step-estimate-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SmartlingBaseApi } from "../base/index";
|
|
2
|
+
import { AccessTokenProvider } from "../auth/access-token-provider";
|
|
3
|
+
import { Logger } from "../logger";
|
|
4
|
+
import { SmartlingListResponse } from "../http/smartling-list-response";
|
|
5
|
+
import { ListJobEstimateReportsParameters } from "./params/list-job-estimate-reports-parameters";
|
|
6
|
+
import { GenerateJobEstimateReportParameters } from "./params/generate-job-estimate-report-parameters";
|
|
7
|
+
import { ModifyEstimateReportTagsParameters } from "./params/modify-estimate-report-tags-parameters";
|
|
8
|
+
import { EstimateReportDto } from "./dto/estimate-report-dto";
|
|
9
|
+
import { GeneratedEstimateReportDto } from "./dto/generated-estimate-report-dto";
|
|
10
|
+
import { EstimateReportStatusDto } from "./dto/estimate-report-status-dto";
|
|
11
|
+
import { EstimateReportTagsDto } from "./dto/estimate-report-tags-dto";
|
|
12
|
+
export declare class SmartlingEstimatesApi extends SmartlingBaseApi {
|
|
13
|
+
constructor(smartlingApiBaseUrl: string, authApi: AccessTokenProvider, logger: Logger);
|
|
14
|
+
getJobFuzzyEstimateReports(projectId: string, translationJobUid: string, params: ListJobEstimateReportsParameters): Promise<SmartlingListResponse<EstimateReportDto>>;
|
|
15
|
+
generateJobFuzzyEstimateReport(projectId: string, translationJobUid: string, params: GenerateJobEstimateReportParameters): Promise<GeneratedEstimateReportDto>;
|
|
16
|
+
getJobCostEstimateReports(projectId: string, translationJobUid: string, params: ListJobEstimateReportsParameters): Promise<SmartlingListResponse<EstimateReportDto>>;
|
|
17
|
+
generateJobCostEstimateReport(projectId: string, translationJobUid: string, params: GenerateJobEstimateReportParameters): Promise<GeneratedEstimateReportDto>;
|
|
18
|
+
getEstimateReport(projectId: string, reportUid: string): Promise<EstimateReportDto>;
|
|
19
|
+
deleteEstimateReport(projectId: string, reportUid: string): Promise<void>;
|
|
20
|
+
getEstimateReportStatus(projectId: string, reportUid: string): Promise<EstimateReportStatusDto>;
|
|
21
|
+
modifyEstimateReportTags(projectId: string, reportUid: string, params: ModifyEstimateReportTagsParameters): Promise<EstimateReportTagsDto>;
|
|
22
|
+
downloadEstimateReport(projectId: string, reportUid: string): Promise<ArrayBuffer>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SmartlingEstimatesApi = void 0;
|
|
13
|
+
const index_1 = require("../base/index");
|
|
14
|
+
const response_body_type_1 = require("../base/enum/response-body-type");
|
|
15
|
+
class SmartlingEstimatesApi extends index_1.SmartlingBaseApi {
|
|
16
|
+
constructor(smartlingApiBaseUrl, authApi, logger) {
|
|
17
|
+
super(logger);
|
|
18
|
+
this.authApi = authApi;
|
|
19
|
+
this.entrypoint = `${smartlingApiBaseUrl}/estimates-api/v2/projects`;
|
|
20
|
+
}
|
|
21
|
+
getJobFuzzyEstimateReports(projectId, translationJobUid, params) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return yield this.makeRequest("get", `${this.entrypoint}/${projectId}/jobs/${translationJobUid}/reports/fuzzy`, params.export());
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
generateJobFuzzyEstimateReport(projectId, translationJobUid, params) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this.makeRequest("post", `${this.entrypoint}/${projectId}/jobs/${translationJobUid}/reports/fuzzy`, JSON.stringify(params.export()));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getJobCostEstimateReports(projectId, translationJobUid, params) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return yield this.makeRequest("get", `${this.entrypoint}/${projectId}/jobs/${translationJobUid}/reports/cost`, params.export());
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
generateJobCostEstimateReport(projectId, translationJobUid, params) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this.makeRequest("post", `${this.entrypoint}/${projectId}/jobs/${translationJobUid}/reports/cost`, JSON.stringify(params.export()));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getEstimateReport(projectId, reportUid) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return yield this.makeRequest("get", `${this.entrypoint}/${projectId}/reports/${reportUid}`);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
deleteEstimateReport(projectId, reportUid) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
yield this.makeRequest("delete", `${this.entrypoint}/${projectId}/reports/${reportUid}`);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getEstimateReportStatus(projectId, reportUid) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return yield this.makeRequest("get", `${this.entrypoint}/${projectId}/reports/${reportUid}/status`);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
modifyEstimateReportTags(projectId, reportUid, params) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this.makeRequest("put", `${this.entrypoint}/${projectId}/reports/${reportUid}/tags`, JSON.stringify(params.export()));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
downloadEstimateReport(projectId, reportUid) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return yield this.makeRequest("get", `${this.entrypoint}/${projectId}/reports/${reportUid}/download`, { format: "csv" }, response_body_type_1.ResponseBodyType.ARRAY_BUFFER);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.SmartlingEstimatesApi = SmartlingEstimatesApi;
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../api/estimates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAiD;AAIjD,wEAAmE;AASnE,MAAa,qBAAsB,SAAQ,wBAAgB;IACvD,YAAY,mBAA2B,EAAE,OAA4B,EAAE,MAAc;QACjF,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,GAAG,mBAAmB,4BAA4B,CAAC;IACzE,CAAC;IAEK,0BAA0B,CAC5B,SAAiB,EAAE,iBAAyB,EAAE,MAAwC;;YAEtF,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,SAAS,iBAAiB,gBAAgB,EACzE,MAAM,CAAC,MAAM,EAAE,CAClB,CAAC;QACN,CAAC;KAAA;IAEK,8BAA8B,CAChC,SAAiB,EAAE,iBAAyB,EAAE,MAA2C;;YAEzF,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,MAAM,EACN,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,SAAS,iBAAiB,gBAAgB,EACzE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAClC,CAAC;QACN,CAAC;KAAA;IAEK,yBAAyB,CAC3B,SAAiB,EAAE,iBAAyB,EAAE,MAAwC;;YAEtF,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,SAAS,iBAAiB,eAAe,EACxE,MAAM,CAAC,MAAM,EAAE,CAClB,CAAC;QACN,CAAC;KAAA;IAEK,6BAA6B,CAC/B,SAAiB,EAAE,iBAAyB,EAAE,MAA2C;;YAEzF,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,MAAM,EACN,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,SAAS,iBAAiB,eAAe,EACxE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAClC,CAAC;QACN,CAAC;KAAA;IAEK,iBAAiB,CAAC,SAAiB,EAAE,SAAiB;;YACxD,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,SAAS,EAAE,CACzD,CAAC;QACN,CAAC;KAAA;IAEK,oBAAoB,CAAC,SAAiB,EAAE,SAAiB;;YAC3D,MAAM,IAAI,CAAC,WAAW,CAClB,QAAQ,EACR,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,SAAS,EAAE,CACzD,CAAC;QACN,CAAC;KAAA;IAEK,uBAAuB,CACzB,SAAiB,EAAE,SAAiB;;YAEpC,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,SAAS,SAAS,CAChE,CAAC;QACN,CAAC;KAAA;IAEK,wBAAwB,CAC1B,SAAiB,EAAE,SAAiB,EAAE,MAA0C;;YAEhF,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,SAAS,OAAO,EAC3D,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAClC,CAAC;QACN,CAAC;KAAA;IAEK,sBAAsB,CAAC,SAAiB,EAAE,SAAiB;;YAC7D,OAAO,MAAM,IAAI,CAAC,WAAW,CACzB,KAAK,EACL,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,SAAS,WAAW,EAC/D,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,qCAAgB,CAAC,YAAY,CAChC,CAAC;QACN,CAAC;KAAA;CACJ;AAxFD,sDAwFC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateReportContentCoverage = void 0;
|
|
4
|
+
var EstimateReportContentCoverage;
|
|
5
|
+
(function (EstimateReportContentCoverage) {
|
|
6
|
+
EstimateReportContentCoverage["FULL"] = "FULL";
|
|
7
|
+
EstimateReportContentCoverage["PARTIAL"] = "PARTIAL";
|
|
8
|
+
})(EstimateReportContentCoverage = exports.EstimateReportContentCoverage || (exports.EstimateReportContentCoverage = {}));
|
|
9
|
+
//# sourceMappingURL=estimate-report-content-coverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-report-content-coverage.js","sourceRoot":"","sources":["../../../../api/estimates/params/estimate-report-content-coverage.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACrC,8CAAa,CAAA;IACb,oDAAmB,CAAA;AACvB,CAAC,EAHW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAGxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateReportStatus = void 0;
|
|
4
|
+
var EstimateReportStatus;
|
|
5
|
+
(function (EstimateReportStatus) {
|
|
6
|
+
EstimateReportStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
7
|
+
EstimateReportStatus["PENDING"] = "PENDING";
|
|
8
|
+
EstimateReportStatus["PROCESSING"] = "PROCESSING";
|
|
9
|
+
EstimateReportStatus["COMPLETED"] = "COMPLETED";
|
|
10
|
+
EstimateReportStatus["FAILED"] = "FAILED";
|
|
11
|
+
EstimateReportStatus["TIMEOUT"] = "TIMEOUT";
|
|
12
|
+
EstimateReportStatus["CANCELED"] = "CANCELED";
|
|
13
|
+
})(EstimateReportStatus = exports.EstimateReportStatus || (exports.EstimateReportStatus = {}));
|
|
14
|
+
//# sourceMappingURL=estimate-report-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-report-status.js","sourceRoot":"","sources":["../../../../api/estimates/params/estimate-report-status.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;AACzB,CAAC,EARW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQ/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateReportType = void 0;
|
|
4
|
+
var EstimateReportType;
|
|
5
|
+
(function (EstimateReportType) {
|
|
6
|
+
EstimateReportType["FUZZY"] = "FUZZY";
|
|
7
|
+
EstimateReportType["COST"] = "COST";
|
|
8
|
+
})(EstimateReportType = exports.EstimateReportType || (exports.EstimateReportType = {}));
|
|
9
|
+
//# sourceMappingURL=estimate-report-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-report-type.js","sourceRoot":"","sources":["../../../../api/estimates/params/estimate-report-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,mCAAa,CAAA;AACjB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FuzzyMatchTypeCode = void 0;
|
|
4
|
+
var FuzzyMatchTypeCode;
|
|
5
|
+
(function (FuzzyMatchTypeCode) {
|
|
6
|
+
FuzzyMatchTypeCode["FUZZY"] = "FUZZY";
|
|
7
|
+
FuzzyMatchTypeCode["SMARTMATCH"] = "SMARTMATCH";
|
|
8
|
+
})(FuzzyMatchTypeCode = exports.FuzzyMatchTypeCode || (exports.FuzzyMatchTypeCode = {}));
|
|
9
|
+
//# sourceMappingURL=fuzzy-match-type-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fuzzy-match-type-code.js","sourceRoot":"","sources":["../../../../api/estimates/params/fuzzy-match-type-code.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,+CAAyB,CAAA;AAC7B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseParameters } from "../../parameters/index";
|
|
2
|
+
import { JobContentType } from "./job-content-type";
|
|
3
|
+
import { LocaleWorkflowPairDto } from "../dto/locale-workflow-pair-dto";
|
|
4
|
+
import { LocaleWorkflowStepPairDto } from "../dto/locale-workflow-step-pair-dto";
|
|
5
|
+
export declare class GenerateJobEstimateReportParameters extends BaseParameters {
|
|
6
|
+
setContentType(contentType: JobContentType): GenerateJobEstimateReportParameters;
|
|
7
|
+
setTags(tags: Array<string>): GenerateJobEstimateReportParameters;
|
|
8
|
+
setLocaleWorkflows(localeWorkflows: Array<LocaleWorkflowPairDto>): GenerateJobEstimateReportParameters;
|
|
9
|
+
setFuzzyProfileUid(fuzzyProfileUid: string): GenerateJobEstimateReportParameters;
|
|
10
|
+
setRushRequest(rushRequest: boolean): GenerateJobEstimateReportParameters;
|
|
11
|
+
setLocaleWorkflowStepsFilter(localeWorkflowStepsFilter: Array<LocaleWorkflowStepPairDto>): GenerateJobEstimateReportParameters;
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateJobEstimateReportParameters = void 0;
|
|
4
|
+
const index_1 = require("../../parameters/index");
|
|
5
|
+
class GenerateJobEstimateReportParameters extends index_1.BaseParameters {
|
|
6
|
+
setContentType(contentType) {
|
|
7
|
+
this.set("contentType", contentType);
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
setTags(tags) {
|
|
11
|
+
this.set("tags", tags);
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
setLocaleWorkflows(localeWorkflows) {
|
|
15
|
+
this.set("localeWorkflows", localeWorkflows);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
setFuzzyProfileUid(fuzzyProfileUid) {
|
|
19
|
+
this.set("fuzzyProfileUid", fuzzyProfileUid);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
setRushRequest(rushRequest) {
|
|
23
|
+
this.set("rushRequest", rushRequest);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
setLocaleWorkflowStepsFilter(localeWorkflowStepsFilter) {
|
|
27
|
+
this.set("localeWorkflowStepsFilter", localeWorkflowStepsFilter);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GenerateJobEstimateReportParameters = GenerateJobEstimateReportParameters;
|
|
32
|
+
//# sourceMappingURL=generate-job-estimate-report-parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-job-estimate-report-parameters.js","sourceRoot":"","sources":["../../../../api/estimates/params/generate-job-estimate-report-parameters.ts"],"names":[],"mappings":";;;AAAA,kDAAwD;AAKxD,MAAa,mCAAoC,SAAQ,sBAAc;IACnE,cAAc,CAAC,WAA2B;QACtC,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,IAAmB;QACvB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB,CACd,eAA6C;QAE7C,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB,CAAC,eAAuB;QACtC,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,WAAoB;QAC/B,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,4BAA4B,CACxB,yBAA2D;QAE3D,IAAI,CAAC,GAAG,CAAC,2BAA2B,EAAE,yBAAyB,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAxCD,kFAwCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobContentType = void 0;
|
|
4
|
+
var JobContentType;
|
|
5
|
+
(function (JobContentType) {
|
|
6
|
+
JobContentType["TRANSLATION"] = "TRANSLATION";
|
|
7
|
+
JobContentType["ALL_CONTENT"] = "ALL_CONTENT";
|
|
8
|
+
JobContentType["CLAIMING"] = "CLAIMING";
|
|
9
|
+
JobContentType["UNAUTHORIZED"] = "UNAUTHORIZED";
|
|
10
|
+
})(JobContentType = exports.JobContentType || (exports.JobContentType = {}));
|
|
11
|
+
//# sourceMappingURL=job-content-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-content-type.js","sourceRoot":"","sources":["../../../../api/estimates/params/job-content-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,uCAAqB,CAAA;IACrB,+CAA6B,CAAA;AACjC,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseParameters } from "../../parameters/index";
|
|
2
|
+
import { EstimateReportStatus } from "./estimate-report-status";
|
|
3
|
+
import { EstimateReportContentCoverage } from "./estimate-report-content-coverage";
|
|
4
|
+
import { JobContentType } from "./job-content-type";
|
|
5
|
+
export declare class ListJobEstimateReportsParameters extends BaseParameters {
|
|
6
|
+
setReportStatus(reportStatus: EstimateReportStatus): ListJobEstimateReportsParameters;
|
|
7
|
+
setContentCoverage(contentCoverage: EstimateReportContentCoverage): ListJobEstimateReportsParameters;
|
|
8
|
+
setCreatorUserUids(creatorUserUids: Array<string>): ListJobEstimateReportsParameters;
|
|
9
|
+
setTranslationJobSchemaContents(translationJobSchemaContents: Array<JobContentType>): ListJobEstimateReportsParameters;
|
|
10
|
+
setTags(tags: Array<string>): ListJobEstimateReportsParameters;
|
|
11
|
+
setCreatedFrom(createdFrom: Date): ListJobEstimateReportsParameters;
|
|
12
|
+
setCreatedTo(createdTo: Date): ListJobEstimateReportsParameters;
|
|
13
|
+
setLimit(limit: number): ListJobEstimateReportsParameters;
|
|
14
|
+
setOffset(offset: number): ListJobEstimateReportsParameters;
|
|
15
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListJobEstimateReportsParameters = void 0;
|
|
4
|
+
const index_1 = require("../../parameters/index");
|
|
5
|
+
class ListJobEstimateReportsParameters extends index_1.BaseParameters {
|
|
6
|
+
setReportStatus(reportStatus) {
|
|
7
|
+
this.set("reportStatus", reportStatus);
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
setContentCoverage(contentCoverage) {
|
|
11
|
+
this.set("contentCoverage", contentCoverage);
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
setCreatorUserUids(creatorUserUids) {
|
|
15
|
+
this.set("creatorUserUids", creatorUserUids);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
setTranslationJobSchemaContents(translationJobSchemaContents) {
|
|
19
|
+
this.set("translationJobSchemaContents", translationJobSchemaContents);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
setTags(tags) {
|
|
23
|
+
this.set("tags", tags);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
setCreatedFrom(createdFrom) {
|
|
27
|
+
this.set("createdFrom", `${createdFrom.toISOString().split(".")[0]}Z`);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
setCreatedTo(createdTo) {
|
|
31
|
+
this.set("createdTo", `${createdTo.toISOString().split(".")[0]}Z`);
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
setLimit(limit) {
|
|
35
|
+
this.set("limit", limit);
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
setOffset(offset) {
|
|
39
|
+
this.set("offset", offset);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ListJobEstimateReportsParameters = ListJobEstimateReportsParameters;
|
|
44
|
+
//# sourceMappingURL=list-job-estimate-reports-parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-job-estimate-reports-parameters.js","sourceRoot":"","sources":["../../../../api/estimates/params/list-job-estimate-reports-parameters.ts"],"names":[],"mappings":";;;AAAA,kDAAwD;AAKxD,MAAa,gCAAiC,SAAQ,sBAAc;IAChE,eAAe,CAAC,YAAkC;QAC9C,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB,CACd,eAA8C;QAE9C,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB,CAAC,eAA8B;QAC7C,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,+BAA+B,CAC3B,4BAAmD;QAEnD,IAAI,CAAC,GAAG,CAAC,8BAA8B,EAAE,4BAA4B,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,IAAmB;QACvB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,WAAiB;QAC5B,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,YAAY,CAAC,SAAe;QACxB,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAEnE,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,QAAQ,CAAC,KAAa;QAClB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAEzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,SAAS,CAAC,MAAc;QACpB,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAE3B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA1DD,4EA0DC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModifyEstimateReportTagsParameters = void 0;
|
|
4
|
+
const index_1 = require("../../parameters/index");
|
|
5
|
+
class ModifyEstimateReportTagsParameters extends index_1.BaseParameters {
|
|
6
|
+
setTags(tags) {
|
|
7
|
+
this.set("tags", tags);
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ModifyEstimateReportTagsParameters = ModifyEstimateReportTagsParameters;
|
|
12
|
+
//# sourceMappingURL=modify-estimate-report-tags-parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modify-estimate-report-tags-parameters.js","sourceRoot":"","sources":["../../../../api/estimates/params/modify-estimate-report-tags-parameters.ts"],"names":[],"mappings":";;;AAAA,kDAAwD;AAExD,MAAa,kCAAmC,SAAQ,sBAAc;IAClE,OAAO,CAAC,IAAmB;QACvB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEvB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAND,gFAMC"}
|
|
@@ -11,6 +11,7 @@ import { AsyncActionResultDto } from "./dto/async-action-result-dto";
|
|
|
11
11
|
import { StringsExportAsyncActionResultDto } from "./dto/strings-export-async-action-result-dto";
|
|
12
12
|
import { CreateTmParameters } from "./params/create-tm-parameters";
|
|
13
13
|
import { UpdateTmParameters } from "./params/update-tm-parameters";
|
|
14
|
+
import { SearchTmsParameters } from "./params/search-tms-parameters";
|
|
14
15
|
import { TmDto } from "./dto/tm-dto";
|
|
15
16
|
export declare class SmartlingTranslationMemoryApi extends SmartlingBaseFileApi {
|
|
16
17
|
constructor(smartlingApiBaseUrl: string, authApi: AccessTokenProvider, logger: Logger);
|
|
@@ -23,5 +24,7 @@ export declare class SmartlingTranslationMemoryApi extends SmartlingBaseFileApi
|
|
|
23
24
|
createTm(accountUid: string, params: CreateTmParameters): Promise<TmDto | null>;
|
|
24
25
|
updateTm(accountUid: string, params: UpdateTmParameters): Promise<TmDto | null>;
|
|
25
26
|
deleteTm(accountUid: string, tmUid: string): Promise<TmDto | null>;
|
|
27
|
+
getTm(accountUid: string, tmUid: string): Promise<TmDto | null>;
|
|
28
|
+
searchTms(accountUid: string, params: SearchTmsParameters): Promise<Array<TmDto | null> | null>;
|
|
26
29
|
private executeGraphQl;
|
|
27
30
|
}
|
|
@@ -73,6 +73,20 @@ const DELETE_TM_QUERY = `
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
`;
|
|
76
|
+
const GET_TM_QUERY = `
|
|
77
|
+
query tm($tmUid: ID!) {
|
|
78
|
+
tm(tmUid: $tmUid) {
|
|
79
|
+
${TM_FIELDS}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
const SEARCH_TMS_QUERY = `
|
|
84
|
+
query searchTms($searchTmFilter: SearchTmFilter!) {
|
|
85
|
+
searchTms(searchTmFilter: $searchTmFilter) {
|
|
86
|
+
${TM_FIELDS}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
76
90
|
const CREATE_STRING_SEARCH_QUERY = `
|
|
77
91
|
mutation createStringSearch($createStringSearchFilter: CreateStringSearchFilter!) {
|
|
78
92
|
createStringSearch(createStringSearchFilter: $createStringSearchFilter) {
|
|
@@ -192,6 +206,16 @@ class SmartlingTranslationMemoryApi extends base_1.SmartlingBaseFileApi {
|
|
|
192
206
|
return yield this.executeGraphQl(accountUid, DELETE_TM_QUERY, { deleteTm: { tmUid } }, "deleteTm");
|
|
193
207
|
});
|
|
194
208
|
}
|
|
209
|
+
getTm(accountUid, tmUid) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
return yield this.executeGraphQl(accountUid, GET_TM_QUERY, { tmUid }, "tm");
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
searchTms(accountUid, params) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
return yield this.executeGraphQl(accountUid, SEARCH_TMS_QUERY, { searchTmFilter: params.export() }, "searchTms");
|
|
217
|
+
});
|
|
218
|
+
}
|
|
195
219
|
executeGraphQl(accountUid, query, variables, operationName) {
|
|
196
220
|
var _a;
|
|
197
221
|
return __awaiter(this, void 0, void 0, function* () {
|