smartling-api-sdk-nodejs 3.3.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/.env.example +1 -1
  2. package/api/glossaries/params/create-glossary-parameters.ts +0 -6
  3. package/api/translation-memory/dto/async-action-result-dto.ts +12 -0
  4. package/api/translation-memory/dto/async-action-status.ts +8 -0
  5. package/api/translation-memory/dto/create-string-search-result-dto.ts +16 -0
  6. package/api/translation-memory/dto/duplicate-string-dto.ts +9 -0
  7. package/api/translation-memory/dto/locale-summary-dto.ts +10 -0
  8. package/api/translation-memory/dto/strings-export-async-action-result-dto.ts +8 -0
  9. package/api/translation-memory/dto/tm-dto.ts +23 -0
  10. package/api/translation-memory/dto/tm-locale-dto.ts +8 -0
  11. package/api/translation-memory/dto/tmx-import-summary-dto.ts +16 -0
  12. package/api/translation-memory/dto/tmx-parsing-error-dto.ts +7 -0
  13. package/api/translation-memory/dto/user-dto.ts +6 -0
  14. package/api/translation-memory/index.ts +368 -0
  15. package/api/translation-memory/params/bulk-export-tm-strings-parameters.ts +30 -0
  16. package/api/translation-memory/params/create-string-search-filter-parameters.ts +232 -0
  17. package/api/translation-memory/params/create-string-search-options.ts +8 -0
  18. package/api/translation-memory/params/create-tm-parameters.ts +28 -0
  19. package/api/translation-memory/params/escape-smp-unicode-parser-directive.ts +6 -0
  20. package/api/translation-memory/params/extended-export-metadata-type.ts +4 -0
  21. package/api/translation-memory/params/import-tmx-file-parameters.ts +76 -0
  22. package/api/translation-memory/params/keyword-search-type.ts +5 -0
  23. package/api/translation-memory/params/leverage-type.ts +5 -0
  24. package/api/translation-memory/params/search-keyword.ts +10 -0
  25. package/api/translation-memory/params/source-type.ts +7 -0
  26. package/api/translation-memory/params/string-search-tags.ts +7 -0
  27. package/api/translation-memory/params/translation-quality-type.ts +5 -0
  28. package/api/translation-memory/params/tu-translation-quality-type.ts +6 -0
  29. package/api/translation-memory/params/update-tm-parameters.ts +23 -0
  30. package/built/api/glossaries/params/create-glossary-parameters.d.ts +0 -1
  31. package/built/api/glossaries/params/create-glossary-parameters.js +0 -4
  32. package/built/api/glossaries/params/create-glossary-parameters.js.map +1 -1
  33. package/built/api/translation-memory/dto/async-action-result-dto.d.ts +10 -0
  34. package/built/api/translation-memory/dto/async-action-result-dto.js +3 -0
  35. package/built/api/translation-memory/dto/async-action-result-dto.js.map +1 -0
  36. package/built/api/translation-memory/dto/async-action-status.d.ts +8 -0
  37. package/built/api/translation-memory/dto/async-action-status.js +13 -0
  38. package/built/api/translation-memory/dto/async-action-status.js.map +1 -0
  39. package/built/api/translation-memory/dto/create-string-search-result-dto.d.ts +11 -0
  40. package/built/api/translation-memory/dto/create-string-search-result-dto.js +3 -0
  41. package/built/api/translation-memory/dto/create-string-search-result-dto.js.map +1 -0
  42. package/built/api/translation-memory/dto/duplicate-string-dto.d.ts +8 -0
  43. package/built/api/translation-memory/dto/duplicate-string-dto.js +3 -0
  44. package/built/api/translation-memory/dto/duplicate-string-dto.js.map +1 -0
  45. package/built/api/translation-memory/dto/locale-summary-dto.d.ts +8 -0
  46. package/built/api/translation-memory/dto/locale-summary-dto.js +3 -0
  47. package/built/api/translation-memory/dto/locale-summary-dto.js.map +1 -0
  48. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.d.ts +6 -0
  49. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js +3 -0
  50. package/built/api/translation-memory/dto/strings-export-async-action-result-dto.js.map +1 -0
  51. package/built/api/translation-memory/dto/tm-dto.d.ts +19 -0
  52. package/built/api/translation-memory/dto/tm-dto.js +3 -0
  53. package/built/api/translation-memory/dto/tm-dto.js.map +1 -0
  54. package/built/api/translation-memory/dto/tm-locale-dto.d.ts +7 -0
  55. package/built/api/translation-memory/dto/tm-locale-dto.js +3 -0
  56. package/built/api/translation-memory/dto/tm-locale-dto.js.map +1 -0
  57. package/built/api/translation-memory/dto/tmx-import-summary-dto.d.ts +11 -0
  58. package/built/api/translation-memory/dto/tmx-import-summary-dto.js +3 -0
  59. package/built/api/translation-memory/dto/tmx-import-summary-dto.js.map +1 -0
  60. package/built/api/translation-memory/dto/tmx-parsing-error-dto.d.ts +6 -0
  61. package/built/api/translation-memory/dto/tmx-parsing-error-dto.js +3 -0
  62. package/built/api/translation-memory/dto/tmx-parsing-error-dto.js.map +1 -0
  63. package/built/api/translation-memory/dto/user-dto.d.ts +5 -0
  64. package/built/api/translation-memory/dto/user-dto.js +3 -0
  65. package/built/api/translation-memory/dto/user-dto.js.map +1 -0
  66. package/built/api/translation-memory/index.d.ts +27 -0
  67. package/built/api/translation-memory/index.js +250 -0
  68. package/built/api/translation-memory/index.js.map +1 -0
  69. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.d.ts +8 -0
  70. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js +24 -0
  71. package/built/api/translation-memory/params/bulk-export-tm-strings-parameters.js.map +1 -0
  72. package/built/api/translation-memory/params/create-string-search-filter-parameters.d.ts +43 -0
  73. package/built/api/translation-memory/params/create-string-search-filter-parameters.js +151 -0
  74. package/built/api/translation-memory/params/create-string-search-filter-parameters.js.map +1 -0
  75. package/built/api/translation-memory/params/create-string-search-options.d.ts +7 -0
  76. package/built/api/translation-memory/params/create-string-search-options.js +3 -0
  77. package/built/api/translation-memory/params/create-string-search-options.js.map +1 -0
  78. package/built/api/translation-memory/params/create-tm-parameters.d.ts +8 -0
  79. package/built/api/translation-memory/params/create-tm-parameters.js +24 -0
  80. package/built/api/translation-memory/params/create-tm-parameters.js.map +1 -0
  81. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.d.ts +4 -0
  82. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js +9 -0
  83. package/built/api/translation-memory/params/escape-smp-unicode-parser-directive.js.map +1 -0
  84. package/built/api/translation-memory/params/extended-export-metadata-type.d.ts +4 -0
  85. package/built/api/translation-memory/params/extended-export-metadata-type.js +9 -0
  86. package/built/api/translation-memory/params/extended-export-metadata-type.js.map +1 -0
  87. package/built/api/translation-memory/params/import-tmx-file-parameters.d.ts +17 -0
  88. package/built/api/translation-memory/params/import-tmx-file-parameters.js +80 -0
  89. package/built/api/translation-memory/params/import-tmx-file-parameters.js.map +1 -0
  90. package/built/api/translation-memory/params/keyword-search-type.d.ts +5 -0
  91. package/built/api/translation-memory/params/keyword-search-type.js +10 -0
  92. package/built/api/translation-memory/params/keyword-search-type.js.map +1 -0
  93. package/built/api/translation-memory/params/leverage-type.d.ts +5 -0
  94. package/built/api/translation-memory/params/leverage-type.js +10 -0
  95. package/built/api/translation-memory/params/leverage-type.js.map +1 -0
  96. package/built/api/translation-memory/params/search-keyword.d.ts +8 -0
  97. package/built/api/translation-memory/params/search-keyword.js +3 -0
  98. package/built/api/translation-memory/params/search-keyword.js.map +1 -0
  99. package/built/api/translation-memory/params/source-type.d.ts +7 -0
  100. package/built/api/translation-memory/params/source-type.js +12 -0
  101. package/built/api/translation-memory/params/source-type.js.map +1 -0
  102. package/built/api/translation-memory/params/string-search-tags.d.ts +6 -0
  103. package/built/api/translation-memory/params/string-search-tags.js +3 -0
  104. package/built/api/translation-memory/params/string-search-tags.js.map +1 -0
  105. package/built/api/translation-memory/params/translation-quality-type.d.ts +5 -0
  106. package/built/api/translation-memory/params/translation-quality-type.js +10 -0
  107. package/built/api/translation-memory/params/translation-quality-type.js.map +1 -0
  108. package/built/api/translation-memory/params/tu-translation-quality-type.d.ts +6 -0
  109. package/built/api/translation-memory/params/tu-translation-quality-type.js +11 -0
  110. package/built/api/translation-memory/params/tu-translation-quality-type.js.map +1 -0
  111. package/built/api/translation-memory/params/update-tm-parameters.d.ts +6 -0
  112. package/built/api/translation-memory/params/update-tm-parameters.js +20 -0
  113. package/built/api/translation-memory/params/update-tm-parameters.js.map +1 -0
  114. package/built/index.d.ts +27 -0
  115. package/built/index.js +27 -0
  116. package/built/index.js.map +1 -1
  117. package/built/package.json +1 -1
  118. package/built/test/glossaries.spec.js +2 -4
  119. package/built/test/glossaries.spec.js.map +1 -1
  120. package/built/test/integration/translation-memory.spec.d.ts +1 -0
  121. package/built/test/integration/translation-memory.spec.js +138 -0
  122. package/built/test/integration/translation-memory.spec.js.map +1 -0
  123. package/built/test/translation-memory.spec.d.ts +1 -0
  124. package/built/test/translation-memory.spec.js +712 -0
  125. package/built/test/translation-memory.spec.js.map +1 -0
  126. package/index.ts +27 -0
  127. package/package.json +1 -1
  128. package/test/data/sample.tmx +12 -0
  129. package/test/glossaries.spec.ts +2 -4
  130. package/test/integration/translation-memory.spec.ts +182 -0
  131. package/test/translation-memory.spec.ts +868 -0
