@saooti/octopus-sdk 29.0.27 → 30.0.2
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/README.md +3 -0
- package/package.json +2 -2
- package/src/assets/form.scss +2 -1
- package/src/assets/modal.scss +1 -0
- package/src/components/display/categories/CategoryList.vue +2 -2
- package/src/components/display/emission/EmissionChooser.vue +1 -1
- package/src/components/display/emission/EmissionInlineList.vue +4 -4
- package/src/components/display/emission/EmissionList.vue +3 -9
- package/src/components/display/live/LiveItem.vue +1 -1
- package/src/components/display/organisation/OrganisationChooserLight.vue +1 -1
- package/src/components/display/playlist/PodcastList.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineList.vue +2 -2
- package/src/components/display/podcasts/PodcastList.vue +3 -9
- package/src/components/display/sharing/QrCode.vue +2 -3
- package/src/components/display/sharing/SharePlayer.vue +1 -3
- package/src/components/misc/Player.vue +1 -1
- package/src/components/misc/PlayerButtons.vue +20 -0
- package/src/components/pages/Participant.vue +1 -1
- package/src/components/pages/Playlist.vue +1 -1
- package/src/components/pages/Podcast.vue +1 -1
- package/src/store/class/emission.ts +22 -19
- package/src/store/class/fetchParam.ts +1 -0
- package/src/store/class/participant.ts +8 -8
- package/src/store/class/person.ts +13 -11
- package/src/store/class/playlist.ts +5 -7
- package/src/store/class/podcast.ts +42 -38
- package/src/store/class/rubriquage.ts +8 -8
- package/src/store/class/rubrique.ts +3 -2
- package/src/store/paramStore.ts +7 -0
- package/src/api/emissions.ts +0 -13
- package/src/api/podcasts.ts +0 -12
- package/src/api/profile.ts +0 -11
package/README.md
CHANGED
|
@@ -494,4 +494,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
494
494
|
* 29.0.25 Specific category does not display in correct order
|
|
495
495
|
* 29.0.26 Snackbar position
|
|
496
496
|
* 29.0.27 Petit cursor:pointer des familles
|
|
497
|
+
* 29.0.28 Petite couleur des familles
|
|
497
498
|
|
|
499
|
+
* 30.0.1 Nouveau sprint
|
|
500
|
+
* 30.0.2 Correction css
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saooti/octopus-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"main": "./dist/octopus.common.js",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.10.2",
|
|
18
|
-
"@saooti/octopus-api": "^0.
|
|
18
|
+
"@saooti/octopus-api": "^0.30.2",
|
|
19
19
|
"@vue/cli": "^5.0.0-rc.0",
|
|
20
20
|
"@vue/compat": "^3.2.21",
|
|
21
21
|
"axios": "^0.24.0",
|
package/src/assets/form.scss
CHANGED
package/src/assets/modal.scss
CHANGED
|
@@ -156,9 +156,9 @@ export default defineComponent({
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
async fetchCategories(organisationId: string): Promise<void> {
|
|
159
|
-
const data = await octopusApi.
|
|
159
|
+
const data = await octopusApi.fetchCategories({
|
|
160
160
|
lang: this.$i18n.locale,
|
|
161
|
-
});
|
|
161
|
+
}, organisationId);
|
|
162
162
|
this.$store.commit('categoriesOrgaSet', data);
|
|
163
163
|
},
|
|
164
164
|
},
|
|
@@ -88,7 +88,7 @@ import octopusApi from '@saooti/octopus-api';
|
|
|
88
88
|
const ELEMENTS_COUNT = 50;
|
|
89
89
|
const DEFAULT_EMISSION_ID = 0;
|
|
90
90
|
|
|
91
|
-
const getDefaultEmission = (defaultName: string) => {
|
|
91
|
+
const getDefaultEmission = (defaultName: string): Emission|undefined => {
|
|
92
92
|
if(''=== defaultName){
|
|
93
93
|
return undefined;
|
|
94
94
|
}
|
|
@@ -152,8 +152,8 @@ export default defineComponent({
|
|
|
152
152
|
first: this.first,
|
|
153
153
|
size: this.size + 1,
|
|
154
154
|
organisationId: this.organisationId,
|
|
155
|
-
rubriqueId: this.rubriqueId,
|
|
156
|
-
rubriquageId: this.rubriquageId,
|
|
155
|
+
rubriqueId: this.rubriqueId ? [this.rubriqueId] : [],
|
|
156
|
+
rubriquageId: this.rubriquageId ? [this.rubriquageId] : [],
|
|
157
157
|
sort: 'LAST_PODCAST_DESC',
|
|
158
158
|
});
|
|
159
159
|
this.loading = false;
|
|
@@ -169,8 +169,8 @@ export default defineComponent({
|
|
|
169
169
|
});
|
|
170
170
|
} */
|
|
171
171
|
if (this.allEmissions.length + data.result.length < this.totalCount) {
|
|
172
|
-
const nexEl = data.result.pop();
|
|
173
|
-
this.preloadImage(nexEl.imageUrl);
|
|
172
|
+
const nexEl = data.result.pop() as Emission;
|
|
173
|
+
this.preloadImage(nexEl.imageUrl ? nexEl.imageUrl : "");
|
|
174
174
|
}
|
|
175
175
|
this.allEmissions = this.allEmissions.concat(data.result);
|
|
176
176
|
if (this.allEmissions.length <= 3) {
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
|
|
62
62
|
<script lang="ts">
|
|
63
63
|
import octopusApi from '@saooti/octopus-api';
|
|
64
|
-
import emissionApi from '@/api/emissions';
|
|
65
64
|
import { state } from '../../../store/paramStore';
|
|
66
65
|
|
|
67
66
|
import { Emission } from '@/store/class/emission';
|
|
@@ -186,15 +185,10 @@ export default defineComponent({
|
|
|
186
185
|
noRubriquageId: this.noRubriquageId.length ? this.noRubriquageId : undefined,
|
|
187
186
|
rubriqueId: this.rubriqueId.length ? this.rubriqueId : undefined,
|
|
188
187
|
rubriquageId: this.rubriquageId.length ? this.rubriquageId : undefined,
|
|
188
|
+
includeHidden:this.includeHidden,
|
|
189
189
|
};
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const data = await emissionApi.fetchEmissionsAdmin(this.$store.state, param);
|
|
193
|
-
this.afterFetching(reset, data);
|
|
194
|
-
} else {
|
|
195
|
-
const data = await octopusApi.fetchEmissions(param);
|
|
196
|
-
this.afterFetching(reset, data);
|
|
197
|
-
}
|
|
190
|
+
const data = await octopusApi.fetchEmissions(param);
|
|
191
|
+
this.afterFetching(reset, data);
|
|
198
192
|
},
|
|
199
193
|
afterFetching(reset: boolean, data: {count: number, result: Array<Emission>, sort: string}): void {
|
|
200
194
|
if (reset) {
|
|
@@ -234,7 +234,7 @@ export default defineComponent({
|
|
|
234
234
|
if (!this.fetchConference || !this.fetchConference.podcastId) return;
|
|
235
235
|
try {
|
|
236
236
|
this.live = await octopusApi.fetchPodcast(
|
|
237
|
-
this.fetchConference.podcastId
|
|
237
|
+
this.fetchConference.podcastId.toString()
|
|
238
238
|
);
|
|
239
239
|
} catch {
|
|
240
240
|
this.$emit('deleteItem', this.index);
|
|
@@ -161,7 +161,7 @@ export default defineComponent({
|
|
|
161
161
|
this.loading = true;
|
|
162
162
|
this.loaded = false;
|
|
163
163
|
const content = await octopusApi.fetchPlaylistContent(
|
|
164
|
-
this.playlist.playlistId
|
|
164
|
+
this.playlist.playlistId.toString()
|
|
165
165
|
);
|
|
166
166
|
for (let index = 0, len = content.length; index < len; index++) {
|
|
167
167
|
content[index].order = this.playlist.podcasts[content[index].podcastId];
|
|
@@ -235,8 +235,8 @@ export default defineComponent({
|
|
|
235
235
|
this.loaded = true;
|
|
236
236
|
this.totalCount = data.count;
|
|
237
237
|
if (this.allPodcasts.length + data.result.length < this.totalCount) {
|
|
238
|
-
const nexEl = data.result.pop();
|
|
239
|
-
this.preloadImage(nexEl.imageUrl);
|
|
238
|
+
const nexEl = data.result.pop() as Podcast;
|
|
239
|
+
this.preloadImage(nexEl.imageUrl?nexEl.imageUrl:'');
|
|
240
240
|
}
|
|
241
241
|
this.allPodcasts = this.allPodcasts.concat(
|
|
242
242
|
data.result.filter((pod: Podcast|null) => null !== pod)
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
|
|
47
47
|
<script lang="ts">
|
|
48
48
|
import octopusApi from '@saooti/octopus-api';
|
|
49
|
-
import podcastApi from '@/api/podcasts';
|
|
50
49
|
import PodcastItem from './PodcastItem.vue';
|
|
51
50
|
import { state } from '../../../store/paramStore';
|
|
52
51
|
|
|
@@ -172,6 +171,7 @@ export default defineComponent({
|
|
|
172
171
|
noRubriquageId: this.noRubriquageId.length ? this.noRubriquageId : undefined,
|
|
173
172
|
rubriqueId: this.rubriqueId.length ? this.rubriqueId : undefined,
|
|
174
173
|
rubriquageId: this.rubriquageId.length ? this.rubriquageId : undefined,
|
|
174
|
+
includeHidden: this.includeHidden
|
|
175
175
|
};
|
|
176
176
|
if (undefined !== this.notValid) {
|
|
177
177
|
param.validity = !this.notValid;
|
|
@@ -179,14 +179,8 @@ export default defineComponent({
|
|
|
179
179
|
if (this.notValid && !this.isProduction) {
|
|
180
180
|
param.publisherId = this.$store.state.profile.userId;
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const data = await podcastApi.fetchPodcastsAdmin(this.$store.state, param);
|
|
185
|
-
this.afterFetching(reset, data);
|
|
186
|
-
} else {
|
|
187
|
-
const data = await octopusApi.fetchPodcasts(param);
|
|
188
|
-
this.afterFetching(reset, data);
|
|
189
|
-
}
|
|
182
|
+
const data = await octopusApi.fetchPodcasts(param);
|
|
183
|
+
this.afterFetching(reset, data);
|
|
190
184
|
},
|
|
191
185
|
afterFetching(reset: boolean, data: {count: number, result: Array<Podcast>, sort: string}): void {
|
|
192
186
|
if (reset) {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<script lang="ts">
|
|
25
25
|
import { state } from '../../../store/paramStore';
|
|
26
|
-
import
|
|
26
|
+
import octopusApi from '@saooti/octopus-api';
|
|
27
27
|
import Snackbar from '../../misc/Snackbar.vue';
|
|
28
28
|
import QrcodeVue from 'qrcode.vue'
|
|
29
29
|
import { defineComponent } from 'vue'
|
|
@@ -67,8 +67,7 @@ export default defineComponent({
|
|
|
67
67
|
if(this.$store.state.organisation && this.$store.state.organisation.attributes && Object.keys(this.$store.state.organisation.attributes).length > 1){
|
|
68
68
|
data = this.$store.state.organisation.attributes;
|
|
69
69
|
}else{
|
|
70
|
-
data= await
|
|
71
|
-
this.$store.state,
|
|
70
|
+
data= await octopusApi.fetchOrganisationAttributes(
|
|
72
71
|
state.generalParameters.organisationId ? state.generalParameters.organisationId : ""
|
|
73
72
|
);
|
|
74
73
|
}
|
|
@@ -106,7 +106,6 @@
|
|
|
106
106
|
|
|
107
107
|
<script lang="ts">
|
|
108
108
|
import { state } from '../../../store/paramStore';
|
|
109
|
-
import profileApi from '@/api/profile';
|
|
110
109
|
import octopusApi from '@saooti/octopus-api';
|
|
111
110
|
import { Podcast } from '@/store/class/podcast';
|
|
112
111
|
import { Emission } from '@/store/class/emission';
|
|
@@ -354,8 +353,7 @@ export default defineComponent({
|
|
|
354
353
|
if(this.$store.state.organisation && this.$store.state.organisation.attributes && Object.keys(this.$store.state.organisation.attributes).length > 1){
|
|
355
354
|
data = this.$store.state.organisation.attributes;
|
|
356
355
|
}else{
|
|
357
|
-
data= await
|
|
358
|
-
this.$store.state,
|
|
356
|
+
data= await octopusApi.fetchOrganisationAttributes(
|
|
359
357
|
state.generalParameters.organisationId ? state.generalParameters.organisationId : ""
|
|
360
358
|
);
|
|
361
359
|
}
|
|
@@ -97,8 +97,28 @@ export default defineComponent({
|
|
|
97
97
|
return '';
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
|
+
created(){
|
|
101
|
+
window.addEventListener('keydown', this.addKeyboardControl);
|
|
102
|
+
},
|
|
103
|
+
beforeUnmount() {
|
|
104
|
+
window.removeEventListener('keydown', this.addKeyboardControl);
|
|
105
|
+
},
|
|
100
106
|
|
|
101
107
|
methods: {
|
|
108
|
+
addKeyboardControl(event: KeyboardEvent): void{
|
|
109
|
+
if (' ' === event.key || 'Spacebar' === event.key) {
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
this.switchPausePlay();
|
|
112
|
+
}else if ('ArrowRight' === event.key && event.ctrlKey) {
|
|
113
|
+
const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
|
|
114
|
+
if(!audioPlayer){return;}
|
|
115
|
+
audioPlayer.currentTime += 15;
|
|
116
|
+
}else if ('ArrowLeft' === event.key && event.ctrlKey) {
|
|
117
|
+
const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
|
|
118
|
+
if(!audioPlayer){return;}
|
|
119
|
+
audioPlayer.currentTime -=15;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
102
122
|
switchPausePlay(): void {
|
|
103
123
|
const audioPlayer: HTMLAudioElement|null = document.querySelector('#audio-player');
|
|
104
124
|
if(!audioPlayer){return;}
|
|
@@ -185,7 +185,7 @@ export default defineComponent({
|
|
|
185
185
|
async getParticipantDetails(): Promise<void> {
|
|
186
186
|
this.loaded = false;
|
|
187
187
|
try {
|
|
188
|
-
const data = await octopusApi.fetchParticipant(this.participantId);
|
|
188
|
+
const data = await octopusApi.fetchParticipant(this.participantId ? this.participantId.toString(): "");
|
|
189
189
|
this.participant = data;
|
|
190
190
|
this.$emit('participantTitle', this.name);
|
|
191
191
|
this.loaded = true;
|
|
@@ -142,7 +142,7 @@ export default defineComponent({
|
|
|
142
142
|
methods: {
|
|
143
143
|
async getPlaylistDetails(): Promise<void> {
|
|
144
144
|
try {
|
|
145
|
-
const data: Playlist = await octopusApi.fetchPlaylist(this.playlistId);
|
|
145
|
+
const data: Playlist = await octopusApi.fetchPlaylist(this.playlistId ? this.playlistId.toString(): "");
|
|
146
146
|
this.playlist = data;
|
|
147
147
|
this.$emit('playlistTitle', this.playlist.title);
|
|
148
148
|
this.loaded = true;
|
|
@@ -325,7 +325,7 @@ export default defineComponent({
|
|
|
325
325
|
},
|
|
326
326
|
async getPodcastDetails(podcastId: number): Promise<void> {
|
|
327
327
|
try {
|
|
328
|
-
const data : Podcast = await octopusApi.fetchPodcast(podcastId);
|
|
328
|
+
const data : Podcast = await octopusApi.fetchPodcast(podcastId.toString());
|
|
329
329
|
this.podcast = data;
|
|
330
330
|
this.$emit('podcastTitle', this.podcast.title);
|
|
331
331
|
if (
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AdserverConfig } from './adserverConfig';
|
|
2
|
+
import { Organisation } from './organisation';
|
|
3
|
+
import { Person } from './person';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
export interface Emission {
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
annotations?: {[key: string]:string|number|boolean|undefined}|undefined;
|
|
8
|
+
description: string;
|
|
9
|
+
emissionId: number;
|
|
10
|
+
iabIds?: Array<number>;
|
|
11
|
+
lastPodcastDate?: string;
|
|
12
|
+
monetisable: string;
|
|
13
|
+
name: string;
|
|
14
|
+
orga: Organisation;
|
|
15
|
+
rubriqueIds: Array<number>;
|
|
16
|
+
score?: number;
|
|
17
|
+
soundcastTag?: string;
|
|
18
|
+
publisher?: Person;
|
|
19
|
+
copyright?: string;
|
|
20
|
+
optItunesCategories?: Array<string>;
|
|
21
|
+
adConfigs?: {[key:string]: AdserverConfig};
|
|
22
|
+
urlFeed?: string;
|
|
23
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Organisation } from
|
|
1
|
+
import { Organisation } from './organisation';
|
|
2
2
|
|
|
3
|
-
export interface Participant{
|
|
4
|
-
imageUrl
|
|
5
|
-
description
|
|
3
|
+
export interface Participant {
|
|
4
|
+
imageUrl?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
firstName: string;
|
|
7
7
|
lastName: string;
|
|
8
|
-
orga
|
|
9
|
-
participantId: number;
|
|
8
|
+
orga?: Organisation;
|
|
9
|
+
participantId: number | undefined;
|
|
10
10
|
score?: number;
|
|
11
|
-
uid
|
|
12
|
-
}
|
|
11
|
+
uid?: string;
|
|
12
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { Organisation } from
|
|
1
|
+
import { Organisation } from './organisation';
|
|
2
2
|
|
|
3
|
-
export interface Person{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export interface Person {
|
|
4
|
+
attributes?: {[key:string]: string|number|boolean|undefined|Array<string>};
|
|
5
|
+
email: string;
|
|
6
|
+
emailVerified: boolean;
|
|
7
|
+
enabled: true;
|
|
8
|
+
first: string;
|
|
9
|
+
last: string;
|
|
10
|
+
notSeenOnKeycloak: number;
|
|
11
|
+
userId: string;
|
|
12
|
+
organisation?: Organisation;
|
|
13
|
+
activeOrganisation?: Organisation;
|
|
14
|
+
organisations?: Array<Organisation>;
|
|
13
15
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { Organisation } from
|
|
2
|
-
import { Person } from
|
|
3
|
-
import { Podcast } from "./podcast";
|
|
1
|
+
import { Organisation } from './organisation';
|
|
2
|
+
import { Person } from './person';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
export interface Playlist{
|
|
4
|
+
export interface Playlist {
|
|
7
5
|
imageUrl?: string;
|
|
8
6
|
description: string;
|
|
9
7
|
organisation: Organisation;
|
|
10
8
|
playlistId: number;
|
|
11
|
-
podcasts: Array<
|
|
9
|
+
podcasts: Array<number | undefined>;
|
|
12
10
|
score: number;
|
|
13
11
|
title: string;
|
|
14
12
|
publisher?: Person;
|
|
15
|
-
}
|
|
13
|
+
}
|
|
@@ -1,38 +1,42 @@
|
|
|
1
|
-
import { Emission } from
|
|
2
|
-
import { Organisation } from
|
|
3
|
-
import { Participant } from
|
|
4
|
-
import { Person } from
|
|
5
|
-
export interface Podcast{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { Emission } from './emission';
|
|
2
|
+
import { Organisation } from './organisation';
|
|
3
|
+
import { Participant } from './participant';
|
|
4
|
+
import { Person } from './person';
|
|
5
|
+
export interface Podcast {
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
animators?: Array<Participant>;
|
|
8
|
+
annotations?:{[key: string]:string|number|boolean|undefined}|undefined;
|
|
9
|
+
audioStorageUrl: string;
|
|
10
|
+
audioUrl: string;
|
|
11
|
+
article?: string;
|
|
12
|
+
availability: {
|
|
13
|
+
date?: number|null;
|
|
14
|
+
visibility?: boolean;
|
|
15
|
+
immediate?: boolean;
|
|
16
|
+
};
|
|
17
|
+
comments?: string;
|
|
18
|
+
conferenceId?: number;
|
|
19
|
+
createdAt?: string;
|
|
20
|
+
valid?: boolean;
|
|
21
|
+
description?: string;
|
|
22
|
+
downloadCount?: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
email?: string;
|
|
25
|
+
emission: Emission;
|
|
26
|
+
guests?: Array<Participant>;
|
|
27
|
+
monetisable?: string;
|
|
28
|
+
organisation: Organisation;
|
|
29
|
+
podcastId: number;
|
|
30
|
+
processingStatus?: string;
|
|
31
|
+
processorId?: string;
|
|
32
|
+
pubDate?: string;
|
|
33
|
+
publisher?: Person;
|
|
34
|
+
rubriqueIds?: Array<number>;
|
|
35
|
+
score?: number;
|
|
36
|
+
size?: number;
|
|
37
|
+
tags?: Array<string>;
|
|
38
|
+
title: string;
|
|
39
|
+
weekDownloadCount?: number;
|
|
40
|
+
order?: number;
|
|
41
|
+
livePodcastId?: number
|
|
42
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Rubrique } from
|
|
1
|
+
import { Rubrique } from './rubrique';
|
|
2
2
|
|
|
3
|
-
export interface Rubriquage{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
3
|
+
export interface Rubriquage {
|
|
4
|
+
organisationId?: string;
|
|
5
|
+
rubriquageId?: number;
|
|
6
|
+
rubriques: Array<Rubrique>;
|
|
7
|
+
title: string;
|
|
8
|
+
homePageOrder?: number | null;
|
|
9
|
+
}
|
package/src/store/paramStore.ts
CHANGED
|
@@ -174,6 +174,13 @@ export interface OctopusApi{
|
|
|
174
174
|
studioUrl?: string,
|
|
175
175
|
playerUrl?: string,
|
|
176
176
|
organisationId?: string | undefined,
|
|
177
|
+
oAuthParam?: {
|
|
178
|
+
accessToken: string,
|
|
179
|
+
refreshToken: string,
|
|
180
|
+
accessTokenUri: string,
|
|
181
|
+
expiration: string,
|
|
182
|
+
clientId: string,
|
|
183
|
+
}
|
|
177
184
|
}
|
|
178
185
|
export interface paramStore{
|
|
179
186
|
generalParameters:GeneralParameters,
|
package/src/api/emissions.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Emission } from "@/store/class/emission";
|
|
2
|
-
import { FetchParam } from "@/store/class/fetchParam";
|
|
3
|
-
import { StoreState } from "@/store/typeAppStore";
|
|
4
|
-
|
|
5
|
-
import octopusApi from '@saooti/octopus-api';
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
export default{
|
|
8
|
-
async fetchEmissionsAdmin(store: StoreState, parameters: FetchParam): Promise<{ count: number; result: Array<Emission>; sort: string; }> {
|
|
9
|
-
console.log(store);
|
|
10
|
-
return await octopusApi.fetchEmissions(parameters);
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
/* eslint-enable */
|
package/src/api/podcasts.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FetchParam } from "@/store/class/fetchParam";
|
|
2
|
-
import { StoreState } from "@/store/typeAppStore";
|
|
3
|
-
|
|
4
|
-
import octopusApi from '@saooti/octopus-api';
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
export default {
|
|
7
|
-
async fetchPodcastsAdmin(store: StoreState, parameters: FetchParam): Promise<any> {
|
|
8
|
-
console.log(store);
|
|
9
|
-
return await octopusApi.fetchPodcasts(parameters);
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
/* eslint-enable */
|
package/src/api/profile.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { StoreState } from "@/store/typeAppStore";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export default{
|
|
4
|
-
fetchOrganisationAttibutes(store: StoreState, organisationId: string): Promise<any> {
|
|
5
|
-
return new Promise(resolve => {
|
|
6
|
-
console.log(store, organisationId);
|
|
7
|
-
resolve({});
|
|
8
|
-
});
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
/* eslint-enable */
|