jamespot-user-api 1.0.151 → 1.0.152

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.
Files changed (80) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +11 -11
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBookmarkApi.html +1 -1
  11. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  12. package/documentation/classes/JCommunityApi.html +1 -1
  13. package/documentation/classes/JDiapazoneApi.html +1 -1
  14. package/documentation/classes/JFaqApi.html +1 -1
  15. package/documentation/classes/JFileApi.html +6 -6
  16. package/documentation/classes/JFilebankApi.html +1 -1
  17. package/documentation/classes/JGlobalApi.html +1 -1
  18. package/documentation/classes/JGroupApi.html +9 -9
  19. package/documentation/classes/JIAApi.html +1 -1
  20. package/documentation/classes/JLandApi.html +1 -1
  21. package/documentation/classes/JMessengerApi.html +1 -1
  22. package/documentation/classes/JObjectApi.html +1 -1
  23. package/documentation/classes/JSearchApi.html +6 -6
  24. package/documentation/classes/JShareApi.html +1 -1
  25. package/documentation/classes/JSocialActionApi.html +1 -1
  26. package/documentation/classes/JTaxonomyApi.html +2 -2
  27. package/documentation/classes/JUserApi.html +7 -7
  28. package/documentation/classes/JWedocApi.html +1 -1
  29. package/documentation/classes/JWidgetApi.html +1 -1
  30. package/documentation/classes/JamespotUserApi.html +1 -1
  31. package/documentation/classes/Network.html +1 -1
  32. package/documentation/classes/TVDisplayApi.html +1 -1
  33. package/documentation/classes/WindowBrowser.html +1 -1
  34. package/documentation/enums/StudioApplicationStatus.html +1 -1
  35. package/documentation/index.html +1 -1
  36. package/documentation/interfaces/AccessRightObject.html +1 -1
  37. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  38. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  39. package/documentation/interfaces/ApiWrapper.html +1 -1
  40. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  41. package/documentation/interfaces/BaseMessage.html +1 -1
  42. package/documentation/interfaces/Category.html +1 -1
  43. package/documentation/interfaces/FileBankProps.html +1 -1
  44. package/documentation/interfaces/FolderProps.html +1 -1
  45. package/documentation/interfaces/ListFilterSpec.html +1 -1
  46. package/documentation/interfaces/OF.html +1 -1
  47. package/documentation/interfaces/ObjectListProps.html +1 -1
  48. package/documentation/interfaces/PagingResults.html +1 -1
  49. package/documentation/interfaces/RootFolderProps.html +1 -1
  50. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  51. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  52. package/documentation/interfaces/SearchConfig.html +1 -1
  53. package/documentation/interfaces/SearchFacetModel.html +1 -1
  54. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  55. package/documentation/interfaces/SearchQuery.html +1 -1
  56. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  57. package/documentation/interfaces/SearchQueryOption.html +1 -1
  58. package/documentation/interfaces/SearchQueryResult.html +1 -1
  59. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  60. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  61. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  62. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  63. package/documentation/interfaces/SpotProps.html +1 -1
  64. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  65. package/documentation/interfaces/WindowInterface.html +1 -1
  66. package/documentation/modules.html +10 -10
  67. package/lib/jamespot-user-api.js +1 -1
  68. package/lib/jamespot-user-api.js.map +1 -1
  69. package/lib/src/apis/file/file.d.ts +6 -1
  70. package/lib/src/apis/file/file.mock.d.ts +6 -1
  71. package/lib/src/types/file.d.ts +6 -0
  72. package/lib/src/types/meeting.d.ts +1 -1
  73. package/lib/src/types/search.d.ts +1 -0
  74. package/lib/src/types/socialEvent.d.ts +1 -1
  75. package/package.json +1 -1
  76. package/phpunitMock/articleGet-meeting-view.json +5 -6
  77. package/phpunitMock/articleGet-socialEvent-view.json +5 -6
  78. package/phpunitMock/fileGeneratePreview-success.json +7 -0
  79. package/phpunitMock/fileGetDownload-success.json +17 -0
  80. package/phpunitMock/searchGetConfig-default.json +41 -10
