<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: alfresco/js-api ContentApi problem in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41672#M17474</link>
    <description>&lt;P&gt;So, I've managed to get it building by adding the following to tsconfig.app.json in the "includes" section&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/activiti-rest-api/api/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/activiti-rest-api/model/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/content-custom-api/model/dateAlfresco.ts"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is obviously NOT how it's supposed to work, but at least my app is building now.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Oct 2020 10:16:52 GMT</pubDate>
    <dc:creator>pedwards99</dc:creator>
    <dc:date>2020-10-25T10:16:52Z</dc:date>
    <item>
      <title>alfresco/js-api ContentApi problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41669#M17471</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying writing an Angular application that uses the Alfresco JS-API to retrieve content attached to an APS workflow.&lt;/P&gt;&lt;P&gt;My development environment is IntelliJ&lt;/P&gt;&lt;P&gt;There is a Activiti-REST ContentApi that provides the methods I need to call to retrieve the content (&lt;A href="https://github.com/Alfresco/alfresco-js-api/blob/develop/src/api/activiti-rest-api/docs/ContentApi.md#getRawContent" target="_blank" rel="nofollow noopener noreferrer"&gt;getRawContent&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;The problem is there's &lt;STRONG&gt;another&lt;/STRONG&gt; ContentApi under content-custom-api.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my typescript code, when I do &lt;STRONG&gt;import {ContentApi} from '@alfresco/js-api'&lt;/STRONG&gt; it picks the wrong ContentApi&lt;/P&gt;&lt;P&gt;Any idea what the import should be to target the correct ContentApi? The suggestion in the docs import ContentApi from 'ContentApi' does not work. Intellij complains it can't find a module called ContentApi.&lt;/P&gt;&lt;P&gt;I'm actually not sure the second ContentApi should be there - possibly a bug? It appears in the code, but not the docs.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 09:36:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41669#M17471</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-10-25T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco/js-api ContentApi problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41670#M17472</link>
      <description>&lt;P&gt;As ever, 2minutes after posting, I find a solution....just target the source directly.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;{ContentApi} &lt;SPAN&gt;from &lt;/SPAN&gt;&lt;SPAN&gt;'@alfresco/js-api/src/api/activiti-rest-api/api/content.api'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, i'm still not sure that the other ContentApi should be there?&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 09:40:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41670#M17472</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-10-25T09:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco/js-api ContentApi problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41671#M17473</link>
      <description>&lt;P&gt;Ah....spoke too soon.&lt;/P&gt;&lt;P&gt;Importing as above doesn't work - the source will not compile...&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 10:06:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41671#M17473</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-10-25T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco/js-api ContentApi problem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41672#M17474</link>
      <description>&lt;P&gt;So, I've managed to get it building by adding the following to tsconfig.app.json in the "includes" section&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/activiti-rest-api/api/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/activiti-rest-api/model/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/*.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"node_modules/@alfresco/js-api/src/api/content-custom-api/model/dateAlfresco.ts"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is obviously NOT how it's supposed to work, but at least my app is building now.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 10:16:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-js-api-contentapi-problem/m-p/41672#M17474</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-10-25T10:16:52Z</dc:date>
    </item>
  </channel>
</rss>

