@adobe/acc-js-sdk 1.1.16 → 1.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/acc-js-sdk",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "ACC Javascript SDK",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://github.com/adobe/acc-js-sdk#readme",
@@ -10,17 +10,17 @@
10
10
  "test": "test"
11
11
  },
12
12
  "dependencies": {
13
- "axios": "^0.25.0",
14
- "jsdom": "^19.0.0",
13
+ "axios": "^1.2.1",
14
+ "jsdom": "^20.0.3",
15
15
  "qs-stringify": "^1.2.1"
16
16
  },
17
17
  "devDependencies": {
18
- "docdash": "^1.2.0",
18
+ "docdash": "^2.0.0",
19
19
  "eslint": "^8.7.0",
20
- "jest": "^27.4.7",
21
- "jest-junit": "^13.0.0",
22
- "jsdoc": "^3.6.7",
23
- "jshint": "^2.13.3"
20
+ "jest": "^29.3.1",
21
+ "jest-junit": "^15.0.0",
22
+ "jsdoc": "^4.0.0",
23
+ "jshint": "^2.13.6"
24
24
  },
25
25
  "author": "",
26
26
  "scripts": {
@@ -255,7 +255,7 @@ class XtkSchemaNode {
255
255
  * Returns a string of characters which specifies the editing type of the current node.
256
256
  * @type {string}
257
257
  */
258
- this.editType = EntityAccessor.getAttributeAsString(xml, "editType");
258
+ this.editType = EntityAccessor.getAttributeAsString(xml, "edit");
259
259
 
260
260
  /**
261
261
  * Only on the root node, returns a string which contains the folder template(s). On the other nodes, it returns undefined.
@@ -146,7 +146,7 @@ governing permissions and limitations under the License.
146
146
  // Get last modified entities for the Campaign server and remove from cache last modified entities
147
147
  async _callAndRefresh() {
148
148
  const that = this;
149
- const soapCall = this._client._prepareSoapCall("xtk:session", "GetModifiedEntities", true, this._connectionParameters._options.extraHttpHeaders);
149
+ const soapCall = this._client._prepareSoapCall("xtk:session", "GetModifiedEntities", true, true, this._connectionParameters._options.extraHttpHeaders);
150
150
 
151
151
  if (this._lastTime === undefined) {
152
152
  const storedTime = this._refresherStateCache.get("time");
@@ -191,6 +191,7 @@ governing permissions and limitations under the License.
191
191
 
192
192
  // Do a soap call GetModifiedEntities instead of xtksession.GetModifiedEnties because we don't want to go through methodCache
193
193
  // which might not contain the method GetModifiedEntities just after a build updgrade from a old version of acc
194
+ // This is an internal SOAP call that cannot be intercepted by observers onBeforeCall / onAfterCall
194
195
  return this._client._makeSoapCall(soapCall)
195
196
  .then(() => {
196
197
  let doc = soapCall.getNextDocument();
package/src/campaign.js CHANGED
@@ -30,7 +30,7 @@ const { Util } = require("./util.js");
30
30
  static CANNOT_GET_CREDENTIALS_PASSWORD(type) { return new CampaignException(undefined, 400, 16384, `SDK-000002 Cannot get password for Credentials of type '${type}'`); }
31
31
  static INVALID_CONNECTION_OPTIONS(options) { return new CampaignException(undefined, 400, 16384, `SDK-000003 Invalid options parameter (type '${typeof options}'). An object literal is expected`); }
32
32
  static INVALID_REPRESENTATION(representation, details) { return new CampaignException(undefined, 400, 16384, `SDK-000004 Invalid representation '${representation}'.`, details); }
33
- static CREDENTIALS_FOR_INVALID_EXT_ACCOUNT(name, type) { return new CampaignException(undefined, 400, 16384, `SDK-000005 Cannot created connection parameters for external account '${name}': account type ${type} not supported`); }
33
+ static CREDENTIALS_FOR_INVALID_EXT_ACCOUNT(name, type) { return new CampaignException(undefined, 400, 16384, `SDK-000005 Cannot create connection parameters for external account '${name}': account type ${type} not supported`); }
34
34
  static BAD_PARAMETER(name, value, details) { return new CampaignException(undefined, 400, 16384, `SDK-000006 Bad parameter '${name}' with value '${value}'`, details); }
35
35
  static UNEXPECTED_SOAP_RESPONSE(call, details) { return new CampaignException( call, 500, -53, `SDK-000007 Unexpected response from SOAP call`, details); }
36
36
  static BAD_SOAP_PARAMETER(call, name, value, details) { return new CampaignException( call, 400, 16384, `SDK-000008 Bad parameter '${name}' with value '${value}'`, details); }