@@ -1,4 +1,4 @@
1
- import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle, jFileLittleCrop } from '../../types';
1
+ import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle, jFileLittleCrop, UserDownload } from '../../types';
2
2
  import { JBaseApi } from '../base';
3
3
  export declare class JFileApi extends JBaseApi {
4
4
  /**
@@ -74,4 +74,9 @@ export declare class JFileApi extends JBaseApi {
74
74
  deleteImage(id: number | string, type: string): Promise<ApiWrapper<{
75
75
  id: number;
76
76
  }, import("../../types").BaseMessages>>;
77
+ getDownload(id: number): Promise<ApiWrapper<{
78
+ count: number;
79
+ list: UserDownload[];
80
+ }>>;
81
+ generatePreview(id: number): Promise<ApiWrapper<boolean>>;
77
82
  }
@@ -1,4 +1,4 @@
1
- import { ApiWrapper, jFileLittle, jFileLittleCrop } from '../../types';
1
+ import { ApiWrapper, jFileLittle, jFileLittleCrop, UserDownload } from '../../types';
2
2
  export declare const fileCreateRawLittle: ApiWrapper<jFileLittle>;
3
3
  export declare const fileUpdateRawLittle: ApiWrapper<jFileLittleCrop>;
4
4
  export declare const fileDeleteDefault: ApiWrapper<boolean>;
@@ -6,3 +6,8 @@ export declare const fileDeleteImageDefault: ApiWrapper<{
6
6
  id: number;
7
7
  }>;
8
8
  export declare const fileGetDefault: ApiWrapper<jFileLittle>;
9
+ export declare const fileGeneratePreview: ApiWrapper<boolean>;
10
+ export declare const fileGetDownload: ApiWrapper<{
11
+ count: number;
12
+ list: UserDownload[];
13
+ }>;
@@ -36,3 +36,9 @@ export type jFileRendition = {
36
36
  dateModified: string;
37
37
  mimetype: string;
38
38
  };
39
+ export type UserDownload = {
40
+ idUser: string;
41
+ dateDownload: string;
42
+ Pseudo: string;
43
+ type: string;
44
+ };
@@ -9,5 +9,5 @@ export type jMeetingView = jArticleView & jMeetingList & {
9
9
  bgColor: string;
10
10
  report: string;
11
11
  reportFile: [];
12
- urlGestion: null;
12
+ urlGestion?: null;
13
13
  };
@@ -76,6 +76,7 @@ export interface SearchConfig {
76
76
  name: string;
77
77
  title: string;
78
78
  }[]>;
79
+ facetMode: boolean;
79
80
  }
80
81
  export interface SearchResultCatProps {
81
82
  title: string;
@@ -14,5 +14,5 @@ export type jSocialEventView = jArticleView & jSocialEventList & {
14
14
  socialEventUseCeiling: null;
15
15
  socialEventCeiling: null;
16
16
  hideFromCalendar: null;
17
- urlGestion: null;
17
+ urlGestion?: null;
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.151",
3
+ "version": "1.0.152",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -8,9 +8,9 @@
8
8
  "mainType": "article",
9
9
  "type": "meeting",
10
10
  "uri": "meeting/226",
11
- "dateCreation": "2024-04-05 16:40:05",
12
- "dateModified": "2024-04-05 16:40:05",
13
- "title": "Test meeting notifications (live - 1712328005)",
11
+ "dateCreation": "2024-04-18 16:18:03",
12
+ "dateModified": "2024-04-18 16:18:03",
13
+ "title": "Test meeting notifications (live - 1713449883)",
14
14
  "_url": "/article/226",
15
15
  "_right": {
16
16
  "create": true,
@@ -49,12 +49,11 @@
49
49
  "processContext": null,
50
50
  "place": "",
51
51
  "address": "",
52
- "dateStart": "2024-04-05 16:40:05",
53
- "dateEnd": "2024-04-05 19:40:05",
52
+ "dateStart": "2024-04-18 16:18:03",
53
+ "dateEnd": "2024-04-18 19:18:03",
54
54
  "allDay": null,
55
55
  "agenda": "",
56
56
  "noGestion": null,
57
- "urlGestion": null,
58
57
  "useQrcode": null,
59
58
  "textColor": "",
60
59
  "bgColor": "",
@@ -8,8 +8,8 @@
8
8
  "mainType": "article",
9
9
  "type": "socialEvent",
10
10
  "uri": "socialEvent/61",
11
- "dateCreation": "2024-04-05 16:38:02",
12
- "dateModified": "2024-04-05 16:38:02",
11
+ "dateCreation": "2024-04-18 16:16:07",
12
+ "dateModified": "2024-04-18 16:16:07",
13
13
  "title": "EVENT FOR TEST",
14
14
  "_url": "/article/61",
15
15
  "_right": {
@@ -41,7 +41,7 @@
41
41
  "type": "spot",
42
42
  "uri": "spot/1",
43
43
  "dateCreation": "2019-07-18 18:36:24",
44
- "dateModified": "2024-04-05 16:38:02",
44
+ "dateModified": "2024-04-18 16:16:07",
45
45
  "title": "Groupe public",
46
46
  "_url": "/group/1",
47
47
  "privacy": 1,
@@ -50,12 +50,11 @@
50
50
  ],
51
51
  "place": "",
52
52
  "address": "",
53
- "dateStart": "2024-04-05 16:38:02",
54
- "dateEnd": "2024-04-05 19:38:02",
53
+ "dateStart": "2024-04-18 16:16:07",
54
+ "dateEnd": "2024-04-18 19:16:07",
55
55
  "noGestion": null,
56
56
  "processContext": null,
57
57
  "allDay": null,
58
- "urlGestion": null,
59
58
  "socialEventUseCeiling": null,
60
59
  "socialEventCeiling": null,
61
60
  "useQrcode": null,
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "file",
3
+ "f": "generatePreview",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": true
7
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "o": "file",
3
+ "f": "getDownload",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "count": 1,
8
+ "list": [
9
+ {
10
+ "idUser": "6",
11
+ "dateDownload": "2024-04-18 10:49:14",
12
+ "Pseudo": "User1",
13
+ "type": "user"
14
+ }
15
+ ]
16
+ }
17
+ }
@@ -8,11 +8,12 @@
8
8
  "mode": "result",
9
9
  "facets": [
10
10
  { "field": "__sec__", "title": "Audience", "facetType": "facet", "facetOptions": {} },
11
- { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetOptions": {} },
11
+ { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetMode": "AND", "facetOptions": {} },
12
12
  {
13
13
  "field": "dateCreation",
14
14
  "title": "Date",
15
15
  "facetType": "facetQuery",
16
+ "facetMode": "AND",
16
17
  "facetOptions": {
17
18
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
18
19
  "[NOW/DAY-7DAY TO NOW]": { "ressource": "SEARCH_Facet_Week", "value": "[NOW/DAY-7DAY TO NOW]" },
@@ -40,6 +41,7 @@
40
41
  "field": "dateCreation",
41
42
  "title": "Date",
42
43
  "facetType": "facetQuery",
44
+ "facetMode": "AND",
43
45
  "facetOptions": {
44
46
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
45
47
  "[NOW/DAY-7DAY TO NOW]": {
@@ -59,8 +61,7 @@
59
61
  "value": "[* TO NOW/DAY-1YEAR]"
60
62
  }
61
63
  }
62
- },
63
- { "field": "tag_4", "title": "languages", "facetType": "facet", "facetOptions": {} }
64
+ }
64
65
  ],
65
66
  "mainType": "user",
66
67
  "title": "Utilisateur",
@@ -69,11 +70,12 @@
69
70
  {
70
71
  "id": "spot",
71
72
  "facets": [
72
- { "field": "type", "title": "Type", "facetType": "facet", "facetOptions": { "limit": 27 } },
73
+ { "field": "type", "title": "Type", "facetType": "facet", "facetOptions": { "limit": 28 } },
73
74
  {
74
75
  "field": "dateCreation",
75
76
  "title": "Date",
76
77
  "facetType": "facetQuery",
78
+ "facetMode": "AND",
77
79
  "facetOptions": {
78
80
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
79
81
  "[NOW/DAY-7DAY TO NOW]": {
@@ -103,13 +105,20 @@
103
105
  "id": "article",
104
106
  "facets": [
105
107
  { "field": "__sec__", "title": "Audience", "facetType": "facet", "facetOptions": {} },
106
- { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetOptions": {} },
107
- { "field": "type", "title": "Type", "facetType": "facet", "facetOptions": { "limit": 27 } },
108
+ {
109
+ "field": "idUser",
110
+ "title": "Auteur",
111
+ "facetType": "facet",
112
+ "facetMode": "AND",
113
+ "facetOptions": {}
114
+ },
115
+ { "field": "type", "title": "Type", "facetType": "facet", "facetOptions": { "limit": 28 } },
108
116
  { "field": "tags", "title": "Mots-cl\u00e9s", "facetType": "facet", "facetOptions": {} },
109
117
  {
110
118
  "field": "dateCreation",
111
119
  "title": "Date",
112
120
  "facetType": "facetQuery",
121
+ "facetMode": "AND",
113
122
  "facetOptions": {
114
123
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
115
124
  "[NOW/DAY-7DAY TO NOW]": {
@@ -139,11 +148,18 @@
139
148
  "id": "comment",
140
149
  "facets": [
141
150
  { "field": "__sec__", "title": "Audience", "facetType": "facet", "facetOptions": {} },
142
- { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetOptions": {} },
151
+ {
152
+ "field": "idUser",
153
+ "title": "Auteur",
154
+ "facetType": "facet",
155
+ "facetMode": "AND",
156
+ "facetOptions": {}
157
+ },
143
158
  {
144
159
  "field": "dateCreation",
145
160
  "title": "Date",
146
161
  "facetType": "facetQuery",
162
+ "facetMode": "AND",
147
163
  "facetOptions": {
148
164
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
149
165
  "[NOW/DAY-7DAY TO NOW]": {
@@ -173,11 +189,18 @@
173
189
  "id": "fileArticle",
174
190
  "facets": [
175
191
  { "field": "__sec__", "title": "Audience", "facetType": "facet", "facetOptions": {} },
176
- { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetOptions": {} },
192
+ {
193
+ "field": "idUser",
194
+ "title": "Auteur",
195
+ "facetType": "facet",
196
+ "facetMode": "AND",
197
+ "facetOptions": {}
198
+ },
177
199
  {
178
200
  "field": "dateCreation",
179
201
  "title": "Date",
180
202
  "facetType": "facetQuery",
203
+ "facetMode": "AND",
181
204
  "facetOptions": {
182
205
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
183
206
  "[NOW/DAY-7DAY TO NOW]": {
@@ -207,11 +230,18 @@
207
230
  "id": "fileComment",
208
231
  "facets": [
209
232
  { "field": "__sec__", "title": "Audience", "facetType": "facet", "facetOptions": {} },
210
- { "field": "idUser", "title": "Auteur", "facetType": "facet", "facetOptions": {} },
233
+ {
234
+ "field": "idUser",
235
+ "title": "Auteur",
236
+ "facetType": "facet",
237
+ "facetMode": "AND",
238
+ "facetOptions": {}
239
+ },
211
240
  {
212
241
  "field": "dateCreation",
213
242
  "title": "Date",
214
243
  "facetType": "facetQuery",
244
+ "facetMode": "AND",
215
245
  "facetOptions": {
216
246
  "[NOW-1DAY TO *]": { "ressource": "SEARCH_Facet_Day", "value": "[NOW-1DAY TO *]" },
217
247
  "[NOW/DAY-7DAY TO NOW]": {
@@ -245,6 +275,7 @@
245
275
  { "name": "company", "title": "Soci\u00e9t\u00e9" },
246
276
  { "name": "mail", "title": "Mail" }
247
277
  ]
248
- }
278
+ },
279
+ "facetMode": true
249
280
  }
250
281
  }