@christianriedl/media 1.0.152 → 1.0.153

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": "@christianriedl/media",
3
- "version": "1.0.152",
3
+ "version": "1.0.153",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -3,7 +3,7 @@
3
3
  import type { ComponentPublicInstance } from 'vue';
4
4
  import { useRouter } from 'vue-router';
5
5
  import { IAppState, IAppConfig, EDevice, EBrowser, appStateSymbol, appConfigSymbol, Helper } from '@christianriedl/utils';
6
- import { IRestResult } from '@christianriedl/rest';
6
+ import { IRestResult, IValueResult } from '@christianriedl/rest';
7
7
  import { EItemType, EMediaType, IMediaFolder, IMediaItem, IPhotoSelection, MediaService, IMediaService, getMediaSymbol,
8
8
  getMediaBinSymbol, IMediaAppConfig, LocationHelper
9
9
  } from '@christianriedl/media';
@@ -164,7 +164,7 @@
164
164
  const res: IRestResult<string> = await mediaService.addPhotoService(guid, appConfig.user, folder.dlnaid, mediaAppConfig.linkDaysValid);
165
165
  if (res) {
166
166
  if (res.ok)
167
- window.alert(`Created and Pasted - id : ${res.result.result} !`);
167
+ window.alert(`Created and Pasted - id : ${(res.result! as IValueResult<string>).result} !`);
168
168
  else if (res.statusCode == 404)
169
169
  window.alert(`Folder '${folder.dlnaid}' not found, don't use LOCATION folders !`)
170
170
  else
@@ -3,7 +3,7 @@
3
3
  import type { ComponentPublicInstance } from 'vue';
4
4
  import { useRouter } from 'vue-router';
5
5
  import { IAppState, IAppConfig, EDevice, EBrowser, appStateSymbol, appConfigSymbol, Helper } from '@christianriedl/utils';
6
- import { IRestResult } from '@christianriedl/rest';
6
+ import { IRestResult, IValueResult } from '@christianriedl/rest';
7
7
  import { EItemType, EMediaType, IMediaFolder, IMediaItem, IPhotoSelection, MediaService, IMediaService, getMediaSymbol, getMediaBinSymbol, IMediaAppConfig } from '@christianriedl/media';
8
8
  import FileUpload from '../components/FileUpload.vue';
9
9
  import PhotoDownload from '../components/PhotoDownload.vue';
@@ -139,7 +139,7 @@
139
139
  const res: IRestResult<string> = await mediaService.addPhotoService(guid, appConfig.user, folder.dlnaid, mediaAppConfig.linkDaysValid);
140
140
  if (res) {
141
141
  if (res.ok)
142
- window.alert(`Created and Pasted - id : ${res.result.result} !`);
142
+ window.alert(`Created and Pasted - id : ${(res.result! as IValueResult<string>).result} !`);
143
143
  else if (res.statusCode == 404)
144
144
  window.alert(`Folder '${folder.dlnaid}' not found, don't use LOCATION folders !`)
145
145
  else
@@ -2,7 +2,7 @@
2
2
  import { inject, ref, computed, onMounted, StyleValue } from 'vue';
3
3
  import { useRouter, useRoute } from 'vue-router';
4
4
  import { IAppState, appStateSymbol, IAppConfig, appConfigSymbol, EDevice, Helper } from '@christianriedl/utils';
5
- import { IRestResult } from '@christianriedl/rest';
5
+ import { IRestResult, IValueResult } from '@christianriedl/rest';
6
6
  import { EOrientation, EMediaType, IMediaFolder, IPictureFile, IMediaService, MediaService, IMediaAppConfig,
7
7
  EPictureFlags, getMediaSymbol, getMediaBinSymbol
8
8
  } from '@christianriedl/media';
@@ -71,7 +71,7 @@
71
71
  const res: IRestResult<string> = await mediaService.addPhotoService(guid, appConfig.user, folder.value!.dlnaid, mediaAppConfig.linkDaysValid, picIds);
72
72
  if (res) {
73
73
  if (res.ok)
74
- window.alert(`Created and Pasted - id : ${res.result.result} !`);
74
+ window.alert(`Created and Pasted - id : ${(res.result! as IValueResult<string>).result} !`);
75
75
  else if (res.statusCode == 404)
76
76
  window.alert(`Folder '${folder.value!.dlnaid}' not found, don't use LOCATION folders !`)
77
77
  else