@saooti/octopus-sdk 37.0.26 → 37.0.27

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": "37.0.26",
3
+ "version": "37.0.27",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -74,6 +74,7 @@ export default defineComponent({
74
74
  rubriquageId: { default: () => [], type: Array as () => Array<number> },
75
75
  noRubriquageId: { default: () => [], type: Array as () => Array<number> },
76
76
  justSizeChosen: { default: false, type: Boolean },
77
+ withVideo: { default: undefined, type: Boolean },
77
78
  },
78
79
  emits: ["fetch", "emptyList"],
79
80
 
@@ -103,7 +104,8 @@ export default defineComponent({
103
104
  changed(): string {
104
105
  return `${this.first}|${this.size}|${this.organisation}|${this.emissionId}|${this.sortCriteria}|${this.sort}
105
106
  ${this.iabId}|${this.participantId}|${this.query}|${this.monetization}|${this.popularSort}|
106
- ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}`;
107
+ ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}|
108
+ ${this.withVideo}`;
107
109
  },
108
110
  organisation(): Array<string> {
109
111
  if (this.organisationId) {
@@ -183,6 +185,7 @@ export default defineComponent({
183
185
  ? this.authProfile?.userId
184
186
  : undefined,
185
187
  includeStatus: ["READY", "PROCESSING"],
188
+ withVideo: this.withVideo
186
189
  };
187
190
  try {
188
191
  const data = await octopusApi.fetchDataWithParams<{
@@ -37,6 +37,7 @@
37
37
  :rubrique-id="rubriqueId"
38
38
  :rubriquage-id="rubriquageId"
39
39
  :no-rubriquage-id="noRubriquageId"
40
+ :with-video="withVideo"
40
41
  />
41
42
  </div>
42
43
  </template>
@@ -80,7 +81,6 @@ export default defineComponent({
80
81
  noRubriquageId: [] as Array<number>,
81
82
  rubriquageId: [] as Array<number>,
82
83
  rubriqueId: [] as Array<number>,
83
- //VIDEO_WORK
84
84
  onlyVideo: false as boolean,
85
85
  };
86
86
  },
@@ -100,6 +100,9 @@ export default defineComponent({
100
100
  organisation(): string | undefined {
101
101
  return this.organisationId ? this.organisationId : this.filterOrgaId;
102
102
  },
103
+ withVideo(): boolean|undefined{
104
+ return false===this.onlyVideo ? undefined : true;
105
+ }
103
106
  },
104
107
  watch: {
105
108
  organisationId(): void {