smartling-api-sdk-nodejs 2.12.0 → 2.13.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.
@@ -2,5 +2,5 @@ projectKey=smartling-api-sdk-nodejs
2
2
  serverUrl=https://sonar-next.connectors.stg.smartling.net
3
3
  serverVersion=8.6.1.40680
4
4
  dashboardUrl=https://sonar-next.connectors.stg.smartling.net/dashboard?id=smartling-api-sdk-nodejs
5
- ceTaskId=AZHGsopjeTFUeF_dKNj1
6
- ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=AZHGsopjeTFUeF_dKNj1
5
+ ceTaskId=AZHG7AUbeTFUeF_dKNj2
6
+ ceTaskUrl=https://sonar-next.connectors.stg.smartling.net/api/ce/task?id=AZHG7AUbeTFUeF_dKNj2
@@ -26,17 +26,4 @@ export class FtsUploadFileParameters extends BaseParameters {
26
26
  this.parameters.request.fileType = fileType.toUpperCase();
27
27
  return this;
28
28
  }
29
-
30
- addDirective(instruction: string, value: string): FtsUploadFileParameters {
31
- if (!this.parameters.request.parseConfigItems) {
32
- this.parameters.request.parseConfigItems = [];
33
- }
34
-
35
- this.parameters.request.parseConfigItems = this.parameters.request.parseConfigItems.concat({
36
- instruction,
37
- value
38
- });
39
-
40
- return this;
41
- }
42
29
  }
@@ -5,5 +5,4 @@ export declare class FtsUploadFileParameters extends BaseParameters {
5
5
  setFileFromLocalFilePath(filePath: string): FtsUploadFileParameters;
6
6
  setFileContent(fileContent: string): FtsUploadFileParameters;
7
7
  setFileType(fileType: FileType): FtsUploadFileParameters;
8
- addDirective(instruction: string, value: string): FtsUploadFileParameters;
9
8
  }
@@ -47,16 +47,6 @@ class FtsUploadFileParameters extends parameters_1.BaseParameters {
47
47
  this.parameters.request.fileType = fileType.toUpperCase();
48
48
  return this;
49
49
  }
50
- addDirective(instruction, value) {
51
- if (!this.parameters.request.parseConfigItems) {
52
- this.parameters.request.parseConfigItems = [];
53
- }
54
- this.parameters.request.parseConfigItems = this.parameters.request.parseConfigItems.concat({
55
- instruction,
56
- value
57
- });
58
- return this;
59
- }
60
50
  }
61
51
  exports.FtsUploadFileParameters = FtsUploadFileParameters;
62
52
  //# sourceMappingURL=fts-upload-file-parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fts-upload-file-parameters.js","sourceRoot":"","sources":["../../../../api/file-translations/params/fts-upload-file-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,kFAAsD;AACtD,iDAAkD;AAGlD,MAAa,uBAAwB,SAAQ,2BAAc;IACvD,YAAY,aAAsC,EAAE;QAChD,KAAK,CAAC,UAAU,CAAC,CAAC;QAElB,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,wBAAwB,CAAC,QAAgB;QACrC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAChC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,WAAmB;QAC9B,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAA,+BAAiB,EAAC,WAAW,CAAC,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,WAAW,CAAC,QAAkB;QAC1B,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,YAAY,CAAC,WAAmB,EAAE,KAAa;QAC3C,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC3C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,GAAG,EAAE,CAAC;SACjD;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;YACvF,WAAW;YACX,KAAK;SACR,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AApCD,0DAoCC"}
1
+ {"version":3,"file":"fts-upload-file-parameters.js","sourceRoot":"","sources":["../../../../api/file-translations/params/fts-upload-file-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,kFAAsD;AACtD,iDAAkD;AAGlD,MAAa,uBAAwB,SAAQ,2BAAc;IACvD,YAAY,aAAsC,EAAE;QAChD,KAAK,CAAC,UAAU,CAAC,CAAC;QAElB,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,wBAAwB,CAAC,QAAgB;QACrC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAChC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,WAAmB;QAC9B,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAA,+BAAiB,EAAC,WAAW,CAAC,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,WAAW,CAAC,QAAkB;QAC1B,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAvBD,0DAuBC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartling-api-sdk-nodejs",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Package for Smartling API",
5
5
  "main": "built/index.js",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartling-api-sdk-nodejs",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Package for Smartling API",
5
5
  "main": "built/index.js",
6
6
  "engines": {
@@ -105,9 +105,7 @@ describe("SmartlingFileTranslationsApi class tests.", () => {
105
105
 
106
106
  params
107
107
  .setFileType(FileType.XML)
108
- .setFileContent(testFileContent)
109
- .addDirective("entity_escaping_strategy", "propagade")
110
- .addDirective("placeholder_format_custom", "test");
108
+ .setFileContent(testFileContent);
111
109
 
112
110
  await fileTranslationsApi.uploadFile(accountUid, params);
113
111
 
@@ -143,7 +141,7 @@ describe("SmartlingFileTranslationsApi class tests.", () => {
143
141
  assert.equal(content, testFileContent);
144
142
 
145
143
  // eslint-disable-next-line no-underscore-dangle
146
- assert.equal(fileTranslationsApiFetchCall.args[1].body._streams[4], "{\"fileType\":\"XML\",\"parseConfigItems\":[{\"instruction\":\"entity_escaping_strategy\",\"value\":\"propagade\"},{\"instruction\":\"placeholder_format_custom\",\"value\":\"test\"}]}");
144
+ assert.equal(fileTranslationsApiFetchCall.args[1].body._streams[4], "{\"fileType\":\"XML\"}");
147
145
  });
148
146
 
149
147
  it("Translate file", async () => {