@saooti/octopus-sdk 41.1.7 → 41.1.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
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 41.1.8 (10/12/2025)
4
+
5
+ **Fixes**
6
+
7
+ - Correction recherche dans `PodcastList`
8
+
3
9
  ## 41.1.7 (10/12/2025)
4
10
 
5
11
  **Misc**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "41.1.7",
3
+ "version": "41.1.8",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -68,36 +68,46 @@ import { ListClassicReturn } from "../../../stores/class/general/listReturn";
68
68
  import { useI18n } from "vue-i18n";
69
69
  import { podcastApi, PodcastMonetisation, PodcastSearchOptions, PodcastSort } from "../../../api/podcastApi";
70
70
 
71
-
72
71
  //Props
73
- const props = defineProps({
74
- first: { default: 0, type: Number },
75
- size: { default: 30, type: Number },
76
- organisationId: { default: () => [], type: Array as () => Array<string> },
77
- emissionId: { default: undefined, type: Number },
78
- iabId: { default: undefined, type: Number },
79
- participantId: { default: undefined, type: Number },
80
- query: { default: undefined, type: String },
81
- monetisable: { default: undefined, type: String as () => PodcastMonetisation },
82
- popularSort: { default: false, type: Boolean },
83
- reload: { default: false, type: Boolean },
84
- before: { default: undefined, type: String },
85
- after: { default: undefined, type: String },
86
- includeHidden: { default: false, type: Boolean },
87
- showCount: { default: false, type: Boolean },
88
- displaySortText: { default: true, type: Boolean },
89
- sortCriteria: { default: undefined, type: String as () => PodcastSort },
90
- validity: { default: 'true', type: String },
91
- rubriqueId: { default: () => [], type: Array as () => Array<number> },
92
- rubriquageId: { default: () => [], type: Array as () => Array<number> },
93
- noRubriquageId: { default: () => [], type: Array as () => Array<number> },
94
- justSizeChosen: { default: false, type: Boolean },
95
- withVideo: { default: undefined, type: Boolean },
96
- includeTag:{ default: () => [], type: Array as () => Array<string> },
97
- forceUpdateParameters: { default: false, type: Boolean },
72
+ const props = withDefaults(defineProps<{
73
+ first?: number;
74
+ size?: number;
75
+ organisationId?: Array<string>;
76
+ emissionId?: number;
77
+ iabId?: number;
78
+ participantId?: number;
79
+ query?: string;
80
+ monetisable?: PodcastMonetisation;
81
+ popularSort?: boolean;
82
+ reload?: boolean;
83
+ before?: string;
84
+ after?: string;
85
+ includeHidden?: boolean;
86
+ showCount?: boolean;
87
+ displaySortText?: boolean;
88
+ sortCriteria?: PodcastSort;
89
+ validity?: 'true'|'false'|boolean;
90
+ rubriqueId?: Array<number>;
91
+ rubriquageId?: Array<number>;
92
+ noRubriquageId?: Array<number>;
93
+ justSizeChosen?: boolean;
94
+ withVideo?: boolean;
95
+ includeTag?: Array<string>;
96
+ forceUpdateParameters?: boolean;
98
97
  /** The beneficiaries to filter on */
99
- beneficiaries: { default: null, type: Array as () => Array<string> }
100
- })
98
+ beneficiaries?: Array<string>;
99
+ }>(), {
100
+ first: 0,
101
+ size: 30,
102
+ popularSort: false,
103
+ reload: false,
104
+ includeHidden: false,
105
+ showCount: false,
106
+ displaySortText: true,
107
+ validity: true,
108
+ justSizeChosen: false,
109
+ forceUpdateParameters: false
110
+ });
101
111
 
102
112
  //Emits
103
113
  const emit = defineEmits(["fetch", "emptyList"]);
@@ -180,7 +190,7 @@ async function fetchContent(reset: boolean): Promise<void> {
180
190
 
181
191
  let validity: undefined|boolean = undefined;
182
192
  if (props.validity !== undefined) {
183
- validity = props.validity !== 'true';
193
+ validity = props.validity === 'true' || props.validity === true;
184
194
  }
185
195
 
186
196
  const param: PodcastSearchOptions = {
@@ -195,11 +205,11 @@ async function fetchContent(reset: boolean): Promise<void> {
195
205
  sort: sort.value,
196
206
  pubDateBefore: props.before,
197
207
  pubDateAfter: props.after,
198
- noRubriquageId: props.noRubriquageId.length
208
+ noRubriquageId: props.noRubriquageId?.length
199
209
  ? props.noRubriquageId
200
210
  : undefined,
201
- rubriqueId: props.rubriqueId.length ? props.rubriqueId : undefined,
202
- rubriquageId: props.rubriquageId.length ? props.rubriquageId : undefined,
211
+ rubriqueId: props.rubriqueId?.length ? props.rubriqueId : undefined,
212
+ rubriquageId: props.rubriquageId?.length ? props.rubriquageId : undefined,
203
213
  includeHidden: props.includeHidden,
204
214
  validity,
205
215
  /* publisherId:
@@ -208,7 +218,7 @@ async function fetchContent(reset: boolean): Promise<void> {
208
218
  : undefined, */
209
219
  processingStatus: [PodcastProcessingStatus.Ready, PodcastProcessingStatus.Processing],
210
220
  withVideo: props.withVideo,
211
- tags: props.includeTag.length ? props.includeTag : undefined,
221
+ tags: props.includeTag?.length ? props.includeTag : undefined,
212
222
  beneficiaries: props.beneficiaries ?? undefined
213
223
  };
214
224
  try {