@saooti/octopus-sdk 38.0.14 → 38.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "38.0.14",
3
+ "version": "38.0.16",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -108,6 +108,18 @@ export default defineComponent({
108
108
  searchPattern(value: string): void {
109
109
  this.sortEmission = "" !== value ? "SCORE" : "DATE";
110
110
  },
111
+ filterRubrique: {
112
+ deep: true,
113
+ handler() {
114
+ this.updateRubriquageFilter(this.filterRubrique);
115
+ },
116
+ },
117
+ filterIab: {
118
+ deep: true,
119
+ handler() {
120
+ this.iabId = this.filterIab?.id;
121
+ },
122
+ },
111
123
  },
112
124
 
113
125
  created() {
@@ -117,6 +117,18 @@ export default defineComponent({
117
117
  searchPattern(value: string): void {
118
118
  this.sortCriteria = "" !== value ? "SCORE" : "DATE";
119
119
  },
120
+ filterRubrique: {
121
+ deep: true,
122
+ handler() {
123
+ this.updateRubriquageFilter(this.filterRubrique);
124
+ },
125
+ },
126
+ filterIab: {
127
+ deep: true,
128
+ handler() {
129
+ this.iabId = this.filterIab?.id;
130
+ },
131
+ },
120
132
  },
121
133
  created() {
122
134
  this.initPodcastsPage();
@@ -91,7 +91,7 @@ export default defineComponent({
91
91
  computed: {
92
92
  editRight(): boolean {
93
93
  return (
94
- (true === this.authenticated &&
94
+ (true === this.authenticated && true === state.generalParameters.isRadio &&
95
95
  this.myOrganisationId === this.radio?.organisationId) ||
96
96
  true === state.generalParameters.isAdmin
97
97
  );
@@ -3,7 +3,7 @@ import { Category } from "./class/general/category";
3
3
 
4
4
  const state: ParamStore = {
5
5
  generalParameters: {
6
- organisationId:undefined/* "ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c" */,
6
+ organisationId:undefined/* "ecbd98d9-79bd-4312-ad5e-fc7c1c4a191c" */,
7
7
  authenticated: false,
8
8
  isAdmin: false,
9
9
  isRoleLive: false,
@@ -12,7 +12,8 @@ const state: ParamStore = {
12
12
  isPlaylist: false,
13
13
  isProduction: false,
14
14
  isContribution: false,
15
- ApiUri: "https://api.preprod.saooti.org/",
15
+ isRadio: false,
16
+ ApiUri: "https://api.staging.saooti.org/",
16
17
  podcastmaker: false,
17
18
  buttonPlus: true,
18
19
  allCategories: [],
@@ -26,8 +27,8 @@ const state: ParamStore = {
26
27
  SharePlayer: true,
27
28
  ShareButtons: true,
28
29
  ShareDistribution: true,
29
- MiniplayerUri: "https://playerbeta.preprod.saooti.org/",
30
- hlsUri: "https://hls.live.preprod.saooti.org/",
30
+ MiniplayerUri: "https://playerbeta.staging.saooti.org/",
31
+ hlsUri: "https://hls.live.staging.saooti.org/",
31
32
  mainRubrique: 0,
32
33
  resourceUrl: undefined,
33
34
  podcastItemShowEmission: false,
@@ -79,14 +80,14 @@ const state: ParamStore = {
79
80
  userName: "",
80
81
  },
81
82
  octopusApi: {
82
- url: "https://api.preprod.saooti.org/",
83
- commentsUrl: "https://comments.preprod.saooti.org/",
84
- imageUrl: "https://imageproxy.preprod.saooti.org/",
85
- studioUrl: "https://studio.preprod.saooti.org/",
86
- playerUrl: "https://playerbeta.preprod.saooti.org/",
87
- speechToTextUrl: "https://speech2text.preprod.saooti.org/",
88
- radioUrl:"https://radio.preprod.saooti.org/",
89
- recoUrl: "https://reco.preprod.saooti.org/",
83
+ url: "https://api.staging.saooti.org/",
84
+ commentsUrl: "https://comments.staging.saooti.org/",
85
+ imageUrl: "https://imageproxy.staging.saooti.org/",
86
+ studioUrl: "https://studio.staging.saooti.org/",
87
+ playerUrl: "https://playerbeta.staging.saooti.org/",
88
+ speechToTextUrl: "https://speech2text.staging.saooti.org/",
89
+ radioUrl:"https://radio.staging.saooti.org/",
90
+ recoUrl: "https://reco.staging.saooti.org/",
90
91
  organisationId: undefined,
91
92
  rubriqueIdFilter: undefined,
92
93
  },
@@ -101,6 +102,7 @@ export interface GeneralParameters {
101
102
  isPlaylist?: boolean;
102
103
  isProduction?: boolean;
103
104
  isContribution?: boolean;
105
+ isRadio?:boolean;
104
106
  ApiUri?: string;
105
107
  podcastmaker?: boolean;
106
108
  buttonPlus?: boolean;