@saooti/octopus-sdk 41.10.7 → 41.10.8
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -47,7 +47,22 @@ async function getAll(organisationId?: string): Promise<Array<Aggregator>> {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Return the list of all user-defined aggregators, without filter data.
|
|
52
|
+
* This doesn't require to be authenticated.
|
|
53
|
+
* @param organisationId If defined, the aggregators will be filtered for this
|
|
54
|
+
* organisation
|
|
55
|
+
*/
|
|
56
|
+
async function getAllNoAuth(organisationId?: string): Promise<Array<PredefinedAggregator>> {
|
|
57
|
+
return classicApi.fetchData<Array<Aggregator>>({
|
|
58
|
+
api: ModuleApi.DEFAULT,
|
|
59
|
+
path: 'rss/aggregator/noauth/list',
|
|
60
|
+
parameters: organisationId ? { organisationId } : undefined
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
export const aggregatorsApi = {
|
|
51
65
|
getPredefined,
|
|
52
|
-
getAll
|
|
66
|
+
getAll,
|
|
67
|
+
getAllNoAuth
|
|
53
68
|
};
|
|
@@ -13,7 +13,7 @@ import PodbeanIcon from "../../icons/PodbeanIcon.vue";
|
|
|
13
13
|
import YoutubeIcon from "vue-material-design-icons/Youtube.vue";
|
|
14
14
|
import SpotifyIcon from "vue-material-design-icons/Spotify.vue";
|
|
15
15
|
import { Annotations } from "@/stores/class/general";
|
|
16
|
-
import { h, markRaw, ref, type Component
|
|
16
|
+
import { h, markRaw, ref, type Component } from "vue";
|
|
17
17
|
import { aggregatorsApi } from "../../../api/aggregatorsApi";
|
|
18
18
|
import { useNotificationStore } from "../../../stores/NotificationStore";
|
|
19
19
|
import ClassicAvatar from "../../misc/ClassicAvatar.vue";
|
|
@@ -136,7 +136,7 @@ export const useSharePlatforms = () => {
|
|
|
136
136
|
platforms.value = [...PREDEFINED_PLATFORMS];
|
|
137
137
|
|
|
138
138
|
try {
|
|
139
|
-
const customPlatforms = await aggregatorsApi.
|
|
139
|
+
const customPlatforms = await aggregatorsApi.getAllNoAuth(organisationId);
|
|
140
140
|
customPlatforms.forEach(platform => {
|
|
141
141
|
platforms.value.push({
|
|
142
142
|
name: platform.name,
|