@adobe/acc-js-sdk 1.1.5 → 1.1.6

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/test/mock.js CHANGED
@@ -614,8 +614,68 @@ const GET_HELLO_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
614
614
  </SOAP-ENV:Body>
615
615
  </SOAP-ENV:Envelope>`);
616
616
 
617
+ const GETMODIFIEDENTITIES_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
618
+ <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:xtk:session' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
619
+ <SOAP-ENV:Body>
620
+ <GetModifiedEntitiesResponse xmlns='urn:xtk:session' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
621
+ <pdomDirtyEntities xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
622
+ <cache buildNumber="9468" time="2022-07-27T14:38:55.766Z"/>
623
+ </pdomDirtyEntities>
624
+ </GetModifiedEntitiesResponse>
625
+ </SOAP-ENV:Body>
626
+ </SOAP-ENV:Envelope>`);
627
+
628
+ const GETMODIFIEDENTITIES_CLEAR_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
629
+ <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:xtk:session' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
630
+ <SOAP-ENV:Body>
631
+ <GetModifiedEntitiesResponse xmlns='urn:xtk:session' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
632
+ <pdomDirtyEntities xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
633
+ <cache buildNumber="9469" time="2022-07-28T14:38:55.766Z" emptyCache="true"/>
634
+ </pdomDirtyEntities>
635
+ </GetModifiedEntitiesResponse>
636
+ </SOAP-ENV:Body>
637
+ </SOAP-ENV:Envelope>`);
617
638
 
618
639
 
640
+ const GETMODIFIEDENTITIES_SCHEMA_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
641
+ <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:xtk:session' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
642
+ <SOAP-ENV:Body>
643
+ <GetModifiedEntitiesResponse xmlns='urn:xtk:session' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
644
+ <pdomDirtyEntities xsi:type='ns:Element' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml'>
645
+ <cache buildNumber="9469" time="2022-07-28T15:32:00.785Z">
646
+ <entityCache lastModified="2022-07-28 15:31:56.331Z" md5="5581959609FEC4B2A9CDBD171BA42E7D" pk="xtk:schema|nms:recipient" schema="xtk:schema"/>
647
+ <entityCache lastModified="2022-07-28 15:31:56.353Z" md5="B27CC681D00C3FA85DDA0B210FE76566" pk="xtk:schema|nms:replicationStrategy" schema="xtk:schema"/>
648
+ <entityCache lastModified="2022-07-28 15:31:56.478Z" md5="E39D051D4D00805693EBA4F72F5ABD7D" pk="xtk:schema|nms:recipientStg" schema="xtk:schema"/>
649
+ <entityCache lastModified="2022-07-28 15:31:56.440Z" md5="23B1FE988F0DCDC88C9F96D06C97FA14" pk="xtk:schema|xxl:xtkFolderXl" schema="xtk:schema"/>
650
+ <entityCache lastModified="2022-07-28 15:31:56.440Z" md5="23B1FE988F0DCDC88C9F96D06C97FA14" pk="xtk:schema|nms:extAccount" schema="xtk:schema"/>
651
+ <entityCache lastModified="2022-07-28 15:31:56.440Z" md5="23B1FE988F0DCDC88C9F96D06C97FA14" pk="xtk:option|testOption" schema="xtk:option"/>
652
+ </cache>
653
+ </pdomDirtyEntities>
654
+ </GetModifiedEntitiesResponse>
655
+ </SOAP-ENV:Body>
656
+ </SOAP-ENV:Envelope>`);
657
+
658
+
659
+ const GETMODIFIEDENTITIES_UNDEFINED_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
660
+ <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
661
+ <SOAP-ENV:Body>
662
+ <SOAP-ENV:Fault>
663
+ <faultcode>SOAP-ENV:Client</faultcode>
664
+ <faultstring xsi:type='xsd:string'>SOP-330006 The method 'GetModifiedEntities' is not defined in SOAP service 'xtk:session'.</faultstring>
665
+ </SOAP-ENV:Fault>
666
+ </SOAP-ENV:Body>
667
+ </SOAP-ENV:Envelope>`);
668
+
669
+ const GETMODIFIEDENTITIES_ERROR_RESPONSE = Promise.resolve(`<?xml version='1.0'?>
670
+ <SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
671
+ <SOAP-ENV:Body>
672
+ <SOAP-ENV:Fault>
673
+ <faultcode>SOAP-ENV:Client</faultcode>
674
+ <faultstring xsi:type='xsd:string'>SOP-330011 Error while executing the method 'GetModifiedEntities' of service 'xtk:session'.</faultstring>
675
+ </SOAP-ENV:Fault>
676
+ </SOAP-ENV:Body>
677
+ </SOAP-ENV:Envelope>`);
678
+
619
679
  // Public exports
620
680
  exports.Mock = {
621
681
  makeClient: makeClient,
@@ -656,5 +716,10 @@ exports.Mock = {
656
716
  GET_SETELEMENT_RESPONSE: GET_SETELEMENT_RESPONSE,
657
717
  GET_GETSCHEMA_HELLO_RESPONSE: GET_GETSCHEMA_HELLO_RESPONSE,
658
718
  GET_HELLO_RESPONSE: GET_HELLO_RESPONSE,
659
- LOGON_RESPONSE_NO_USERINFO: LOGON_RESPONSE_NO_USERINFO
719
+ LOGON_RESPONSE_NO_USERINFO: LOGON_RESPONSE_NO_USERINFO,
720
+ GETMODIFIEDENTITIES_RESPONSE: GETMODIFIEDENTITIES_RESPONSE,
721
+ GETMODIFIEDENTITIES_CLEAR_RESPONSE: GETMODIFIEDENTITIES_CLEAR_RESPONSE,
722
+ GETMODIFIEDENTITIES_SCHEMA_RESPONSE: GETMODIFIEDENTITIES_SCHEMA_RESPONSE,
723
+ GETMODIFIEDENTITIES_UNDEFINED_RESPONSE: GETMODIFIEDENTITIES_UNDEFINED_RESPONSE,
724
+ GETMODIFIEDENTITIES_ERROR_RESPONSE: GETMODIFIEDENTITIES_ERROR_RESPONSE
660
725
  }
package/test/soap.test.js CHANGED
@@ -888,7 +888,7 @@ describe("Campaign exception", () => {
888
888
  it("Should add the method name by default in the URL", () => {
889
889
  const call = makeSoapMethodCall(undefined, "xtk:session", "Empty", "$session$", "$security$");
890
890
  call.finalize(URL);
891
- expect(call.request.url).toBe("https://soap-test/nl/jsp/soaprouter.jsp?xtk:session#Empty");
891
+ expect(call.request.url).toBe("https://soap-test/nl/jsp/soaprouter.jsp?xtk:session:Empty");
892
892
  });
893
893
 
894
894
  it("Should be able to disable adding the method name by default in the URL", () => {