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.
Files changed (124) hide show
  1. package/.env.example +1 -1
  2. package/api/translation-memory/dto/async-action-result-dto.ts +12 -0
  3. package/api/translation-memory/dto/async-action-status.ts +8 -0
  4. package/api/translation-memory/dto/create-string-search-result-dto.ts +16 -0
  5. package/api/translation-memory/dto/duplicate-string-dto.ts +9 -0
  6. package/api/translation-memory/dto/locale-summary-dto.ts +10 -0
  7. package/api/translation-memory/dto/strings-export-async-action-result-dto.ts +8 -0
  8. package/api/translation-memory/dto/tm-dto.ts +23 -0
  9. package/api/translation-memory/dto/tm-locale-dto.ts +8 -0
  10. package/api/translation-memory/dto/tmx-import-summary-dto.ts +16 -0
  11. package/api/translation-memory/dto/tmx-parsing-error-dto.ts +7 -0
  12. package/api/translation-memory/dto/user-dto.ts +6 -0
  13. package/api/translation-memory/index.ts +368 -0
  14. package/api/translation-memory/params/bulk-export-tm-strings-parameters.ts +30 -0
  15. package/api/translation-memory/params/create-string-search-filter-parameters.ts +232 -0
  16. package/api/translation-memory/params/create-string-search-options.ts +8 -0
  17. package/api/translation-memory/params/create-tm-parameters.ts +28 -0
  18. package/api/translation-memory/params/escape-smp-unicode-parser-directive.ts +6 -0
  19. package/api/translation-memory/params/extended-export-metadata-type.ts +4 -0
  20. package/api/translation-memory/params/import-tmx-file-parameters.ts +76 -0
  21. package/api/translation-memory/params/keyword-search-type.ts +5 -0
  22. package/api/translation-memory/params/leverage-type.ts +5 -0
  23. package/api/translation-memory/params/search-keyword.ts +10 -0
  24. package/api/translation-memory/params/source-type.ts +7 -0
  25. package/api/translation-memory/params/string-search-tags.ts +7 -0
  26. package/api/translation-memory/params/translation-quality-type.ts +5 -0
  27. package/api/translation-memory/params/tu-translation-quality-type.ts +6 -0
  28. package/api/translation-memory/params/update-tm-parameters.ts +23 -0
  29. package/built/api/translation-memory/dto/async-action-result-dto.d.ts +10 -0
  30. package/built/api/translation-memory/dto/async-action-result-dto.js +3 -0
  31. package/built/api/translation-memory/dto/async-action-result-dto.js.map +1 -0
  32. package/built/api/translation-memory/dto/async-action-status.d.ts +8 -0
  33. package/built/api/translation-memory/dto/async-action-status.js +13 -0
  34. package/built/api/translation-memory/dto/async-action-status.js.map +1 -0
  35. package/built/api/translation-memory/dto/create-string-search-result-dto.d.ts +11 -0
  36. package/built/api/translation-memory/dto/create-string-search-result-dto.js +3 -0
  37. package/built/api/translation-memory/dto/create-string-search-result-dto.js.map +1 -0
  38. package/built/api/translation-memory/dto/duplicate-string-dto.d.ts +8 -0
  39. package/built/api/translation-memory/dto/duplicate-string-dto.js +3 -0
  40. package/built/api/translation-memory/dto/duplicate-string-dto.js.map +1 -0
  41. package/built/api/translation-memory/dto/locale-summary-dto.d.ts +8 -0
  42. package/built/api/translation-memory/dto/locale-summary-dto.js +3 -0
  43. package/built/api/translation-memory/dto/locale-summary-dto.js.map +1 -0
  44. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.d.ts +6 -0
  45. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js +3 -0
  46. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js.map +1 -0
  47. package/built/api/translation-memory/dto/tm-dto.d.ts +19 -0
  48. package/built/api/translation-memory/dto/tm-dto.js +3 -0
  49. package/built/api/translation-memory/dto/tm-dto.js.map +1 -0
  50. package/built/api/translation-memory/dto/tm-locale-dto.d.ts +7 -0
  51. package/built/api/translation-memory/dto/tm-locale-dto.js +3 -0
  52. package/built/api/translation-memory/dto/tm-locale-dto.js.map +1 -0
  53. package/built/api/translation-memory/dto/tmx-import-summary-dto.d.ts +11 -0
  54. package/built/api/translation-memory/dto/tmx-import-summary-dto.js +3 -0
  55. package/built/api/translation-memory/dto/tmx-import-summary-dto.js.map +1 -0
  56. package/built/api/translation-memory/dto/tmx-parsing-error-dto.d.ts +6 -0
  57. package/built/api/translation-memory/dto/tmx-parsing-error-dto.js +3 -0
  58. package/built/api/translation-memory/dto/tmx-parsing-error-dto.js.map +1 -0
  59. package/built/api/translation-memory/dto/user-dto.d.ts +5 -0
  60. package/built/api/translation-memory/dto/user-dto.js +3 -0
  61. package/built/api/translation-memory/dto/user-dto.js.map +1 -0
  62. package/built/api/translation-memory/index.d.ts +27 -0
  63. package/built/api/translation-memory/index.js +250 -0
  64. package/built/api/translation-memory/index.js.map +1 -0
  65. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.d.ts +8 -0
  66. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js +24 -0
  67. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js.map +1 -0
  68. package/built/api/translation-memory/params/create-string-search-filter-parameters.d.ts +43 -0
  69. package/built/api/translation-memory/params/create-string-search-filter-parameters.js +151 -0
  70. package/built/api/translation-memory/params/create-string-search-filter-parameters.js.map +1 -0
  71. package/built/api/translation-memory/params/create-string-search-options.d.ts +7 -0
  72. package/built/api/translation-memory/params/create-string-search-options.js +3 -0
  73. package/built/api/translation-memory/params/create-string-search-options.js.map +1 -0
  74. package/built/api/translation-memory/params/create-tm-parameters.d.ts +8 -0
  75. package/built/api/translation-memory/params/create-tm-parameters.js +24 -0
  76. package/built/api/translation-memory/params/create-tm-parameters.js.map +1 -0
  77. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.d.ts +4 -0
  78. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js +9 -0
  79. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js.map +1 -0
  80. package/built/api/translation-memory/params/extended-export-metadata-type.d.ts +4 -0
  81. package/built/api/translation-memory/params/extended-export-metadata-type.js +9 -0
  82. package/built/api/translation-memory/params/extended-export-metadata-type.js.map +1 -0
  83. package/built/api/translation-memory/params/import-tmx-file-parameters.d.ts +17 -0
  84. package/built/api/translation-memory/params/import-tmx-file-parameters.js +80 -0
  85. package/built/api/translation-memory/params/import-tmx-file-parameters.js.map +1 -0
  86. package/built/api/translation-memory/params/keyword-search-type.d.ts +5 -0
  87. package/built/api/translation-memory/params/keyword-search-type.js +10 -0
  88. package/built/api/translation-memory/params/keyword-search-type.js.map +1 -0
  89. package/built/api/translation-memory/params/leverage-type.d.ts +5 -0
  90. package/built/api/translation-memory/params/leverage-type.js +10 -0
  91. package/built/api/translation-memory/params/leverage-type.js.map +1 -0
  92. package/built/api/translation-memory/params/search-keyword.d.ts +8 -0
  93. package/built/api/translation-memory/params/search-keyword.js +3 -0
  94. package/built/api/translation-memory/params/search-keyword.js.map +1 -0
  95. package/built/api/translation-memory/params/source-type.d.ts +7 -0
  96. package/built/api/translation-memory/params/source-type.js +12 -0
  97. package/built/api/translation-memory/params/source-type.js.map +1 -0
  98. package/built/api/translation-memory/params/string-search-tags.d.ts +6 -0
  99. package/built/api/translation-memory/params/string-search-tags.js +3 -0
  100. package/built/api/translation-memory/params/string-search-tags.js.map +1 -0
  101. package/built/api/translation-memory/params/translation-quality-type.d.ts +5 -0
  102. package/built/api/translation-memory/params/translation-quality-type.js +10 -0
  103. package/built/api/translation-memory/params/translation-quality-type.js.map +1 -0
  104. package/built/api/translation-memory/params/tu-translation-quality-type.d.ts +6 -0
  105. package/built/api/translation-memory/params/tu-translation-quality-type.js +11 -0
  106. package/built/api/translation-memory/params/tu-translation-quality-type.js.map +1 -0
  107. package/built/api/translation-memory/params/update-tm-parameters.d.ts +6 -0
  108. package/built/api/translation-memory/params/update-tm-parameters.js +20 -0
  109. package/built/api/translation-memory/params/update-tm-parameters.js.map +1 -0
  110. package/built/index.d.ts +27 -0
  111. package/built/index.js +27 -0
  112. package/built/index.js.map +1 -1
  113. package/built/package.json +1 -1
  114. package/built/test/integration/translation-memory.spec.d.ts +1 -0
  115. package/built/test/integration/translation-memory.spec.js +138 -0
  116. package/built/test/integration/translation-memory.spec.js.map +1 -0
  117. package/built/test/translation-memory.spec.d.ts +1 -0
  118. package/built/test/translation-memory.spec.js +712 -0
  119. package/built/test/translation-memory.spec.js.map +1 -0
  120. package/index.ts +27 -0
  121. package/package.json +1 -1
  122. package/test/data/sample.tmx +12 -0
  123. package/test/integration/translation-memory.spec.ts +182 -0
  124. 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,8 @@
