smartling-api-sdk-nodejs 3.3.0 → 3.4.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 +1 -1
- package/api/translation-memory/dto/async-action-result-dto.ts +12 -0
- package/api/translation-memory/dto/async-action-status.ts +8 -0
- package/api/translation-memory/dto/create-string-search-result-dto.ts +16 -0
- package/api/translation-memory/dto/duplicate-string-dto.ts +9 -0
- package/api/translation-memory/dto/locale-summary-dto.ts +10 -0
- package/api/translation-memory/dto/strings-export-async-action-result-dto.ts +8 -0
- package/api/translation-memory/dto/tm-dto.ts +23 -0
- package/api/translation-memory/dto/tm-locale-dto.ts +8 -0
- package/api/translation-memory/dto/tmx-import-summary-dto.ts +16 -0
- package/api/translation-memory/dto/tmx-parsing-error-dto.ts +7 -0
- package/api/translation-memory/dto/user-dto.ts +6 -0
- package/api/translation-memory/index.ts +368 -0
- package/api/translation-memory/params/bulk-export-tm-strings-parameters.ts +30 -0
- package/api/translation-memory/params/create-string-search-filter-parameters.ts +232 -0
- package/api/translation-memory/params/create-string-search-options.ts +8 -0
- package/api/translation-memory/params/create-tm-parameters.ts +28 -0
- package/api/translation-memory/params/escape-smp-unicode-parser-directive.ts +6 -0
- package/api/translation-memory/params/extended-export-metadata-type.ts +4 -0
- package/api/translation-memory/params/import-tmx-file-parameters.ts +76 -0
- package/api/translation-memory/params/keyword-search-type.ts +5 -0
- package/api/translation-memory/params/leverage-type.ts +5 -0
- package/api/translation-memory/params/search-keyword.ts +10 -0
- package/api/translation-memory/params/source-type.ts +7 -0
- package/api/translation-memory/params/string-search-tags.ts +7 -0
- package/api/translation-memory/params/translation-quality-type.ts +5 -0
- package/api/translation-memory/params/tu-translation-quality-type.ts +6 -0
- package/api/translation-memory/params/update-tm-parameters.ts +23 -0
- package/built/api/translation-memory/dto/async-action-result-dto.d.ts +10 -0
- package/built/api/translation-memory/dto/async-action-result-dto.js +3 -0
- package/built/api/translation-memory/dto/async-action-result-dto.js.map +1 -0
- package/built/api/translation-memory/dto/async-action-status.d.ts +8 -0
- package/built/api/translation-memory/dto/async-action-status.js +13 -0
- package/built/api/translation-memory/dto/async-action-status.js.map +1 -0
- package/built/api/translation-memory/dto/create-string-search-result-dto.d.ts +11 -0
- package/built/api/translation-memory/dto/create-string-search-result-dto.js +3 -0
- package/built/api/translation-memory/dto/create-string-search-result-dto.js.map +1 -0
- package/built/api/translation-memory/dto/duplicate-string-dto.d.ts +8 -0
- package/built/api/translation-memory/dto/duplicate-string-dto.js +3 -0
- package/built/api/translation-memory/dto/duplicate-string-dto.js.map +1 -0
- package/built/api/translation-memory/dto/locale-summary-dto.d.ts +8 -0
- package/built/api/translation-memory/dto/locale-summary-dto.js +3 -0
- package/built/api/translation-memory/dto/locale-summary-dto.js.map +1 -0
- package/built/api/translation-memory/dto/strings-export-async-action-result-dto.d.ts +6 -0
- package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js +3 -0
- package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js.map +1 -0
- package/built/api/translation-memory/dto/tm-dto.d.ts +19 -0
- package/built/api/translation-memory/dto/tm-dto.js +3 -0
- package/built/api/translation-memory/dto/tm-dto.js.map +1 -0
- package/built/api/translation-memory/dto/tm-locale-dto.d.ts +7 -0
- package/built/api/translation-memory/dto/tm-locale-dto.js +3 -0
- package/built/api/translation-memory/dto/tm-locale-dto.js.map +1 -0
- package/built/api/translation-memory/dto/tmx-import-summary-dto.d.ts +11 -0
- package/built/api/translation-memory/dto/tmx-import-summary-dto.js +3 -0
- package/built/api/translation-memory/dto/tmx-import-summary-dto.js.map +1 -0
- package/built/api/translation-memory/dto/tmx-parsing-error-dto.d.ts +6 -0
- package/built/api/translation-memory/dto/tmx-parsing-error-dto.js +3 -0
- package/built/api/translation-memory/dto/tmx-parsing-error-dto.js.map +1 -0
- package/built/api/translation-memory/dto/user-dto.d.ts +5 -0
- package/built/api/translation-memory/dto/user-dto.js +3 -0
- package/built/api/translation-memory/dto/user-dto.js.map +1 -0
- package/built/api/translation-memory/index.d.ts +27 -0
- package/built/api/translation-memory/index.js +250 -0
- package/built/api/translation-memory/index.js.map +1 -0
- package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.d.ts +8 -0
- package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js +24 -0
- package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js.map +1 -0
- package/built/api/translation-memory/params/create-string-search-filter-parameters.d.ts +43 -0
- package/built/api/translation-memory/params/create-string-search-filter-parameters.js +151 -0
- package/built/api/translation-memory/params/create-string-search-filter-parameters.js.map +1 -0
- package/built/api/translation-memory/params/create-string-search-options.d.ts +7 -0
- package/built/api/translation-memory/params/create-string-search-options.js +3 -0
- package/built/api/translation-memory/params/create-string-search-options.js.map +1 -0
- package/built/api/translation-memory/params/create-tm-parameters.d.ts +8 -0
- package/built/api/translation-memory/params/create-tm-parameters.js +24 -0
- package/built/api/translation-memory/params/create-tm-parameters.js.map +1 -0
- package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.d.ts +4 -0
- package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js +9 -0
- package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js.map +1 -0
- package/built/api/translation-memory/params/extended-export-metadata-type.d.ts +4 -0
- package/built/api/translation-memory/params/extended-export-metadata-type.js +9 -0
- package/built/api/translation-memory/params/extended-export-metadata-type.js.map +1 -0
- package/built/api/translation-memory/params/import-tmx-file-parameters.d.ts +17 -0
- package/built/api/translation-memory/params/import-tmx-file-parameters.js +80 -0
- package/built/api/translation-memory/params/import-tmx-file-parameters.js.map +1 -0
- package/built/api/translation-memory/params/keyword-search-type.d.ts +5 -0
- package/built/api/translation-memory/params/keyword-search-type.js +10 -0
- package/built/api/translation-memory/params/keyword-search-type.js.map +1 -0
- package/built/api/translation-memory/params/leverage-type.d.ts +5 -0
- package/built/api/translation-memory/params/leverage-type.js +10 -0
- package/built/api/translation-memory/params/leverage-type.js.map +1 -0
- package/built/api/translation-memory/params/search-keyword.d.ts +8 -0
- package/built/api/translation-memory/params/search-keyword.js +3 -0
- package/built/api/translation-memory/params/search-keyword.js.map +1 -0
- package/built/api/translation-memory/params/source-type.d.ts +7 -0
- package/built/api/translation-memory/params/source-type.js +12 -0
- package/built/api/translation-memory/params/source-type.js.map +1 -0
- package/built/api/translation-memory/params/string-search-tags.d.ts +6 -0
- package/built/api/translation-memory/params/string-search-tags.js +3 -0
- package/built/api/translation-memory/params/string-search-tags.js.map +1 -0
- package/built/api/translation-memory/params/translation-quality-type.d.ts +5 -0
- package/built/api/translation-memory/params/translation-quality-type.js +10 -0
- package/built/api/translation-memory/params/translation-quality-type.js.map +1 -0
- package/built/api/translation-memory/params/tu-translation-quality-type.d.ts +6 -0
- package/built/api/translation-memory/params/tu-translation-quality-type.js +11 -0
- package/built/api/translation-memory/params/tu-translation-quality-type.js.map +1 -0
- package/built/api/translation-memory/params/update-tm-parameters.d.ts +6 -0
- package/built/api/translation-memory/params/update-tm-parameters.js +20 -0
- package/built/api/translation-memory/params/update-tm-parameters.js.map +1 -0
- package/built/index.d.ts +27 -0
- package/built/index.js +27 -0
- package/built/index.js.map +1 -1
- package/built/package.json +1 -1
- package/built/test/integration/translation-memory.spec.d.ts +1 -0
- package/built/test/integration/translation-memory.spec.js +138 -0
- package/built/test/integration/translation-memory.spec.js.map +1 -0
- package/built/test/translation-memory.spec.d.ts +1 -0
- package/built/test/translation-memory.spec.js +712 -0
- package/built/test/translation-memory.spec.js.map +1 -0
- package/index.ts +27 -0
- package/package.json +1 -1
- package/test/data/sample.tmx +12 -0
- package/test/integration/translation-memory.spec.ts +182 -0
- package/test/translation-memory.spec.ts +868 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { BaseParameters } from "../../parameters/index";
|
|
2
|
+
import { SearchKeyword } from "./search-keyword";
|
|
3
|
+
import { LeverageType } from "./leverage-type";
|
|
4
|
+
import { SourceType } from "./source-type";
|
|
5
|
+
import { TuTranslationQualityType } from "./tu-translation-quality-type";
|
|
6
|
+
import { StringSearchTags } from "./string-search-tags";
|
|
7
|
+
import { CreateStringSearchOptions } from "./create-string-search-options";
|
|
8
|
+
|
|
9
|
+
// Nested GraphQL input shapes in this domain (SearchKeyword, StringSearchTags,
|
|
10
|
+
// CreateStringSearchOptions) use optional (`field?:`) rather than nullable (`field: T | null`)
|
|
11
|
+
// fields - unlike this domain's response DTOs, which use `field: T | null` throughout. This is
|
|
12
|
+
// deliberate, not an inconsistency: omitting an input field from the GraphQL variables payload
|
|
13
|
+
// (what an optional TS field lets you do - JSON.stringify drops `undefined` keys) means "don't
|
|
14
|
+
// filter on this" to the server, which is a different request than explicitly sending `null`.
|
|
15
|
+
export class CreateStringSearchFilterParameters extends BaseParameters {
|
|
16
|
+
setTmUids(tmUids: Array<string>): CreateStringSearchFilterParameters {
|
|
17
|
+
this.set("tmUids", tmUids);
|
|
18
|
+
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
setSourceLocaleIds(sourceLocaleIds: Array<string>): CreateStringSearchFilterParameters {
|
|
23
|
+
this.set("sourceLocaleIds", sourceLocaleIds);
|
|
24
|
+
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
setTranslationLocaleIds(
|
|
29
|
+
translationLocaleIds: Array<string>
|
|
30
|
+
): CreateStringSearchFilterParameters {
|
|
31
|
+
this.set("translationLocaleIds", translationLocaleIds);
|
|
32
|
+
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
setKeyword(keyword: SearchKeyword): CreateStringSearchFilterParameters {
|
|
37
|
+
this.set("keyword", keyword);
|
|
38
|
+
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
setSourceKeyword(sourceKeyword: SearchKeyword): CreateStringSearchFilterParameters {
|
|
43
|
+
this.set("sourceKeyword", sourceKeyword);
|
|
44
|
+
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
setTranslationKeyword(translationKeyword: SearchKeyword): CreateStringSearchFilterParameters {
|
|
49
|
+
this.set("translationKeyword", translationKeyword);
|
|
50
|
+
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
setLeverageType(leverageType: LeverageType): CreateStringSearchFilterParameters {
|
|
55
|
+
this.set("leverageType", leverageType);
|
|
56
|
+
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
setHashcodes(hashcodes: Array<string>): CreateStringSearchFilterParameters {
|
|
61
|
+
this.set("hashcodes", hashcodes);
|
|
62
|
+
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
setSmtHashcodes(smtHashcodes: Array<string>): CreateStringSearchFilterParameters {
|
|
67
|
+
this.set("smtHashcodes", smtHashcodes);
|
|
68
|
+
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
setTranslatorUids(translatorUids: Array<string>): CreateStringSearchFilterParameters {
|
|
73
|
+
this.set("translatorUids", translatorUids);
|
|
74
|
+
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setTranslationDateRange(start?: Date, end?: Date): CreateStringSearchFilterParameters {
|
|
79
|
+
this.set("translationDateRangeStart", start);
|
|
80
|
+
this.set("translationDateRangeEnd", end);
|
|
81
|
+
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
setEditorUids(editorUids: Array<string>): CreateStringSearchFilterParameters {
|
|
86
|
+
this.set("editorUids", editorUids);
|
|
87
|
+
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
setEditDateRange(start?: Date, end?: Date): CreateStringSearchFilterParameters {
|
|
92
|
+
this.set("editDateRangeStart", start);
|
|
93
|
+
this.set("editDateRangeEnd", end);
|
|
94
|
+
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
setReviewerUids(reviewerUids: Array<string>): CreateStringSearchFilterParameters {
|
|
99
|
+
this.set("reviewerUids", reviewerUids);
|
|
100
|
+
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
setReviewDateRange(start?: Date, end?: Date): CreateStringSearchFilterParameters {
|
|
105
|
+
this.set("reviewDateRangeStart", start);
|
|
106
|
+
this.set("reviewDateRangeEnd", end);
|
|
107
|
+
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
setAuthorizerUids(authorizerUids: Array<string>): CreateStringSearchFilterParameters {
|
|
112
|
+
this.set("authorizerUids", authorizerUids);
|
|
113
|
+
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
setAuthorizationDateRange(start?: Date, end?: Date): CreateStringSearchFilterParameters {
|
|
118
|
+
this.set("authorizationDateRangeStart", start);
|
|
119
|
+
this.set("authorizationDateRangeEnd", end);
|
|
120
|
+
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
setIngestedDateRange(start?: Date, end?: Date): CreateStringSearchFilterParameters {
|
|
125
|
+
this.set("ingestedDateRangeStart", start);
|
|
126
|
+
this.set("ingestedDateRangeEnd", end);
|
|
127
|
+
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
setVariants(variants: Array<string>): CreateStringSearchFilterParameters {
|
|
132
|
+
this.set("variants", variants);
|
|
133
|
+
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
setProjectUids(projectUids: Array<string>): CreateStringSearchFilterParameters {
|
|
138
|
+
this.set("projectUids", projectUids);
|
|
139
|
+
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
setExternalStep(externalStep: boolean): CreateStringSearchFilterParameters {
|
|
144
|
+
this.set("externalStep", externalStep);
|
|
145
|
+
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
setUrls(urls: Array<string>): CreateStringSearchFilterParameters {
|
|
150
|
+
this.set("urls", urls);
|
|
151
|
+
|
|
152
|
+
return this;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
setFileNames(fileNames: Array<string>): CreateStringSearchFilterParameters {
|
|
156
|
+
this.set("fileNames", fileNames);
|
|
157
|
+
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
setKeys(keys: Array<string>): CreateStringSearchFilterParameters {
|
|
162
|
+
this.set("keys", keys);
|
|
163
|
+
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
setDomains(domains: Array<string>): CreateStringSearchFilterParameters {
|
|
168
|
+
this.set("domains", domains);
|
|
169
|
+
|
|
170
|
+
return this;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
setTmxFileNames(tmxFileNames: Array<string>): CreateStringSearchFilterParameters {
|
|
174
|
+
this.set("tmxFileNames", tmxFileNames);
|
|
175
|
+
|
|
176
|
+
return this;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
setSources(sources: Array<SourceType>): CreateStringSearchFilterParameters {
|
|
180
|
+
this.set("sources", sources);
|
|
181
|
+
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
setTranslationQualities(
|
|
186
|
+
translationQualities: Array<TuTranslationQualityType>
|
|
187
|
+
): CreateStringSearchFilterParameters {
|
|
188
|
+
this.set("translationQualities", translationQualities);
|
|
189
|
+
|
|
190
|
+
return this;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
setFirstTranslatorUids(firstTranslatorUids: Array<string>): CreateStringSearchFilterParameters {
|
|
194
|
+
this.set("firstTranslatorUids", firstTranslatorUids);
|
|
195
|
+
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// After/Before (rather than this file's usual Start/End) matches the GraphQL schema's
|
|
200
|
+
// own field names for these two filters.
|
|
201
|
+
setLastTranslatedRange(after?: Date, before?: Date): CreateStringSearchFilterParameters {
|
|
202
|
+
this.set("lastTranslatedAfter", after);
|
|
203
|
+
this.set("lastTranslatedBefore", before);
|
|
204
|
+
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
setFirstTranslatedRange(after?: Date, before?: Date): CreateStringSearchFilterParameters {
|
|
209
|
+
this.set("firstTranslatedAfter", after);
|
|
210
|
+
this.set("firstTranslatedBefore", before);
|
|
211
|
+
|
|
212
|
+
return this;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
setTags(tags: StringSearchTags): CreateStringSearchFilterParameters {
|
|
216
|
+
this.set("tags", tags);
|
|
217
|
+
|
|
218
|
+
return this;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
setOfflineReportUids(offlineReportUids: Array<string>): CreateStringSearchFilterParameters {
|
|
222
|
+
this.set("offlineReportUids", offlineReportUids);
|
|
223
|
+
|
|
224
|
+
return this;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
setSearchOptions(searchOptions: CreateStringSearchOptions): CreateStringSearchFilterParameters {
|
|
228
|
+
this.set("searchOptions", searchOptions);
|
|
229
|
+
|
|
230
|
+
return this;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseParameters } from "../../parameters/index";
|
|
2
|
+
import { TranslationQualityType } from "./translation-quality-type";
|
|
3
|
+
|
|
4
|
+
export class CreateTmParameters extends BaseParameters {
|
|
5
|
+
setName(name: string): CreateTmParameters {
|
|
6
|
+
this.set("name", name);
|
|
7
|
+
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
setDescription(description: string | null): CreateTmParameters {
|
|
12
|
+
this.set("description", description);
|
|
13
|
+
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
setSourceLocaleId(sourceLocaleId: string): CreateTmParameters {
|
|
18
|
+
this.set("sourceLocaleId", sourceLocaleId);
|
|
19
|
+
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
setTranslationQuality(translationQuality: TranslationQualityType): CreateTmParameters {
|
|
24
|
+
this.set("translationQuality", translationQuality);
|
|
25
|
+
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as fs from "fs";
|
|
2
|
+
import string2fileStream from "string-to-file-stream";
|
|
3
|
+
import { BaseParameters } from "../../parameters/index";
|
|
4
|
+
import { EscapeSmpUnicodeParserDirective } from "./escape-smp-unicode-parser-directive";
|
|
5
|
+
|
|
6
|
+
export class ImportTmxFileParameters extends BaseParameters {
|
|
7
|
+
setFileFromLocalFilePath(filePath: string): ImportTmxFileParameters {
|
|
8
|
+
this.set("file", fs.createReadStream(
|
|
9
|
+
fs.realpathSync(filePath)
|
|
10
|
+
));
|
|
11
|
+
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
setFileContent(fileContent: string): ImportTmxFileParameters {
|
|
16
|
+
this.set("file", string2fileStream(fileContent));
|
|
17
|
+
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
setFileContentFromBuffer(fileContent: Buffer): ImportTmxFileParameters {
|
|
22
|
+
this.set("file", fileContent);
|
|
23
|
+
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
setFileUri(fileUri: string): ImportTmxFileParameters {
|
|
28
|
+
this.set("fileUri", fileUri);
|
|
29
|
+
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setTmUid(tmUid: string): ImportTmxFileParameters {
|
|
34
|
+
this.set("tmUid", tmUid);
|
|
35
|
+
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
setDescription(description: string): ImportTmxFileParameters {
|
|
40
|
+
this.set("description", description);
|
|
41
|
+
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
setTranslatorNameLocation(translatorNameLocation: string): ImportTmxFileParameters {
|
|
46
|
+
this.set("translatorNameLocation", translatorNameLocation);
|
|
47
|
+
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
setTranslationDateLocation(translationDateLocation: string): ImportTmxFileParameters {
|
|
52
|
+
this.set("translationDateLocation", translationDateLocation);
|
|
53
|
+
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
setVariantLocation(variantLocation: string): ImportTmxFileParameters {
|
|
58
|
+
this.set("variantLocation", variantLocation);
|
|
59
|
+
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
setFileUriLocation(fileUriLocation: string): ImportTmxFileParameters {
|
|
64
|
+
this.set("fileUriLocation", fileUriLocation);
|
|
65
|
+
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
setEscapeSmpUnicodeParserDirective(
|
|
70
|
+
escapeSmpUnicodeParserDirective: EscapeSmpUnicodeParserDirective
|
|
71
|
+
): ImportTmxFileParameters {
|
|
72
|
+
this.set("escapeSmpUnicodeParserDirective", escapeSmpUnicodeParserDirective);
|
|
73
|
+
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseParameters } from "../../parameters/index";
|
|
2
|
+
|
|
3
|
+
export class UpdateTmParameters extends BaseParameters {
|
|
4
|
+
setTmUid(tmUid: string): UpdateTmParameters {
|
|
5
|
+
this.set("tmUid", tmUid);
|
|
6
|
+
|
|
7
|
+
return this;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
setName(name: string): UpdateTmParameters {
|
|
11
|
+
this.set("name", name);
|
|
12
|
+
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// null explicitly clears an existing description, per the real UpdateTm input
|
|
17
|
+
// (description: String, nullable - distinct from simply not calling this setter at all).
|
|
18
|
+
setDescription(description: string | null): UpdateTmParameters {
|
|
19
|
+
this.set("description", description);
|
|
20
|
+
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AsyncActionStatus } from "./async-action-status";
|
|
2
|
+
interface AsyncActionResultDto {
|
|
3
|
+
actionUid: string;
|
|
4
|
+
totalCount: number;
|
|
5
|
+
processedCount: number;
|
|
6
|
+
errorCount: number;
|
|
7
|
+
executionComplete: boolean;
|
|
8
|
+
actionStatus: AsyncActionStatus;
|
|
9
|
+
}
|
|
10
|
+
export { AsyncActionResultDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-action-result-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/async-action-result-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsyncActionStatus = void 0;
|
|
4
|
+
var AsyncActionStatus;
|
|
5
|
+
(function (AsyncActionStatus) {
|
|
6
|
+
AsyncActionStatus["QUEUEING"] = "QUEUEING";
|
|
7
|
+
AsyncActionStatus["EXECUTING"] = "EXECUTING";
|
|
8
|
+
AsyncActionStatus["SUCCESS"] = "SUCCESS";
|
|
9
|
+
AsyncActionStatus["FAILURE"] = "FAILURE";
|
|
10
|
+
AsyncActionStatus["CANCELED"] = "CANCELED";
|
|
11
|
+
AsyncActionStatus["STOPPED"] = "STOPPED";
|
|
12
|
+
})(AsyncActionStatus = exports.AsyncActionStatus || (exports.AsyncActionStatus = {}));
|
|
13
|
+
//# sourceMappingURL=async-action-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-action-status.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/async-action-status.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;AACvB,CAAC,EAPW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAO5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DuplicateStringDto } from "./duplicate-string-dto";
|
|
2
|
+
interface CreateStringSearchResultDto {
|
|
3
|
+
searchUid: string;
|
|
4
|
+
stringCount: number | null;
|
|
5
|
+
wordCount: number | null;
|
|
6
|
+
duplicateStrings: Array<DuplicateStringDto> | null;
|
|
7
|
+
duplicateSearch: boolean | null;
|
|
8
|
+
actionUid: string | null;
|
|
9
|
+
offlineReportUid: string | null;
|
|
10
|
+
}
|
|
11
|
+
export { CreateStringSearchResultDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-string-search-result-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/create-string-search-result-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duplicate-string-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/duplicate-string-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-summary-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/locale-summary-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings-export-async-action-result-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/strings-export-async-action-result-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UserDto } from "./user-dto";
|
|
2
|
+
import { TmLocaleDto } from "./tm-locale-dto";
|
|
3
|
+
import { LocaleSummaryDto } from "./locale-summary-dto";
|
|
4
|
+
import { TranslationQualityType } from "../params/translation-quality-type";
|
|
5
|
+
interface TmDto {
|
|
6
|
+
tmUid: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
sourceLocaleId: string;
|
|
10
|
+
sourceLocale: TmLocaleDto;
|
|
11
|
+
creator: UserDto;
|
|
12
|
+
created: Date;
|
|
13
|
+
lastModifier: UserDto;
|
|
14
|
+
lastModified: Date;
|
|
15
|
+
localeSummary: Array<LocaleSummaryDto> | null;
|
|
16
|
+
translationQuality: TranslationQualityType;
|
|
17
|
+
managedWordsEnabled: boolean;
|
|
18
|
+
}
|
|
19
|
+
export { TmDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tm-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/tm-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tm-locale-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/tm-locale-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TmxParsingErrorDto } from "./tmx-parsing-error-dto";
|
|
2
|
+
interface TmxImportSummaryDto {
|
|
3
|
+
message: string | null;
|
|
4
|
+
wordCount: number;
|
|
5
|
+
stringCount: number;
|
|
6
|
+
translationMemoryImportErrors: Array<TmxParsingErrorDto> | null;
|
|
7
|
+
parsingErrors: Array<TmxParsingErrorDto> | null;
|
|
8
|
+
jobUid: string;
|
|
9
|
+
tmxUid: string;
|
|
10
|
+
}
|
|
11
|
+
export { TmxImportSummaryDto };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tmx-import-summary-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/tmx-import-summary-dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tmx-parsing-error-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/tmx-parsing-error-dto.ts"],"names":[],"mappings":""}
|