@@ -0,0 +1,138 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const dotenv_1 = __importDefault(require("dotenv"));
16
+ const assert_1 = __importDefault(require("assert"));
17
+ const index_1 = require("../../api/builder/index");
18
+ const index_2 = require("../../api/translation-memory/index");
19
+ const import_tmx_file_parameters_1 = require("../../api/translation-memory/params/import-tmx-file-parameters");
20
+ const create_string_search_filter_parameters_1 = require("../../api/translation-memory/params/create-string-search-filter-parameters");
21
+ const bulk_export_tm_strings_parameters_1 = require("../../api/translation-memory/params/bulk-export-tm-strings-parameters");
22
+ const create_tm_parameters_1 = require("../../api/translation-memory/params/create-tm-parameters");
23
+ const update_tm_parameters_1 = require("../../api/translation-memory/params/update-tm-parameters");
24
+ const translation_quality_type_1 = require("../../api/translation-memory/params/translation-quality-type");
25
+ dotenv_1.default.config();
26
+ const baseSmartlingApiUrl = process.env.SMARTLING_API_BASE_URL || "https://api.smartling.com";
27
+ const accountUid = process.env.SMARTLING_ACCOUNT_UID;
28
+ const userId = process.env.SMARTLING_USER_ID;
29
+ const userSecret = process.env.SMARTLING_USER_SECRET;
30
+ const hasCredentials = Boolean(accountUid && userId && userSecret);
31
+ const logResponsesEnabled = process.env.SMARTLING_LOG_RESPONSES === "true";
32
+ function logResponse(label, response) {
33
+ if (!logResponsesEnabled) {
34
+ return;
35
+ }
36
+ console.log(`\n--- ${label} ---\n${JSON.stringify(response, null, 2)}`);
37
+ }
38
+ function delay(milliseconds) {
39
+ return new Promise((resolve) => {
40
+ setTimeout(resolve, milliseconds);
41
+ });
42
+ }
43
+ describe("SmartlingTranslationMemoryApi integration tests.", function integrationSuite() {
44
+ this.timeout(240000);
45
+ let api;
46
+ let tmUid;
47
+ before(function skipWithoutCredentials() {
48
+ if (!hasCredentials) {
49
+ console.log("Skipping Translation Memory integration tests: set SMARTLING_ACCOUNT_UID, SMARTLING_USER_ID, SMARTLING_USER_SECRET in .env");
50
+ this.skip();
51
+ }
52
+ api = new index_1.SmartlingApiClientBuilder()
53
+ .setBaseSmartlingApiUrl(baseSmartlingApiUrl)
54
+ .authWithUserIdAndUserSecret(userId, userSecret)
55
+ .build(index_2.SmartlingTranslationMemoryApi);
56
+ });
57
+ before(() => __awaiter(this, void 0, void 0, function* () {
58
+ const created = yield api.createTm(accountUid, new create_tm_parameters_1.CreateTmParameters()
59
+ .setName(`api-sdk-nodejs integration test TM ${Date.now()}`)
60
+ .setDescription("Created by the api-sdk-nodejs integration suite")
61
+ .setSourceLocaleId("en-US")
62
+ .setTranslationQuality(translation_quality_type_1.TranslationQualityType.TRANSLATION));
63
+ logResponse("createTm", created);
64
+ assert_1.default.ok(created, "createTm returned null");
65
+ ({ tmUid } = created);
66
+ }));
67
+ after(() => __awaiter(this, void 0, void 0, function* () {
68
+ if (tmUid) {
69
+ const deleted = yield api.deleteTm(accountUid, tmUid);
70
+ logResponse("deleteTm (cleanup)", deleted);
71
+ }
72
+ }));
73
+ it("Updates the TM", () => __awaiter(this, void 0, void 0, function* () {
74
+ const updatedName = `api-sdk-nodejs integration test TM (updated) ${Date.now()}`;
75
+ const updatedDescription = "Updated by the api-sdk-nodejs integration suite";
76
+ const updated = yield api.updateTm(accountUid, new update_tm_parameters_1.UpdateTmParameters()
77
+ .setTmUid(tmUid)
78
+ .setName(updatedName)
79
+ .setDescription(updatedDescription));
80
+ logResponse("updateTm", updated);
81
+ assert_1.default.ok(updated, "updateTm returned null");
82
+ assert_1.default.equal(updated.tmUid, tmUid);
83
+ assert_1.default.equal(updated.name, updatedName);
84
+ assert_1.default.equal(updated.description, updatedDescription);
85
+ assert_1.default.ok(updated.created instanceof Date);
86
+ assert_1.default.ok(updated.lastModified instanceof Date);
87
+ }));
88
+ it("Imports a TMX file", () => __awaiter(this, void 0, void 0, function* () {
89
+ const result = yield api.importTmxFile(accountUid, new import_tmx_file_parameters_1.ImportTmxFileParameters()
90
+ .setFileFromLocalFilePath("./test/data/sample.tmx")
91
+ .setFileUri(`integration-test-${Date.now()}.tmx`)
92
+ .setTmUid(tmUid)
93
+ .setDescription("api-sdk-nodejs integration test import"));
94
+ logResponse("importTmxFile", result);
95
+ assert_1.default.ok(result.jobUid);
96
+ assert_1.default.ok(result.tmxUid);
97
+ assert_1.default.equal(typeof result.stringCount, "number");
98
+ assert_1.default.equal(typeof result.wordCount, "number");
99
+ }));
100
+ it("Creates a string search, bulk-exports it, polls status, and downloads the TMX", () => __awaiter(this, void 0, void 0, function* () {
101
+ const searchFilter = new create_string_search_filter_parameters_1.CreateStringSearchFilterParameters().setTmUids([tmUid]);
102
+ let searchResult = yield api.createStringSearch(accountUid, searchFilter);
103
+ const searchDeadline = Date.now() + 30000;
104
+ while (!(searchResult === null || searchResult === void 0 ? void 0 : searchResult.stringCount) && Date.now() < searchDeadline) {
105
+ yield delay(2000);
106
+ searchResult = yield api.createStringSearch(accountUid, searchFilter);
107
+ }
108
+ logResponse("createStringSearch", searchResult);
109
+ assert_1.default.ok(searchResult, "createStringSearch returned null");
110
+ assert_1.default.ok(searchResult.searchUid);
111
+ assert_1.default.ok(searchResult.stringCount);
112
+ const exportResult = yield api.bulkExportTmStrings(accountUid, new bulk_export_tm_strings_parameters_1.BulkExportTmStringsParameters().setSearchUid(searchResult.searchUid));
113
+ logResponse("bulkExportTmStrings", exportResult);
114
+ assert_1.default.ok(exportResult, "bulkExportTmStrings returned null");
115
+ assert_1.default.ok(exportResult.actionUid);
116
+ const terminalStatuses = ["SUCCESS", "FAILURE", "CANCELED", "STOPPED"];
117
+ let status = yield api.getBulkExportTmStringsStatus(accountUid, exportResult.actionUid);
118
+ const deadline = Date.now() + 90000;
119
+ while (!((status === null || status === void 0 ? void 0 : status.executionComplete) || terminalStatuses.includes(status === null || status === void 0 ? void 0 : status.actionStatus))
120
+ && Date.now() < deadline) {
121
+ yield delay(2000);
122
+ status = yield api.getBulkExportTmStringsStatus(accountUid, exportResult.actionUid);
123
+ }
124
+ logResponse("getBulkExportTmStringsStatus", status);
125
+ assert_1.default.ok(status, "getBulkExportTmStringsStatus returned null");
126
+ assert_1.default.equal(status.actionStatus, "SUCCESS");
127
+ assert_1.default.equal(status.executionComplete, true);
128
+ assert_1.default.ok(status.tmxDownloadKey, "bulkExportTmStrings completed but returned no tmxDownloadKey - can't exercise downloadTmxFile");
129
+ const downloaded = yield api.downloadTmxFile(accountUid, status.tmxDownloadKey);
130
+ logResponse("downloadTmxFile", {
131
+ fileName: downloaded.fileName,
132
+ contentType: downloaded.contentType,
133
+ byteLength: downloaded.fileContent.byteLength
134
+ });
135
+ assert_1.default.ok(downloaded.fileContent.byteLength > 0);
136
+ }));
137
+ });
138
+ //# sourceMappingURL=translation-memory.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"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