1
+ interface CreateStringSearchOptions {
2
+ highlightMatches?: boolean;
3
+ searchDuplicates?: boolean;
4
+ translationEqSource?: boolean;
5
+ requestedResultsCount?: number;
6
+ }
7
+
8
+ export { CreateStringSearchOptions };
@@ -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,6 @@
1
+ // Lowercase values are intentional: the REST API's enum literally expects "on"/"off",
2
+ // unlike every other enum in this domain (which are upper-case GraphQL enum values).
3
+ export enum EscapeSmpUnicodeParserDirective {
4
+ ON = "on",
5
+ OFF = "off"
6
+ }
@@ -0,0 +1,4 @@
1
+ export enum ExtendedExportMetadataType {
2
+ FIRST_TRANSLATED_STRINGS = "FIRST_TRANSLATED_STRINGS",
3
+ LAST_TRANSLATED_STRINGS = "LAST_TRANSLATED_STRINGS"
4
+ }
@@ -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,5 @@
1
+ export enum KeywordSearchType {
2
+ BASIC = "BASIC",
3
+ EXACT_MATCH = "EXACT_MATCH",
4
+ REGEX = "REGEX"
5
+ }
@@ -0,0 +1,5 @@
1
+ export enum LeverageType {
2
+ PUBLISHED = "PUBLISHED",
3
+ PRE_PUBLISHED = "PRE_PUBLISHED",
4
+ TRANSLATED_ONLY = "TRANSLATED_ONLY"
5
+ }
@@ -0,0 +1,10 @@
1
+ import { KeywordSearchType } from "./keyword-search-type";
2
+
3
+ interface SearchKeyword {
4
+ searchText: string;
5
+ caseSensitive?: boolean;
6
+ entireStringMatch?: boolean;
7
+ searchType?: KeywordSearchType;
8
+ }
9
+
10
+ export { SearchKeyword };
@@ -0,0 +1,7 @@
1
+ export enum SourceType {
2
+ SMARTLING = "SMARTLING",
3
+ TMX = "TMX",
4
+ DELETE_API = "DELETE_API",
5
+ MOVE_API = "MOVE_API",
6
+ EDIT_API = "EDIT_API"
7
+ }
@@ -0,0 +1,7 @@
1
+ interface StringSearchTags {
2
+ tags?: Array<string>;
3
+ matchAllTags?: boolean;
4
+ noTags?: boolean;
5
+ }
6
+
7
+ export { StringSearchTags };
@@ -0,0 +1,5 @@
1
+ export enum TranslationQualityType {
2
+ TRANSLATION = "TRANSLATION",
3
+ TRANSCREATION = "TRANSCREATION",
4
+ MACHINE_GENERATED = "MACHINE_GENERATED"
5
+ }
@@ -0,0 +1,6 @@
1
+ export enum TuTranslationQualityType {
2
+ HUMAN = "HUMAN",
3
+ TRANSCREATION = "TRANSCREATION",
4
+ AIT = "AIT",
5
+ MT = "MT"
6
+ }
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=async-action-result-dto.js.map
@@ -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,8 @@
1
+ export declare enum AsyncActionStatus {
2
+ QUEUEING = "QUEUEING",
3
+ EXECUTING = "EXECUTING",
4
+ SUCCESS = "SUCCESS",
5
+ FAILURE = "FAILURE",
6
+ CANCELED = "CANCELED",
7
+ STOPPED = "STOPPED"
8
+ }
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=create-string-search-result-dto.js.map
@@ -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,8 @@
1
+ interface DuplicateStringDto {
2
+ duplicateKey: string;
3
+ count: number;
4
+ srcText: string;
5
+ srcLocale: string;
6
+ translationLocale: string;
7
+ }
8
+ export { DuplicateStringDto };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=duplicate-string-dto.js.map
@@ -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,8 @@
1
+ import { TmLocaleDto } from "./tm-locale-dto";
2
+ interface LocaleSummaryDto {
3
+ translationLocaleId: string;
4
+ translationLocale: TmLocaleDto;
5
+ stringCount: number;
6
+ wordCount: number;
7
+ }
8
+ export { LocaleSummaryDto };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=locale-summary-dto.js.map
@@ -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,6 @@
1
+ import { AsyncActionResultDto } from "./async-action-result-dto";
2
+ interface StringsExportAsyncActionResultDto extends AsyncActionResultDto {
3
+ tmxDownloadKey: string | null;
4
+ expired: boolean;
5
+ }
6
+ export { StringsExportAsyncActionResultDto };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=strings-export-async-action-result-dto.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tm-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tm-dto.js","sourceRoot":"","sources":["../../../../api/translation-memory/dto/tm-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ interface TmLocaleDto {
2
+ localeId: string;
3
+ localeDescription: string;
4
+ rtlLanguage: boolean | null;
5
+ wordSpacing: boolean | null;
6
+ }
7
+ export { TmLocaleDto };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tm-locale-dto.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tmx-import-summary-dto.js.map
@@ -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,6 @@
1
+ interface TmxParsingErrorDto {
2
+ messages: Array<string>;
3
+ line: number;
4
+ column: number;
5
+ }
6
+ export { TmxParsingErrorDto };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tmx-parsing-error-dto.js.map
@@ -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":""}
@@ -0,0 +1,5 @@
1
+ interface UserDto {
2
+ userUid: string;
3
+ name: string;
4
+ }
5
+ export { UserDto };