@adobe/acc-js-sdk 1.1.44 → 1.1.46
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/changeLog.html +23 -0
- package/package-lock.json +8 -5
- package/package.json +1 -1
- package/src/client.js +5 -3
- package/src/soap.js +2 -1
- package/test/client.test.js +48 -0
- package/test/mock.js +96 -1
package/docs/changeLog.html
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
layout: page
|
|
3
3
|
title: Change Log
|
|
4
4
|
---
|
|
5
|
+
<section class="changelog"><h1>Version 1.1.46</h1>
|
|
6
|
+
<h2>2024/03/19</h2>
|
|
7
|
+
<li>
|
|
8
|
+
Method nms:extAccount#TestAccount could not be called because it has parameters which are both input and output (inout="inout") and this was not supported by the SDK
|
|
9
|
+
</li>
|
|
10
|
+
<li>
|
|
11
|
+
Update follow-redirects 3rd party to fix a potential vulnerability
|
|
12
|
+
</li>
|
|
13
|
+
</section>
|
|
14
|
+
|
|
15
|
+
<section class="changelog"><h1>Version 1.1.45</h1>
|
|
16
|
+
<h2>2024/01/15</h2>
|
|
17
|
+
<li>
|
|
18
|
+
Update follow-redirects 3rd party to fix a potential vulnerability
|
|
19
|
+
</li>
|
|
20
|
+
<li>
|
|
21
|
+
Calling non-static, non-const, and non-pkonly methods would fail with a parameter type mismatch error.
|
|
22
|
+
The reason is that the entity returned by such methods is named <this> and not <entity>.
|
|
23
|
+
Note that const and non-pkonly methods are probably still not handled properly by the SDK.
|
|
24
|
+
</li>
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
|
|
5
28
|
<section class="changelog"><h1>Version 1.1.44</h1>
|
|
6
29
|
<h2>2024/01/02</h2>
|
|
7
30
|
<li>
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/acc-js-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.46",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@adobe/acc-js-sdk",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.46",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"axios": "^1.2.1",
|
|
@@ -2219,14 +2219,15 @@
|
|
|
2219
2219
|
"license": "ISC"
|
|
2220
2220
|
},
|
|
2221
2221
|
"node_modules/follow-redirects": {
|
|
2222
|
-
"version": "1.15.
|
|
2222
|
+
"version": "1.15.6",
|
|
2223
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
|
2224
|
+
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
|
|
2223
2225
|
"funding": [
|
|
2224
2226
|
{
|
|
2225
2227
|
"type": "individual",
|
|
2226
2228
|
"url": "https://github.com/sponsors/RubenVerborgh"
|
|
2227
2229
|
}
|
|
2228
2230
|
],
|
|
2229
|
-
"license": "MIT",
|
|
2230
2231
|
"engines": {
|
|
2231
2232
|
"node": ">=4.0"
|
|
2232
2233
|
},
|
|
@@ -6185,7 +6186,9 @@
|
|
|
6185
6186
|
"dev": true
|
|
6186
6187
|
},
|
|
6187
6188
|
"follow-redirects": {
|
|
6188
|
-
"version": "1.15.
|
|
6189
|
+
"version": "1.15.6",
|
|
6190
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
|
6191
|
+
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="
|
|
6189
6192
|
},
|
|
6190
6193
|
"form-data": {
|
|
6191
6194
|
"version": "4.0.0",
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -2043,7 +2043,9 @@ class Client {
|
|
|
2043
2043
|
const inout = DomUtil.getAttributeAsString(param, "inout");
|
|
2044
2044
|
const type = DomUtil.getAttributeAsString(param, "type");
|
|
2045
2045
|
const paramName = DomUtil.getAttributeAsString(param, "name");
|
|
2046
|
-
|
|
2046
|
+
const isIn = !inout || inout=="in" || inout=="inout";
|
|
2047
|
+
const isOut = inout=="out" || inout=="inout";
|
|
2048
|
+
if (isIn) {
|
|
2047
2049
|
let paramValue = parametersIsArray ? parameters[paramIndex] : parameters;
|
|
2048
2050
|
const inputParam = {
|
|
2049
2051
|
name: paramName,
|
|
@@ -2053,13 +2055,13 @@ class Client {
|
|
|
2053
2055
|
inputParams.push(inputParam);
|
|
2054
2056
|
paramIndex = paramIndex + 1;
|
|
2055
2057
|
}
|
|
2056
|
-
|
|
2058
|
+
if (isOut) {
|
|
2057
2059
|
outputParams.push({
|
|
2058
2060
|
name: paramName,
|
|
2059
2061
|
type: type,
|
|
2060
2062
|
});
|
|
2061
2063
|
}
|
|
2062
|
-
|
|
2064
|
+
if( !isIn && !isOut) {
|
|
2063
2065
|
throw CampaignException.BAD_PARAMETER("inout", inout, `Parameter '${paramName}' of schema '${entitySchemaId}' is not correctly defined as an input or output parameter`);
|
|
2064
2066
|
}
|
|
2065
2067
|
param = DomUtil.getNextSiblingElement(param, "param");
|
package/src/soap.js
CHANGED
|
@@ -337,6 +337,7 @@ class SoapMethodCall {
|
|
|
337
337
|
* In Campaign, non static SOAP calls may return an "entity" DOM Element, which corresponds to the object on which
|
|
338
338
|
* the method is called. A good example is the xtk:queryDef#SelectAll API call: the method definition does not have
|
|
339
339
|
* any return parameters, but it still returns an <entity> element contains the queryDef with all select nodes.
|
|
340
|
+
* When the method is implemented in JavaScript instead of C++, then the entity element will actually be named "this".
|
|
340
341
|
*
|
|
341
342
|
* @private
|
|
342
343
|
* @returns the Entity DOM Element if there's one, or null if there isn't. The currentElement pointer will be updated accordingly
|
|
@@ -346,7 +347,7 @@ class SoapMethodCall {
|
|
|
346
347
|
return null;
|
|
347
348
|
if (this.elemCurrent.getAttribute("xsi:type") != "ns:Element")
|
|
348
349
|
return null;
|
|
349
|
-
if (this.elemCurrent.tagName != "entity")
|
|
350
|
+
if (this.elemCurrent.tagName != "entity" && this.elemCurrent.tagName != "this")
|
|
350
351
|
return null;
|
|
351
352
|
var entity = this.elemCurrent;
|
|
352
353
|
entity = DomUtil.getFirstChildElement(entity);
|
package/test/client.test.js
CHANGED
|
@@ -3062,6 +3062,25 @@ describe('ACC Client', function () {
|
|
|
3062
3062
|
// second parameter is the call context
|
|
3063
3063
|
expect(paramsFn.mock.calls[0][1]).toMatchObject({ schemaId: "xtk:session", namespace: "xtkSession" });
|
|
3064
3064
|
});
|
|
3065
|
+
|
|
3066
|
+
it("Should call non-static JS method", async() => {
|
|
3067
|
+
// Unlike C++ methods, non-static JS method return a this element which is named "this" and not "entity"
|
|
3068
|
+
const client = await Mock.makeClient();
|
|
3069
|
+
client._transport.mockReturnValueOnce(Mock.LOGON_RESPONSE);
|
|
3070
|
+
await client.NLWS.xtkSession.logon();
|
|
3071
|
+
|
|
3072
|
+
client._transport.mockReturnValueOnce(Mock.GET_DATCO_SCHEMA_RESPONSE);
|
|
3073
|
+
client._transport.mockReturnValueOnce(Mock.GET_DATCO_TEST_RESPONSE);
|
|
3074
|
+
|
|
3075
|
+
const dataModelDef = { "name": "testDataModel" };
|
|
3076
|
+
const dataModel = client.NLWS.dacoDataModel.create(dataModelDef);
|
|
3077
|
+
const res = await dataModel.test("hi from client");
|
|
3078
|
+
|
|
3079
|
+
expect(res).toBe("hi - hello from client");
|
|
3080
|
+
|
|
3081
|
+
client._transport.mockReturnValueOnce(Mock.LOGOFF_RESPONSE);
|
|
3082
|
+
await client.NLWS.xtkSession.logoff();
|
|
3083
|
+
});
|
|
3065
3084
|
});
|
|
3066
3085
|
|
|
3067
3086
|
describe("Method-level representation", () => {
|
|
@@ -4332,4 +4351,33 @@ describe('ACC Client', function () {
|
|
|
4332
4351
|
expect(result[1].serverInfo.buildNumber).toBe("9219");
|
|
4333
4352
|
});
|
|
4334
4353
|
});
|
|
4354
|
+
|
|
4355
|
+
describe("Test inout parameter", () => {
|
|
4356
|
+
it("Call testAccount with inout parameter", async () => {
|
|
4357
|
+
const client = await Mock.makeClient();
|
|
4358
|
+
client._transport.mockReturnValueOnce(Mock.LOGON_RESPONSE);
|
|
4359
|
+
await client.NLWS.xtkSession.logon();
|
|
4360
|
+
|
|
4361
|
+
client._transport.mockReturnValueOnce(Mock.GET_NMS_EXTACCOUNT_SCHEMA_WITH_METHODS_RESPONSE);
|
|
4362
|
+
|
|
4363
|
+
client._transport.mockReturnValueOnce(Promise.resolve(`<?xml version='1.0'?>
|
|
4364
|
+
<SOAP-ENV:Envelope
|
|
4365
|
+
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
|
|
4366
|
+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
|
4367
|
+
xmlns:ns='urn:nms:extAccount'
|
|
4368
|
+
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
|
|
4369
|
+
<SOAP-ENV:Body>
|
|
4370
|
+
<TestAccountResponse
|
|
4371
|
+
xmlns='urn:nms:extAccount' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
|
|
4372
|
+
<pstrServer xsi:type='xsd:string'>localhost</pstrServer>
|
|
4373
|
+
<pstrDbmsVer xsi:type='xsd:string'>Database server version 'PostgreSQL 12.2, compiled by Visual C++ build 1914, 64-bit'.</pstrDbmsVer>
|
|
4374
|
+
<pstrWarehouse xsi:type='xsd:string'></pstrWarehouse>
|
|
4375
|
+
<pstrTestDuration xsi:type='xsd:string'>Test connection took: 0 ms</pstrTestDuration>
|
|
4376
|
+
</TestAccountResponse>
|
|
4377
|
+
</SOAP-ENV:Body>
|
|
4378
|
+
</SOAP-ENV:Envelope>`));
|
|
4379
|
+
|
|
4380
|
+
const result = await client.NLWS.nmsExtAccount.testAccount(7, true, "PostgreSQL:localhost", "postgres", "password", "NChar=0;unicodeData=1;timezone=_server_;dbSchema=public;fileMethod=uploadFile;filePath=", "pg2", 0);
|
|
4381
|
+
});
|
|
4382
|
+
});
|
|
4335
4383
|
});
|
package/test/mock.js
CHANGED
|
@@ -567,6 +567,50 @@ const GET_NMS_EXTACCOUNT_SCHEMA_RESPONSE = Promise.resolve(`<?xml version='1.0'?
|
|
|
567
567
|
</SOAP-ENV:Body>
|
|
568
568
|
</SOAP-ENV:Envelope>`);
|
|
569
569
|
|
|
570
|
+
const GET_NMS_EXTACCOUNT_SCHEMA_WITH_METHODS_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
|
|
571
|
+
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:wpp:default' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
|
|
572
|
+
<SOAP-ENV:Body>
|
|
573
|
+
<GetEntityIfMoreRecentResponse xmlns='urn:wpp:default' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
|
|
574
|
+
<pdomDoc xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
|
|
575
|
+
<schema name="extAccount" namespace="nms" xtkschema="xtk:schema">
|
|
576
|
+
<enumeration basetype="byte" default="delivery" name="type">
|
|
577
|
+
<value name="bounces" value="0"/>
|
|
578
|
+
<value name="hdfs" value="17"/>
|
|
579
|
+
</enumeration>
|
|
580
|
+
<enumeration basetype="byte" default="none" name="encryptionType">
|
|
581
|
+
<value name="none" value="0"/>
|
|
582
|
+
<value name="ssl" value="1"/>
|
|
583
|
+
</enumeration>
|
|
584
|
+
<element name="extAccount"></element>
|
|
585
|
+
<methods>
|
|
586
|
+
<method name="TestAccount" static="true">
|
|
587
|
+
<help>Performs a connection test</help>
|
|
588
|
+
<parameters>
|
|
589
|
+
<param name="type" type="byte" desc="Account type"/>
|
|
590
|
+
<param name="active" type="boolean" desc="Is account active"/>
|
|
591
|
+
<param name="server" type="string" desc="Server address" inout="inout"/>
|
|
592
|
+
<param name="account" type="string" desc="Name (or login) of account"/>
|
|
593
|
+
<param name="password" type="string" desc="Password associated with account"/>
|
|
594
|
+
<param name="port" type="string" desc="Server port"/>
|
|
595
|
+
<param name="options" type="string" desc="Connection options"/>
|
|
596
|
+
<param name="name" type="string" desc="Account name" optional="true"/>
|
|
597
|
+
<param name="oauth" type="boolean" desc="OAUth 2.0 activation"/>
|
|
598
|
+
<param name="azureTenant" type="string" desc="Azure tenant" optional="true"/>
|
|
599
|
+
<param name="clientId" type="string" desc="Azure client Id" optional="true"/>
|
|
600
|
+
<param name="clientSecret" type="string" desc="Azure client secret" optional="true"/>
|
|
601
|
+
<param name="redirectUrl" type="string" desc="Azure redirect url" optional="true"/>
|
|
602
|
+
<param name="dbmsVer" type="string" desc="DBMS Version" inout="out" optional="true"/>
|
|
603
|
+
<param name="warehouse" type="string" desc="Warehouse name" inout="out" optional="true"/>
|
|
604
|
+
<param name="testDuration" type="string" desc="Formatted string displaying connection time in ms" inout="out" optional="true"/>
|
|
605
|
+
</parameters>
|
|
606
|
+
</method>
|
|
607
|
+
</methods>
|
|
608
|
+
</schema>
|
|
609
|
+
</pdomDoc>
|
|
610
|
+
</GetEntityIfMoreRecentResponse>
|
|
611
|
+
</SOAP-ENV:Body>
|
|
612
|
+
</SOAP-ENV:Envelope>`);
|
|
613
|
+
|
|
570
614
|
const GET_XTK_IMPL_SCHEMA_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
|
|
571
615
|
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:wpp:default' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
|
|
572
616
|
<SOAP-ENV:Body>
|
|
@@ -983,6 +1027,54 @@ const GETMODIFIEDENTITIES_ERROR_RESPONSE = Promise.resolve(`<?xml version='1.0'?
|
|
|
983
1027
|
|
|
984
1028
|
const GET_DELIVERY_NEW_INSTANCE_RESPONSE = Promise.resolve(`<?xml version='1.0'?><SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:nms:delivery' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'><SOAP-ENV:Body><NewInstanceResponse xmlns='urn:nms:delivery' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><entity xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'><delivery _operation="insert" analysisStep="0" budgetStatus="0" builtIn="false" contentStatus="0" created="2022-09-26 03:13:36.480Z" createdBy-id="6043" deleteStatus="0" deliveryMode="0" deliveryProvider-id="1855" extractionStatus="0" folder-id="1186" folderProcess-id="1206" id="9790" internalName="DM554" isModel="1" jobType="delivery" keepResult="false" label="Email" lastModified="2022-09-26 03:13:36.480Z" launchFCP="0" mapping-id="1775" maxPropositionCount="1" messageType="0" modifiedBy-id="6043" outOfProcess="false" priority="10" sandboxStatus="0" state="0" status="0" targetStatus="0" typology-id="1852" useTargetOffers="false" xtkschema="nms:delivery"><folder _cs="Delivery templates"/><folderProcess _cs="Deliveries"/><createdBy _cs="Gaurav Makkar (gmakkar@adobe.com)"/><modifiedBy _cs="Gaurav Makkar (gmakkar@adobe.com)"/><properties deliveryState="0" warning="false"/><deliveryProvider EMailFunction="0" NChar="0" _cs="Internal email delivery" account="" activationMode="2" active="1" activity="signal" awsKey="" awsRegion="" awsSecret="" azureTenant="" callbackServer="" clientId="" clientSecret="" created="2022-09-16 07:39:50.796Z" createdBy-id="0" dbName="" deliveryMode="1" deployed="0" encryptionType="0" fdaExtAccount-id="0" fileMethod="uploadFile" folder-id="1035" folderSetOfServices-id="0" httpRelayTarget="false" id="1855" imsOrgId="" imsRightsMask="" imsServer="" label="Internal email delivery" lastModified="2022-09-16 07:42:37.469Z" lastMultiUsed="" messageType="0" mirrorURL="" mobileConnector="127" modifiedBy-id="1062" multiMidMode="0" multiMidProvider="0" name="defaultEmailBulk" oAuth="0" onEveryRun="0" packageAutoExport="0" partner="1" password="" port="" productContext="" provider="Snowflake" redirectUrl="" server="" tenant="" timezone="_server_" timezoneName="Europe/Paris" type="3" unicodeData="0" useServerSideEncryption="0" userScope=""><analyticsConfig integrationName="defaultEmailBulk" persistence="7" purge="180" status="3"></analyticsConfig><webAnalyticsParams partner="1" persistence="7" purge="180"><integrationDetails integrationName="defaultEmailBulk" integrationValue="7281015239823888aa73636c74217b84"></integrationDetails></webAnalyticsParams><params allowTranslit="false" bindTimeout="60" dataInOptionalField="false" dataInTextField="false" defaultMoCharset="X-Gsm7Bit" defaultMtCharset="X-Gsm7Bit" deliverIdEncode="default" deliverIdEncode2="0" enableTLS="false" enquireLinkPeriod="30" errorExtractionRegex="\\b[eE][rR][rR]:([a-zA-Z0-9]{3})\\b" errorStatusRegex="^(?:EXPIRED|DELETED|UNDELIV|UNKNOWN|REJECT)" idExtractionRegex="\\b[iI][dD]:([a-fA-F0-9]{1,10})\\b" invalidIdAckLimit="0" maxBinds="1" maxWindow="10" messagePayload="false" messageTimeout="30" rateLimit="0" reconnectPeriod="10" sendFullPhoneNumber="false" skipTLSCertCheck="0" smscName="Generic" statusExtractionRegex="\\b[sS][tT][aA][tT]:([a-zA-Z0-9]{5,15})\\b" submitRespIdEncode="default" submitRespIdEncode2="0" successStatusRegex="^DELIV"><wapPush oAuth="0"/><mms oAuth="0"/><oauthParams thirdPartyApplication="true"/><facebookParams marketingURL="http://www.adobe.com" realtimeSubStatus="0"/><mscrm crmApiVersion="'auto'" crmDeploymentType="webapi" crmGrantType="0"/><salesforce apiVersion="'21.0'"/></params><ffda isFFDA="0" replicationWarehouse="" xxlSchemaSuffix=""/></deliveryProvider><forecast simuResponseType="0" weight="5" weightType="0"><weightFormula>$(deliveryWeight)</weightFormula></forecast><volume duration="1" rate="100"/><scheduling delayExtraction="0" validationMode="manual" webResPurged="false"><waves mode="0" splitDelay="86400" splitSize="20%"/><messagePreparation priority="0"/></scheduling><validation sandboxMode="0" sandboxModeEnforced="0" useBudgetValidation="true" useContentValidation="true" useExtractionValidation="true" useFCPValidation="true" useTargetValidation="true" validationMode="0"><target><validation delay="259200" type="0"/></target><content><validation delay="259200" type="0"/></content><budget><validation delay="259200" type="0"/></budget><extraction><validation delay="259200" type="0"/></extraction><forecast><validation delay="259200" type="0"/></forecast><starting><validation delay="259200" type="0"/></starting><edition><validation delay="259200" type="0"/></edition><external><validation delay="259200" type="0"/></external></validation><execution maxPersoTime="5" maxRetry="5" retryPeriod="3600"><controlGroup type="3"/></execution><typology _cs="Default typology"/><mapping _cs="Recipients (nms:recipient)" blackListAgency="@blackList" blackListEmail="Iif(@blackList!=0, 1, @blackListEmail)" blackListFax="Iif(@blackList!=0, 1,@blackListFax)" blackListPaper="Iif(@blackList!=0, 1,@blackListPostalMail)" blackListPhone="Iif(@blackList!=0, 1,@blackListPhone)" blackListSms="Iif(@blackList!=0, 1,@blackListMobile)" builtIn="1" countryCode="[location/@countryCode]" created="2022-09-16 07:39:50.496Z" createdBy-id="0" defaultOrigin-id="1861" email="Lower(@email)" facebook="" fax="@fax" folder-id="1171" format="@emailFormat" id="1775" isFfda="0" label="Recipients" lastModified="2022-09-16 07:39:52.859Z" modifiedBy-id="0" name="mapRecipient" paper="postalAddress" phone="@phone" recipientLink="" schema="nms:recipient" sms="@mobilePhone" targetSchema="nms:recipient" twitter=""><storage broadLogExclSchema="nms:excludeLogRcp" broadLogFilterKeys="" broadLogRcpKeys="" broadLogSchema="nms:broadLogRcp" broadLogTable="" exclusionType="2" trackingHasDeviceIP="0" trackingLogFilterKeys="" trackingLogRcpKeys="" trackingLogSchema="nms:trackingLogRcp" trackingLogTable=""></storage><social birthDate="@birthDate" email="@email" firstName="@firstName" gender="@gender" lastName="@lastName" locale="@language"/></mapping><scenario validityDuration="432000" webValidityDuration="5184000"/><fcpParameters addFormatInPrefix="true" fcpMailFormat="normal" fcpMode="specificTarget" ignoreBlacklist="true" ignoreDeduplicate="true" ignoreQuarantaine="false" keepDeliveryCode="false" labelPrefix="Proof" useSpecificOutputFile="false"/><mailParameters mirrorPagePolicy="default" needMirrorPage="0" useDefaultErrorAddress="true"><senderName><![CDATA[Automation Inc.]]></senderName><senderAddress><![CDATA[no-reply@Customer.rd.campaign.adobe.com]]></senderAddress><replyAddress><![CDATA[no-reply@Customer.rd.campaign.adobe.com]]></replyAddress><replyName><![CDATA[Automation Inc.]]></replyName></mailParameters><smsParameters mobileMsgType="0" smsAppType="2" smsMode="1" smsPriority="0"/><paperParameters addressPos="ownPage" colorSupport="bw" envelope="C6SW" priceCategory="letterPrio" rectoVerso="recto"/><targets addressField="__db__" allowUnchecked="true" blackListField="__db__" deduplicate="true" excludeOnMissingOffer="0" externalIdField="__db__" formatField="__db__" fromExternalSource="false" maxErrorCount="3" noRcpIdDedup="false" noReconciliation="false" qualityRequired="3" segmentCodeField="__db__" targetMode="0" useBlackList="true" useQuality="1" useQuarantine="1"><deliveryTarget nonEmpty="false"/><proofTarget nonEmpty="false"/><deliveryFile autoDelete="false" upload="true"/><proofFile autoDelete="false" upload="true"/><postalAddress addrDefinedField="__none__" addrErrorCountField="__none__" addrLastCheckField="__none__" addrQualityField="__none__" line1Field="__db__" line2Field="__db__" line3Field="__db__" line4Field="__db__" line5Field="__db__" line6Field="__db__" line7Field="__db__"/></targets><remoteContent remoteValidation="false"/><content IsImagePublished="false" embedImages="false" fcbContentType="0" formatSelection="preferences" htmlCompression="false" ignoreScripts="false" pdfCompression="true" pdfType="simple"><lineContentType><source>text</source></lineContentType><lineVersion><source>line</source></lineVersion><lineDeliveryType><source>pushMsg</source></lineDeliveryType><lineImageType><source>manual</source></lineImageType><lineMultiRegionLayoutType><source>1</source></lineMultiRegionLayoutType></content><output enableLinkDelivery="true" feedbackMode="none"><seedList insertMode="0"/><extraction><source batchSize="200" format="text" rejectsFromTextConnector="false" startPath="/" upload="true"><dataSourceConfig codepage="1252" colType="0" ignoreConfigCheck="false" textQualifier="none" timezone="_inherit_" useCR="false" useLF="false"/><dataSourceConfigDest codepage="1252" colType="0" ignoreConfigCheck="false" textQualifier="none" timezone="_inherit_" useCR="false" useLF="false"/></source><destination downloadDestFile="true" endRecord="0" progressLines="20" putUnmappedCols="true" splitOverOrigin="false" startPath="/" startRecord="0" transactionLines="200"><exportFormat allAsString="false" analyze="false" codepage="1252" delEscaping="duplicateDel" delimitor="delNone" format="text" lineEnd="0" saveTitle="true" separator="sepTab" timezone="_inherit_"><dataFormat decimalCount="-1" hideTime="false" orderDate="ymd" sepDate="/" sepDateTime=" " sepNumber="." sepThousand="false" sepTime=":" showMs="false" showSec="true" yearShort="false"/></exportFormat></destination></extraction></output><tracking enabled="true" openEnabled="true"><clickFormula><![CDATA[<%@ include option='NmsTracking_ClickFormula' %>]]></clickFormula><openFormula><![CDATA[<%@ include option='NmsTracking_OpenFormula' %>]]></openFormula></tracking><advancedParameters DBPreparationMode="0" codepage="65001" emailArchiving="false" emailBCCEmta="false" forceCodepage="false" outOfProcessMode="false" showSQL="false" useDBPreparation="false" useDataManagement="false" verifyMode="false"/><budgetParameters commitmentLevel="0" computationState="0"/></delivery></entity></NewInstanceResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>`);
|
|
985
1029
|
|
|
1030
|
+
const GET_DATCO_SCHEMA_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
|
|
1031
|
+
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema'
|
|
1032
|
+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
|
1033
|
+
xmlns:ns='urn:wpp:default'
|
|
1034
|
+
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
|
|
1035
|
+
<SOAP-ENV:Body>
|
|
1036
|
+
<GetEntityIfMoreRecentResponse xmlns='urn:wpp:default' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
|
|
1037
|
+
<pdomDoc xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
|
|
1038
|
+
<schema entitySchema="xtk:schema" label="Data Models" labelSingular="Data Model" mappingType="sql" name="dataModel" namespace="daco" xtkschema="xtk:schema">
|
|
1039
|
+
<element autopk="true" name="dataModel">
|
|
1040
|
+
<compute-string expr="@id"/>
|
|
1041
|
+
<key internal="true" name="id">
|
|
1042
|
+
<keyfield xpath="@id"/>
|
|
1043
|
+
</key>
|
|
1044
|
+
<attribute desc="Internal primary key" label="Primary key" name="id" sqlname="iDataModelId" type="long"/>
|
|
1045
|
+
<attribute label="Name" length="255" name="name" sqlname="sName" type="string"/>
|
|
1046
|
+
</element>
|
|
1047
|
+
<methods>
|
|
1048
|
+
<method library="daco:dataModel.js" name="test">
|
|
1049
|
+
<help>Test API</help>
|
|
1050
|
+
<parameters>
|
|
1051
|
+
<param desc="Message" inout="in" name="msg" type="string"/>
|
|
1052
|
+
<param desc="Response" inout="out" name="resp" type="string"/>
|
|
1053
|
+
</parameters>
|
|
1054
|
+
</method>
|
|
1055
|
+
</methods>
|
|
1056
|
+
</schema>
|
|
1057
|
+
</pdomDoc>
|
|
1058
|
+
</GetEntityIfMoreRecentResponse>
|
|
1059
|
+
</SOAP-ENV:Body>
|
|
1060
|
+
</SOAP-ENV:Envelope>`);
|
|
1061
|
+
|
|
1062
|
+
const GET_DATCO_TEST_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
|
|
1063
|
+
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema'
|
|
1064
|
+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
|
1065
|
+
xmlns:ns='urn:daco:dataModel'
|
|
1066
|
+
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
|
|
1067
|
+
<SOAP-ENV:Body>
|
|
1068
|
+
<testResponse xmlns='urn:daco:dataModel' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
|
|
1069
|
+
<this xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
|
|
1070
|
+
<dataModel name="testDataModel" xtkschema="daco:dataModel"/>
|
|
1071
|
+
</this>
|
|
1072
|
+
<resp xsi:type='xsd:string'>hi - hello from client</resp>
|
|
1073
|
+
</testResponse>
|
|
1074
|
+
</SOAP-ENV:Body>
|
|
1075
|
+
</SOAP-ENV:Envelope>
|
|
1076
|
+
`);
|
|
1077
|
+
|
|
986
1078
|
// Public exports
|
|
987
1079
|
exports.Mock = {
|
|
988
1080
|
makeClient: makeClient,
|
|
@@ -1013,6 +1105,7 @@ exports.Mock = {
|
|
|
1013
1105
|
GET_LOGON_MID_RESPONSE: GET_LOGON_MID_RESPONSE,
|
|
1014
1106
|
GET_TSTCNX_RESPONSE: GET_TSTCNX_RESPONSE,
|
|
1015
1107
|
GET_NMS_EXTACCOUNT_SCHEMA_RESPONSE: GET_NMS_EXTACCOUNT_SCHEMA_RESPONSE,
|
|
1108
|
+
GET_NMS_EXTACCOUNT_SCHEMA_WITH_METHODS_RESPONSE: GET_NMS_EXTACCOUNT_SCHEMA_WITH_METHODS_RESPONSE,
|
|
1016
1109
|
GET_XTK_ALL_SCHEMA_RESPONSE: GET_XTK_ALL_SCHEMA_RESPONSE,
|
|
1017
1110
|
GET_XTK_IMPL_SCHEMA_RESPONSE: GET_XTK_IMPL_SCHEMA_RESPONSE,
|
|
1018
1111
|
GET_XTK_ALL_TYPES_RESPONSE: GET_XTK_ALL_TYPES_RESPONSE,
|
|
@@ -1040,5 +1133,7 @@ exports.Mock = {
|
|
|
1040
1133
|
FILE_RES_WRITE_RESPONSE: FILE_RES_WRITE_RESPONSE,
|
|
1041
1134
|
PUBLISH_IF_NEEDED_RESPONSE: PUBLISH_IF_NEEDED_RESPONSE,
|
|
1042
1135
|
GET_URL_RESPONSE: GET_URL_RESPONSE,
|
|
1043
|
-
GET_DELIVERY_NEW_INSTANCE_RESPONSE: GET_DELIVERY_NEW_INSTANCE_RESPONSE
|
|
1136
|
+
GET_DELIVERY_NEW_INSTANCE_RESPONSE: GET_DELIVERY_NEW_INSTANCE_RESPONSE,
|
|
1137
|
+
GET_DATCO_SCHEMA_RESPONSE: GET_DATCO_SCHEMA_RESPONSE,
|
|
1138
|
+
GET_DATCO_TEST_RESPONSE: GET_DATCO_TEST_RESPONSE
|
|
1044
1139
|
}
|