jamespot-user-api 1.0.164 → 1.0.165
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 +11 -11
- 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/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.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/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.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/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.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 +6 -1
- package/lib/src/apis/mediaLibrary/mediaLibrary.mock.d.ts +6 -1
- package/lib/src/types/mediaLibrary.d.ts +52 -0
- package/package.json +1 -1
- package/phpunitMock/mediaLibraryModeratorStats-default.json +1 -0
- package/phpunitMock/mediaLibraryReadFile-default.json +1 -0
- package/phpunitMock/mediaLibraryReadFolder-default.json +1 -0
- package/phpunitMock/objectListMediaLibraryFilesStatsList-default.json +23 -0
- package/phpunitMock/objectListMediaLibraryFoldersStatsList-default.json +14 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { PagingResults, ApiWrapper, MediaLibraryList, GetUnclassifiedFilesParams } from '../../types';
|
|
2
|
+
import { PagingResults, ApiWrapper, MediaLibraryList, GetUnclassifiedFilesParams, MediaLibraryStats, MediaLibraryFolderStats, Orders, Filters, MediaLibraryFilesStats } 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>>;
|
|
6
|
+
getFoldersStatsList(filters?: Filters, orders?: Orders, page?: number): Promise<ApiWrapper<PagingResults<MediaLibraryFolderStats>>>;
|
|
7
|
+
getFilesStatsList(filters?: Filters, orders?: Orders, page?: number): Promise<ApiWrapper<PagingResults<MediaLibraryFilesStats>>>;
|
|
8
|
+
getStats(filters?: Filters): Promise<ApiWrapper<MediaLibraryStats>>;
|
|
9
|
+
readFolder(uri: string): Promise<ApiWrapper<boolean>>;
|
|
10
|
+
readFile(uri: string): Promise<ApiWrapper<boolean>>;
|
|
6
11
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { ApiWrapper, MediaLibraryList, PagingResults } from '../../types';
|
|
1
|
+
import { ApiWrapper, MediaLibraryFilesStats, MediaLibraryFolderStats, MediaLibraryList, MediaLibraryStats, PagingResults } from '../../types';
|
|
2
2
|
export declare const mediaLibraryGetUnclassifiedFilesDefault: ApiWrapper<PagingResults<MediaLibraryList>>;
|
|
3
3
|
export declare const mediaLibraryAccessDefault: ApiWrapper<boolean>;
|
|
4
4
|
export declare const mediaLibraryAccessAdmin: ApiWrapper<boolean>;
|
|
5
5
|
export declare const mediaLibraryAccessUserNotAdmin: ApiWrapper<boolean>;
|
|
6
6
|
export declare const mediaLibraryAccessPersonnalized: ApiWrapper<boolean>;
|
|
7
7
|
export declare const mediaLibraryAccessPersonnalizedUser: ApiWrapper<boolean>;
|
|
8
|
+
export declare const mediaLibraryModeratorStats: ApiWrapper<MediaLibraryStats>;
|
|
9
|
+
export declare const objectListMediaLibraryFoldersStatsList: ApiWrapper<PagingResults<MediaLibraryFolderStats>>;
|
|
10
|
+
export declare const objectListMediaLibraryFilesStatsList: ApiWrapper<PagingResults<MediaLibraryFilesStats>>;
|
|
11
|
+
export declare const mediaLibraryReadFile: ApiWrapper<boolean>;
|
|
12
|
+
export declare const mediaLibraryReadFolder: ApiWrapper<boolean>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { AudienceAutocomplete, Format, jArticleList, jArticleLittle, jFileLittle } from '../types';
|
|
2
3
|
export type MediaLibraryLittle = jArticleLittle & {
|
|
3
4
|
attachment: jFileLittle;
|
|
@@ -14,3 +15,54 @@ export type GetUnclassifiedFilesParams = {
|
|
|
14
15
|
limit?: number;
|
|
15
16
|
nolimit?: boolean;
|
|
16
17
|
};
|
|
18
|
+
export declare const mediaLibraryFilesStatsSchema: z.ZodObject<{
|
|
19
|
+
id: z.ZodNumber;
|
|
20
|
+
idFolder: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
fileName: z.ZodString;
|
|
22
|
+
nbViews: z.ZodNumber;
|
|
23
|
+
nbDistinctViews: z.ZodNumber;
|
|
24
|
+
nbDownloads: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
id: number;
|
|
27
|
+
fileName: string;
|
|
28
|
+
nbViews: number;
|
|
29
|
+
nbDistinctViews: number;
|
|
30
|
+
nbDownloads: number;
|
|
31
|
+
idFolder?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
id: number;
|
|
34
|
+
fileName: string;
|
|
35
|
+
nbViews: number;
|
|
36
|
+
nbDistinctViews: number;
|
|
37
|
+
nbDownloads: number;
|
|
38
|
+
idFolder?: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export type MediaLibraryFilesStats = z.infer<typeof mediaLibraryFilesStatsSchema>;
|
|
41
|
+
export declare const mediaLibraryFolderStatsSchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodNumber;
|
|
43
|
+
folderName: z.ZodString;
|
|
44
|
+
nb: z.ZodNumber;
|
|
45
|
+
nbDistinct: z.ZodNumber;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
id: number;
|
|
48
|
+
folderName: string;
|
|
49
|
+
nb: number;
|
|
50
|
+
nbDistinct: number;
|
|
51
|
+
}, {
|
|
52
|
+
id: number;
|
|
53
|
+
folderName: string;
|
|
54
|
+
nb: number;
|
|
55
|
+
nbDistinct: number;
|
|
56
|
+
}>;
|
|
57
|
+
export type MediaLibraryFolderStats = z.infer<typeof mediaLibraryFolderStatsSchema>;
|
|
58
|
+
export declare const mediaLibraryStatsSchema: z.ZodObject<{
|
|
59
|
+
nbFolders: z.ZodNumber;
|
|
60
|
+
nbFiles: z.ZodNumber;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
nbFolders: number;
|
|
63
|
+
nbFiles: number;
|
|
64
|
+
}, {
|
|
65
|
+
nbFolders: number;
|
|
66
|
+
nbFiles: number;
|
|
67
|
+
}>;
|
|
68
|
+
export type MediaLibraryStats = z.infer<typeof mediaLibraryStatsSchema>;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "moderatorStats", "error": 0, "messages": [], "result": { "nbFolders": 1, "nbFiles": 1 } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "MediaLibrary", "f": "ReadFile", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "MediaLibrary", "f": "ReadFolder", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "objectListMediaLibrary",
|
|
3
|
+
"f": "FilesStatsList",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"limit": 18,
|
|
8
|
+
"page": 1,
|
|
9
|
+
"cnt": 1,
|
|
10
|
+
"data": [
|
|
11
|
+
{
|
|
12
|
+
"idFile": 4,
|
|
13
|
+
"idFolder": 13,
|
|
14
|
+
"fileName": "Media Library File",
|
|
15
|
+
"nbViews": 0,
|
|
16
|
+
"nbDistinctViews": 0,
|
|
17
|
+
"nbDownloads": 0
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"facets": null,
|
|
21
|
+
"idQuery": null
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "objectListMediaLibrary",
|
|
3
|
+
"f": "FoldersStatsList",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"limit": 18,
|
|
8
|
+
"page": 1,
|
|
9
|
+
"cnt": 1,
|
|
10
|
+
"data": [{ "idFolder": 13, "folderName": "MediaLib Folder 1", "nb": 0, "nbDistinct": 0 }],
|
|
11
|
+
"facets": null,
|
|
12
|
+
"idQuery": null
|
|
13
|
+
}
|
|
14
|
+
}
|