@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/docs/caches.html +25 -10
- package/docs/changeLog.html +15 -0
- package/docs/observability.html +115 -58
- package/package-lock.json +785 -922
- package/package.json +8 -8
- package/src/application.js +1 -1
- package/src/cacheRefresher.js +2 -1
- package/src/campaign.js +1 -1
- package/src/client.js +345 -181
- package/src/soap.js +3 -2
- package/test/application.test.js +28 -0
- package/test/client.test.js +84 -5
- package/test/mock.js +5 -0
- package/test/observability.test.js +149 -0
- package/test/soap.test.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/acc-js-sdk",
|
|
3
|
-
"version": "1.1.
|
|
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": "^
|
|
14
|
-
"jsdom": "^
|
|
13
|
+
"axios": "^1.2.1",
|
|
14
|
+
"jsdom": "^20.0.3",
|
|
15
15
|
"qs-stringify": "^1.2.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"docdash": "^
|
|
18
|
+
"docdash": "^2.0.0",
|
|
19
19
|
"eslint": "^8.7.0",
|
|
20
|
-
"jest": "^
|
|
21
|
-
"jest-junit": "^
|
|
22
|
-
"jsdoc": "^
|
|
23
|
-
"jshint": "^2.13.
|
|
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": {
|
package/src/application.js
CHANGED
|
@@ -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, "
|
|
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.
|
package/src/cacheRefresher.js
CHANGED
|
@@ -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
|
|
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); }
|