@saooti/octopus-sdk 32.0.27 → 32.0.29

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 CHANGED
@@ -671,4 +671,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
671
671
  * 32.0.24 CDI podcastmaker
672
672
  * 32.0.25 #11391
673
673
  * 32.0.26 Image Proxy
674
- * 32.0.27 Image Proxy -> webp
674
+ * 32.0.27 Image Proxy -> webp
675
+ * 32.0.28 Image Proxy
676
+ * 32.0.29 SpeechToText
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.27",
3
+ "version": "32.0.29",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -14,7 +14,7 @@
14
14
  "prettify": "prettier --single-quote --trailing-comma es5 --write src/**/**/**/*.{js,vue}"
15
15
  },
16
16
  "dependencies": {
17
- "@saooti/octopus-api": "^0.32.2",
17
+ "@saooti/octopus-api": "^0.32.3",
18
18
  "@vue/cli": "^5.0.8",
19
19
  "@vue/compat": "^3.2.37",
20
20
  "autoprefixer": "^10.4.8",
@@ -12,7 +12,7 @@ enum ModuleApi {
12
12
  STORAGE = 8,
13
13
  STUDIO = 9,
14
14
  PROCESSOR= 10,
15
- IMAGE=11
15
+ SPEECHTOTEXT=11
16
16
  }
17
17
  /* eslint-disable */
18
18
  export default {
@@ -68,6 +68,7 @@ import { Emission } from '@/store/class/general/emission';
68
68
  import { Rubrique } from '@/store/class/rubrique/rubrique';
69
69
  import { defineComponent } from 'vue'
70
70
  import { AxiosError } from 'axios';
71
+ import { imageProxy } from '../../mixins/functions';
71
72
  import { Rubriquage } from '@/store/class/rubrique/rubriquage';
72
73
  export default defineComponent({
73
74
  name: 'EmissionInlineList',
@@ -77,7 +78,7 @@ export default defineComponent({
77
78
  ClassicLoading
78
79
  },
79
80
 
80
- mixins: [handle403],
81
+ mixins: [handle403,imageProxy],
81
82
 
82
83
  props: {
83
84
  organisationId: { default: undefined, type: String},
@@ -220,7 +221,7 @@ export default defineComponent({
220
221
  },
221
222
  preloadImage(url: string): void {
222
223
  const img = new Image();
223
- img.src = url;
224
+ img.src = this.proxyImageUrl(url,'260');
224
225
  },
225
226
  async fetchRubriques(): Promise<void> {
226
227
  const data = await octopusApi.fetchData<Rubriquage>(0, 'rubriquage/'+this.displayRubriquage);
@@ -53,6 +53,7 @@ import ClassicLoading from '../../form/ClassicLoading.vue';
53
53
  const PHONE_WIDTH = 960;
54
54
  import { state } from '../../../store/paramStore';
55
55
  import { Podcast } from '@/store/class/general/podcast';
56
+ import { imageProxy } from '../../mixins/functions';
56
57
  import { defineComponent } from 'vue'
57
58
  export default defineComponent({
58
59
  name: 'PodcastInlineListClassic',
@@ -62,7 +63,7 @@ export default defineComponent({
62
63
  ClassicLoading,
63
64
  PodcastInlineListTemplate
64
65
  },
65
-
66
+ mixins:[imageProxy],
66
67
  props: {
67
68
  organisationId: { default: undefined, type: String},
68
69
  emissionId: { default: undefined, type: Number},
@@ -233,7 +234,7 @@ export default defineComponent({
233
234
  },
234
235
  preloadImage(url: string): void {
235
236
  const img = new Image();
236
- img.src = url;
237
+ img.src = this.proxyImageUrl(url,'260');
237
238
  },
238
239
  },
239
240
  })
@@ -88,6 +88,7 @@ const state:paramStore = {
88
88
  imageUrl:'http://imageproxy.dev2.saooti.org/',
89
89
  studioUrl: 'http://studio.dev2.saooti.org/',
90
90
  playerUrl: 'https://playerbeta.dev2.saooti.org/',
91
+ speechToTextUrl:'https://speech2text.dev2.saooti.org/',
91
92
  organisationId: undefined,
92
93
  rubriqueIdFilter: undefined,
93
94
  },
@@ -179,6 +180,7 @@ export interface OctopusApi{
179
180
  imageUrl?: string,
180
181
  studioUrl?: string,
181
182
  playerUrl?: string,
183
+ speechToTextUrl?:string,
182
184
  organisationId?: string | undefined,
183
185
  oAuthParam?: {
184
186
  accessToken: string,