jamespot-user-api 1.0.155 → 1.0.157
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 +9 -9
- 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/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 +1 -0
- package/lib/src/apis/mediaLibrary/mediaLibrary.mock.d.ts +5 -0
- package/lib/src/types/hook.d.ts +21 -0
- package/package.json +1 -1
- package/phpunitMock/mediaLibraryAccess-admin.json +1 -0
- package/phpunitMock/mediaLibraryAccess-default.json +1 -0
- package/phpunitMock/mediaLibraryAccess-personnalized.json +1 -0
- package/phpunitMock/mediaLibraryAccess-personnalizeduser.json +1 -0
- package/phpunitMock/mediaLibraryAccess-userNotAdmin.json +1 -0
- package/phpunitMock/objectList-mediaLibraryFolder.json +138 -0
|
@@ -2,4 +2,5 @@ import { JBaseApi } from '../base';
|
|
|
2
2
|
import { PagingResults, ApiWrapper, MediaLibraryList, GetUnclassifiedFilesParams } from '../../types';
|
|
3
3
|
export declare class JMediaLibraryApi extends JBaseApi {
|
|
4
4
|
GetUnclassifiedFiles(params: GetUnclassifiedFilesParams): Promise<ApiWrapper<PagingResults<MediaLibraryList>>>;
|
|
5
|
+
getAccess(): Promise<ApiWrapper<boolean>>;
|
|
5
6
|
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { ApiWrapper, MediaLibraryList, PagingResults } from '../../types';
|
|
2
2
|
export declare const mediaLibraryGetUnclassifiedFilesDefault: ApiWrapper<PagingResults<MediaLibraryList>>;
|
|
3
|
+
export declare const mediaLibraryAccessDefault: ApiWrapper<boolean>;
|
|
4
|
+
export declare const mediaLibraryAccessAdmin: ApiWrapper<boolean>;
|
|
5
|
+
export declare const mediaLibraryAccessUserNotAdmin: ApiWrapper<boolean>;
|
|
6
|
+
export declare const mediaLibraryAccessPersonnalized: ApiWrapper<boolean>;
|
|
7
|
+
export declare const mediaLibraryAccessPersonnalizedUser: ApiWrapper<boolean>;
|
package/lib/src/types/hook.d.ts
CHANGED
|
@@ -57,6 +57,14 @@ declare const fileBankHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
57
57
|
order: "ASC" | "DESC";
|
|
58
58
|
}>>;
|
|
59
59
|
export type FileBankHook = z.infer<typeof fileBankHookSchema>;
|
|
60
|
+
declare const spotRssFeedSchema: z.ZodIntersection<z.ZodObject<{
|
|
61
|
+
isActive: z.ZodBoolean;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
isActive: boolean;
|
|
64
|
+
}, {
|
|
65
|
+
isActive: boolean;
|
|
66
|
+
}>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
67
|
+
export type SpotRssFeed = z.infer<typeof spotRssFeedSchema>;
|
|
60
68
|
/**
|
|
61
69
|
* HookListType
|
|
62
70
|
*/
|
|
@@ -103,6 +111,13 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
103
111
|
orderBy: string;
|
|
104
112
|
order: "ASC" | "DESC";
|
|
105
113
|
}>>>;
|
|
114
|
+
spotRssFeed: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
115
|
+
isActive: z.ZodBoolean;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
}, {
|
|
119
|
+
isActive: boolean;
|
|
120
|
+
}>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
|
|
106
121
|
}, "strip", z.ZodTypeAny, {
|
|
107
122
|
DriveHook?: ({
|
|
108
123
|
isActive: boolean;
|
|
@@ -120,6 +135,9 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
120
135
|
orderBy: string;
|
|
121
136
|
order: "ASC" | "DESC";
|
|
122
137
|
}) | undefined;
|
|
138
|
+
spotRssFeed?: ({
|
|
139
|
+
isActive: boolean;
|
|
140
|
+
} & {}) | undefined;
|
|
123
141
|
}, {
|
|
124
142
|
DriveHook?: ({
|
|
125
143
|
isActive: boolean;
|
|
@@ -137,6 +155,9 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
137
155
|
orderBy: string;
|
|
138
156
|
order: "ASC" | "DESC";
|
|
139
157
|
}) | undefined;
|
|
158
|
+
spotRssFeed?: ({
|
|
159
|
+
isActive: boolean;
|
|
160
|
+
} & {}) | undefined;
|
|
140
161
|
}>;
|
|
141
162
|
export type HookListType = z.infer<typeof hookListTypeSchema>;
|
|
142
163
|
export declare const validateIsFormatHookListType: (object: object) => HookListType;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "access", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "access", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "access", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "access", "error": 0, "messages": [], "result": false }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "mediaLibrary", "f": "access", "error": 0, "messages": [], "result": false }
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "objectList",
|
|
3
|
+
"f": "jamespotArticleQueryList",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"limit": 10,
|
|
8
|
+
"page": 1,
|
|
9
|
+
"cnt": 5,
|
|
10
|
+
"data": [
|
|
11
|
+
{
|
|
12
|
+
"id": 190,
|
|
13
|
+
"mainType": "article",
|
|
14
|
+
"type": "mediaLibraryFolder",
|
|
15
|
+
"uri": "mediaLibraryFolder/190",
|
|
16
|
+
"dateCreation": "2023-08-23 10:05:07",
|
|
17
|
+
"dateModified": "2023-08-25 10:36:58",
|
|
18
|
+
"title": "Mon dossier",
|
|
19
|
+
"_url": "/article/190",
|
|
20
|
+
"_audience": [],
|
|
21
|
+
"_user": {
|
|
22
|
+
"id": 1,
|
|
23
|
+
"mainType": "user",
|
|
24
|
+
"type": "user",
|
|
25
|
+
"uri": "user/1",
|
|
26
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
27
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
28
|
+
"title": "AdminJenkins",
|
|
29
|
+
"_url": "/user/1",
|
|
30
|
+
"level": 9
|
|
31
|
+
},
|
|
32
|
+
"image": {
|
|
33
|
+
"width": 612,
|
|
34
|
+
"height": 454
|
|
35
|
+
},
|
|
36
|
+
"description": "<div class=\u0027content-html\u0027><div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022>Hello</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": 350,
|
|
40
|
+
"mainType": "article",
|
|
41
|
+
"type": "mediaLibraryFolder",
|
|
42
|
+
"uri": "mediaLibraryFolder/350",
|
|
43
|
+
"dateCreation": "2023-10-19 10:08:40",
|
|
44
|
+
"dateModified": "2024-01-17 15:28:36",
|
|
45
|
+
"title": "test",
|
|
46
|
+
"_url": "/article/350",
|
|
47
|
+
"_audience": [],
|
|
48
|
+
"_user": {
|
|
49
|
+
"id": 1,
|
|
50
|
+
"mainType": "user",
|
|
51
|
+
"type": "user",
|
|
52
|
+
"uri": "user/1",
|
|
53
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
54
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
55
|
+
"title": "AdminJenkins",
|
|
56
|
+
"_url": "/user/1",
|
|
57
|
+
"level": 9
|
|
58
|
+
},
|
|
59
|
+
"image": {
|
|
60
|
+
"width": 1648,
|
|
61
|
+
"height": 929
|
|
62
|
+
},
|
|
63
|
+
"description": "<div class=\u0027content-html\u0027><div class=\u0022content-html\u0022>\n<div class=\u0022content-html\u0022></div>\n</div>\n</div>"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": 351,
|
|
67
|
+
"mainType": "article",
|
|
68
|
+
"type": "mediaLibraryFolder",
|
|
69
|
+
"uri": "mediaLibraryFolder/351",
|
|
70
|
+
"dateCreation": "2023-10-19 15:48:46",
|
|
71
|
+
"dateModified": "2023-12-15 09:34:18",
|
|
72
|
+
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Blandit massa enim nec dui nunc mattis enim. Laoreet non curabitur gravida arcu ac. Tortor id aliquet lectus proin nibh. Orci sagit",
|
|
73
|
+
"_url": "/article/351",
|
|
74
|
+
"_audience": [],
|
|
75
|
+
"_user": {
|
|
76
|
+
"id": 1,
|
|
77
|
+
"mainType": "user",
|
|
78
|
+
"type": "user",
|
|
79
|
+
"uri": "user/1",
|
|
80
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
81
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
82
|
+
"title": "AdminJenkins",
|
|
83
|
+
"_url": "/user/1",
|
|
84
|
+
"level": 9
|
|
85
|
+
},
|
|
86
|
+
"description": "<div class=\u0027content-html\u0027><div class=\u0022content-html\u0022></div>\n</div>"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": 851,
|
|
90
|
+
"mainType": "article",
|
|
91
|
+
"type": "mediaLibraryFolder",
|
|
92
|
+
"uri": "mediaLibraryFolder/851",
|
|
93
|
+
"dateCreation": "2024-05-06 14:17:03",
|
|
94
|
+
"dateModified": "2024-05-06 14:17:03",
|
|
95
|
+
"title": "yes",
|
|
96
|
+
"_url": "/article/851",
|
|
97
|
+
"_audience": [],
|
|
98
|
+
"_user": {
|
|
99
|
+
"id": 1,
|
|
100
|
+
"mainType": "user",
|
|
101
|
+
"type": "user",
|
|
102
|
+
"uri": "user/1",
|
|
103
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
104
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
105
|
+
"title": "AdminJenkins",
|
|
106
|
+
"_url": "/user/1",
|
|
107
|
+
"level": 9
|
|
108
|
+
},
|
|
109
|
+
"description": "<div class=\u0027content-html\u0027>ezeza</div>"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": 853,
|
|
113
|
+
"mainType": "article",
|
|
114
|
+
"type": "mediaLibraryFolder",
|
|
115
|
+
"uri": "mediaLibraryFolder/853",
|
|
116
|
+
"dateCreation": "2024-05-07 09:58:18",
|
|
117
|
+
"dateModified": "2024-05-07 09:58:35",
|
|
118
|
+
"title": "test Heddy dossier",
|
|
119
|
+
"_url": "/article/853",
|
|
120
|
+
"_audience": [],
|
|
121
|
+
"_user": {
|
|
122
|
+
"id": 1,
|
|
123
|
+
"mainType": "user",
|
|
124
|
+
"type": "user",
|
|
125
|
+
"uri": "user/1",
|
|
126
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
127
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
128
|
+
"title": "AdminJenkins",
|
|
129
|
+
"_url": "/user/1",
|
|
130
|
+
"level": 9
|
|
131
|
+
},
|
|
132
|
+
"description": "<div class=\u0027content-html\u0027><div class=\u0022content-html\u0022></div>\n</div>"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"facets": null,
|
|
136
|
+
"idQuery": null
|
|
137
|
+
}
|
|
138
|
+
}
|