jamespot-user-api 1.0.175 → 1.0.176
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/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/mediaLibrary/mediaLibrary.d.ts +2 -1
- package/lib/src/apis/mediaLibrary/mediaLibrary.mock.d.ts +1 -0
- package/lib/src/types/mediaLibrary.d.ts +11 -0
- package/package.json +1 -1
- package/phpunitMock/articleUpdate-mediaLibraryMoveFile.json +56 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { PagingResults, ApiWrapper, MediaLibraryList, GetUnclassifiedFilesParams, MediaLibraryStats, MediaLibraryFolderStats, Orders, Filters, MediaLibraryFilesStats } from '../../types';
|
|
2
|
+
import { PagingResults, ApiWrapper, MediaLibraryList, GetUnclassifiedFilesParams, MediaLibraryStats, MediaLibraryFolderStats, Orders, Filters, MediaLibraryFilesStats, MoveMediaLibraryFileParams } from '../../types';
|
|
3
3
|
export declare class JMediaLibraryApi extends JBaseApi {
|
|
4
4
|
GetUnclassifiedFiles(params: GetUnclassifiedFilesParams): Promise<ApiWrapper<PagingResults<MediaLibraryList>>>;
|
|
5
5
|
getAccess(): Promise<ApiWrapper<boolean>>;
|
|
@@ -8,4 +8,5 @@ export declare class JMediaLibraryApi extends JBaseApi {
|
|
|
8
8
|
getStats(): Promise<ApiWrapper<MediaLibraryStats>>;
|
|
9
9
|
readFolder(uri: string): Promise<ApiWrapper<boolean>>;
|
|
10
10
|
readFile(uri: string): Promise<ApiWrapper<boolean>>;
|
|
11
|
+
moveFile(params: MoveMediaLibraryFileParams): Promise<ApiWrapper<MediaLibraryList>>;
|
|
11
12
|
}
|
|
@@ -10,3 +10,4 @@ export declare const objectListMediaLibraryFoldersStatsList: ApiWrapper<PagingRe
|
|
|
10
10
|
export declare const objectListMediaLibraryFilesStatsList: ApiWrapper<PagingResults<MediaLibraryFilesStats>>;
|
|
11
11
|
export declare const mediaLibraryReadFile: ApiWrapper<boolean>;
|
|
12
12
|
export declare const mediaLibraryReadFolder: ApiWrapper<boolean>;
|
|
13
|
+
export declare const mediaLibraryMoveFile: ApiWrapper<MediaLibraryList>;
|
|
@@ -1689,3 +1689,14 @@ export declare const mediaLibraryStatsSchema: z.ZodObject<{
|
|
|
1689
1689
|
nbFiles: number;
|
|
1690
1690
|
}>;
|
|
1691
1691
|
export type MediaLibraryStats = z.infer<typeof mediaLibraryStatsSchema>;
|
|
1692
|
+
export declare const moveMediaLibraryFileParamsSchema: z.ZodObject<{
|
|
1693
|
+
uriFile: z.ZodString;
|
|
1694
|
+
uriFolder: z.ZodString;
|
|
1695
|
+
}, "strip", z.ZodTypeAny, {
|
|
1696
|
+
uriFile: string;
|
|
1697
|
+
uriFolder: string;
|
|
1698
|
+
}, {
|
|
1699
|
+
uriFile: string;
|
|
1700
|
+
uriFolder: string;
|
|
1701
|
+
}>;
|
|
1702
|
+
export type MoveMediaLibraryFileParams = z.infer<typeof moveMediaLibraryFileParamsSchema>;
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "update",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [
|
|
6
|
+
{
|
|
7
|
+
"code": 200,
|
|
8
|
+
"msg": "Enregistrement r\u00e9ussi"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"result": {
|
|
12
|
+
"id": 24,
|
|
13
|
+
"mainType": "article",
|
|
14
|
+
"type": "mediaLibraryFile",
|
|
15
|
+
"uri": "mediaLibraryFile/24",
|
|
16
|
+
"dateCreation": "2024-08-01 17:01:36",
|
|
17
|
+
"dateModified": "2024-08-01 17:01:36",
|
|
18
|
+
"title": "Media Library File",
|
|
19
|
+
"_url": "/article/24",
|
|
20
|
+
"attachment": {
|
|
21
|
+
"id": 14,
|
|
22
|
+
"mainType": "fileArticle",
|
|
23
|
+
"type": "fileArticle",
|
|
24
|
+
"uri": "fileArticle/14",
|
|
25
|
+
"dateCreation": "2024-08-01 17:01:36",
|
|
26
|
+
"dateModified": null,
|
|
27
|
+
"title": "imgTest.jpg",
|
|
28
|
+
"size": 20904,
|
|
29
|
+
"mimetype": "image/jpeg",
|
|
30
|
+
"_url": "/article/24"
|
|
31
|
+
},
|
|
32
|
+
"_user": {
|
|
33
|
+
"id": 4,
|
|
34
|
+
"mainType": "user",
|
|
35
|
+
"type": "user",
|
|
36
|
+
"uri": "user/4",
|
|
37
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
38
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
39
|
+
"title": "Admin1",
|
|
40
|
+
"_url": "/user/4",
|
|
41
|
+
"level": 9
|
|
42
|
+
},
|
|
43
|
+
"_right": {
|
|
44
|
+
"create": true,
|
|
45
|
+
"read": true,
|
|
46
|
+
"publish": false,
|
|
47
|
+
"administrate": true,
|
|
48
|
+
"update": true,
|
|
49
|
+
"delete": true,
|
|
50
|
+
"comment": true,
|
|
51
|
+
"member": true
|
|
52
|
+
},
|
|
53
|
+
"description": "<div class='content-html'></div>",
|
|
54
|
+
"_audience": []
|
|
55
|
+
}
|
|
56
|
+
}
|