jamespot-user-api 1.0.133 → 1.0.135

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 (85) 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/JCommunityApi.html +1 -1
  12. package/documentation/classes/JDiapazoneApi.html +1 -1
  13. package/documentation/classes/JFaqApi.html +1 -1
  14. package/documentation/classes/JFileApi.html +5 -5
  15. package/documentation/classes/JFilebankApi.html +1 -1
  16. package/documentation/classes/JGroupApi.html +10 -10
  17. package/documentation/classes/JLandApi.html +1 -1
  18. package/documentation/classes/JMessengerApi.html +1 -1
  19. package/documentation/classes/JObjectApi.html +1 -1
  20. package/documentation/classes/JSearchApi.html +6 -6
  21. package/documentation/classes/JShareApi.html +1 -1
  22. package/documentation/classes/JTaxonomyApi.html +2 -2
  23. package/documentation/classes/JUserApi.html +4 -4
  24. package/documentation/classes/JWedocApi.html +1 -1
  25. package/documentation/classes/JamespotUserApi.html +1 -1
  26. package/documentation/classes/Network.html +1 -1
  27. package/documentation/classes/TVDisplayApi.html +1 -1
  28. package/documentation/classes/WindowBrowser.html +1 -1
  29. package/documentation/enums/StudioApplicationStatus.html +1 -1
  30. package/documentation/index.html +1 -1
  31. package/documentation/interfaces/AccessRightObject.html +1 -1
  32. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  33. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  34. package/documentation/interfaces/ApiWrapper.html +1 -1
  35. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  36. package/documentation/interfaces/BaseMessage.html +1 -1
  37. package/documentation/interfaces/Category.html +1 -1
  38. package/documentation/interfaces/FileBankProps.html +1 -1
  39. package/documentation/interfaces/FolderProps.html +1 -1
  40. package/documentation/interfaces/ListFilterSpec.html +1 -1
  41. package/documentation/interfaces/OF.html +1 -1
  42. package/documentation/interfaces/ObjectListProps.html +1 -1
  43. package/documentation/interfaces/PagingResults.html +1 -1
  44. package/documentation/interfaces/RootFolderProps.html +1 -1
  45. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  46. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  47. package/documentation/interfaces/SearchConfig.html +1 -1
  48. package/documentation/interfaces/SearchFacetModel.html +1 -1
  49. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  50. package/documentation/interfaces/SearchQuery.html +1 -1
  51. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  52. package/documentation/interfaces/SearchQueryOption.html +1 -1
  53. package/documentation/interfaces/SearchQueryResult.html +1 -1
  54. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  55. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  56. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  57. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  58. package/documentation/interfaces/SpotProps.html +1 -1
  59. package/documentation/interfaces/Taxonomy.html +1 -1
  60. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  61. package/documentation/interfaces/WindowInterface.html +1 -1
  62. package/documentation/modules.html +11 -11
  63. package/jest.config.ts +6 -0
  64. package/lib/jamespot-user-api.js.map +1 -1
  65. package/lib/jest.config.d.ts +6 -0
  66. package/lib/jest.config.vm.d.ts +6 -0
  67. package/lib/src/apis/assetReservation/assetReservation.d.ts +2 -2
  68. package/lib/src/apis/assetReservation/assetReservation.mock.d.ts +3 -1
  69. package/lib/src/apis/group/group.d.ts +6 -3
  70. package/lib/src/apis/group/group.mock.d.ts +11 -2
  71. package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +1 -0
  72. package/lib/src/types/group.d.ts +17 -4
  73. package/lib/src/types/tinymce.d.ts +1 -0
  74. package/lib/src/util/ensure.test.d.ts +1 -0
  75. package/lib/src/util/string.test.d.ts +2 -0
  76. package/package.json +1 -1
  77. package/phpunitMock/assetReservationGetReservations-default.json +221 -0
  78. package/phpunitMock/objectListAssetReservationList-default.json +75 -75
  79. package/phpunitMock/objectListJamespotSpotMembers-default.json +71 -0
  80. package/phpunitMock/spotCreate-default.json +24 -0
  81. package/phpunitMock/spotGetAvailableWidget-default.json +24 -0
  82. package/phpunitMock/spotGetCategories-default.json +10 -0
  83. package/phpunitMock/spotGetProperties-default.json +100 -182
  84. package/phpunitMock/spotResetNotifications-default.json +7 -0
  85. package/phpunitMock/spotUpdate-default.json +24 -0
@@ -9,14 +9,14 @@
9
9
  "cnt": 6,
10
10
  "data": [
11
11
  {
12
- "id": 26,
12
+ "id": 16,
13
13
  "mainType": "article",
14
14
  "type": "reservation",
15
- "uri": "reservation/26",
16
- "dateCreation": "2023-10-24 10:20:14",
17
- "dateModified": "2023-10-24 10:20:14",
15
+ "uri": "reservation/16",
16
+ "dateCreation": "2024-01-09 11:36:44",
17
+ "dateModified": "2024-01-09 11:36:44",
18
18
  "title": "R\u00e9servation",
19
- "_url": "/ng/app/assetReservation/asset/23",
19
+ "_url": "/ng/app/assetReservation/asset/13",
20
20
  "_right": {
21
21
  "create": true,
22
22
  "read": true,
@@ -40,18 +40,18 @@
40
40
  "level": 9
41
41
  },
42
42
  "_audience": [],
43
- "dateStart": "2023-10-30 08:00",
44
- "dateEnd": "2023-10-30 09:00",
43
+ "dateStart": "2024-01-15 08:00",
44
+ "dateEnd": "2024-01-15 09:00",
45
45
  "reservationCancelled": false,
46
46
  "_asset": {
47
- "id": 23,
47
+ "id": 13,
48
48
  "mainType": "article",
49
49
  "type": "bookableAsset",
50
- "uri": "bookableAsset/23",
51
- "dateCreation": "2023-10-24 10:20:14",
52
- "dateModified": "2023-10-24 10:20:14",
50
+ "uri": "bookableAsset/13",
51
+ "dateCreation": "2024-01-09 11:36:43",
52
+ "dateModified": "2024-01-09 11:36:43",
53
53
  "title": "test asset 1",
54
- "_url": "/ng/app/assetReservation/asset/23",
54
+ "_url": "/ng/app/assetReservation/asset/13",
55
55
  "_right": {
56
56
  "create": true,
57
57
  "read": true,
@@ -80,14 +80,14 @@
80
80
  }
81
81
  },
82
82
  {
83
- "id": 27,
83
+ "id": 17,
84
84
  "mainType": "article",
85
85
  "type": "reservation",
86
- "uri": "reservation/27",
87
- "dateCreation": "2023-10-24 10:20:16",
88
- "dateModified": "2023-10-24 10:20:16",
86
+ "uri": "reservation/17",
87
+ "dateCreation": "2024-01-09 11:36:45",
88
+ "dateModified": "2024-01-09 11:36:45",
89
89
  "title": "R\u00e9servation",
90
- "_url": "/ng/app/assetReservation/asset/23",
90
+ "_url": "/ng/app/assetReservation/asset/13",
91
91
  "_right": {
92
92
  "create": true,
93
93
  "read": true,
@@ -111,18 +111,18 @@
111
111
  "level": 9
112
112
  },
113
113
  "_audience": [],
114
- "dateStart": "2023-10-30 09:00",
115
- "dateEnd": "2023-10-30 10:00",
114
+ "dateStart": "2024-01-15 09:00",
115
+ "dateEnd": "2024-01-15 10:00",
116
116
  "reservationCancelled": false,
117
117
  "_asset": {
118
- "id": 23,
118
+ "id": 13,
119
119
  "mainType": "article",
120
120
  "type": "bookableAsset",
121
- "uri": "bookableAsset/23",
122
- "dateCreation": "2023-10-24 10:20:14",
123
- "dateModified": "2023-10-24 10:20:14",
121
+ "uri": "bookableAsset/13",
122
+ "dateCreation": "2024-01-09 11:36:43",
123
+ "dateModified": "2024-01-09 11:36:43",
124
124
  "title": "test asset 1",
125
- "_url": "/ng/app/assetReservation/asset/23",
125
+ "_url": "/ng/app/assetReservation/asset/13",
126
126
  "_right": {
127
127
  "create": true,
128
128
  "read": true,
@@ -151,14 +151,14 @@
151
151
  }
152
152
  },
153
153
  {
154
- "id": 28,
154
+ "id": 20,
155
155
  "mainType": "article",
156
156
  "type": "reservation",
157
- "uri": "reservation/28",
158
- "dateCreation": "2023-10-24 10:20:16",
159
- "dateModified": "2023-10-24 10:20:16",
157
+ "uri": "reservation/20",
158
+ "dateCreation": "2024-01-09 11:36:45",
159
+ "dateModified": "2024-01-09 11:36:45",
160
160
  "title": "R\u00e9servation",
161
- "_url": "/ng/app/assetReservation/asset/23",
161
+ "_url": "/ng/app/assetReservation/asset/15",
162
162
  "_right": {
163
163
  "create": true,
164
164
  "read": true,
@@ -182,18 +182,18 @@
182
182
  "level": 9
183
183
  },
184
184
  "_audience": [],
185
- "dateStart": "2023-10-31 11:00",
186
- "dateEnd": "2023-10-31 12:00",
185
+ "dateStart": "2024-01-16 11:00",
186
+ "dateEnd": "2024-01-16 12:00",
187
187
  "reservationCancelled": false,
188
188
  "_asset": {
189
- "id": 23,
189
+ "id": 15,
190
190
  "mainType": "article",
191
191
  "type": "bookableAsset",
192
- "uri": "bookableAsset/23",
193
- "dateCreation": "2023-10-24 10:20:14",
194
- "dateModified": "2023-10-24 10:20:14",
195
- "title": "test asset 1",
196
- "_url": "/ng/app/assetReservation/asset/23",
192
+ "uri": "bookableAsset/15",
193
+ "dateCreation": "2024-01-09 11:36:44",
194
+ "dateModified": "2024-01-09 11:36:44",
195
+ "title": "test asset 3",
196
+ "_url": "/ng/app/assetReservation/asset/15",
197
197
  "_right": {
198
198
  "create": true,
199
199
  "read": true,
@@ -222,14 +222,14 @@
222
222
  }
223
223
  },
224
224
  {
225
- "id": 29,
225
+ "id": 18,
226
226
  "mainType": "article",
227
227
  "type": "reservation",
228
- "uri": "reservation/29",
229
- "dateCreation": "2023-10-24 10:20:16",
230
- "dateModified": "2023-10-24 10:20:16",
228
+ "uri": "reservation/18",
229
+ "dateCreation": "2024-01-09 11:36:45",
230
+ "dateModified": "2024-01-09 11:36:45",
231
231
  "title": "R\u00e9servation",
232
- "_url": "/ng/app/assetReservation/asset/24",
232
+ "_url": "/ng/app/assetReservation/asset/13",
233
233
  "_right": {
234
234
  "create": true,
235
235
  "read": true,
@@ -253,18 +253,18 @@
253
253
  "level": 9
254
254
  },
255
255
  "_audience": [],
256
- "dateStart": "2023-10-31 11:00",
257
- "dateEnd": "2023-10-31 12:00",
256
+ "dateStart": "2024-01-16 11:00",
257
+ "dateEnd": "2024-01-16 12:00",
258
258
  "reservationCancelled": false,
259
259
  "_asset": {
260
- "id": 24,
260
+ "id": 13,
261
261
  "mainType": "article",
262
262
  "type": "bookableAsset",
263
- "uri": "bookableAsset/24",
264
- "dateCreation": "2023-10-24 10:20:14",
265
- "dateModified": "2023-10-24 10:20:14",
266
- "title": "test asset 2",
267
- "_url": "/ng/app/assetReservation/asset/24",
263
+ "uri": "bookableAsset/13",
264
+ "dateCreation": "2024-01-09 11:36:43",
265
+ "dateModified": "2024-01-09 11:36:43",
266
+ "title": "test asset 1",
267
+ "_url": "/ng/app/assetReservation/asset/13",
268
268
  "_right": {
269
269
  "create": true,
270
270
  "read": true,
@@ -293,14 +293,14 @@
293
293
  }
294
294
  },
295
295
  {
296
- "id": 30,
296
+ "id": 19,
297
297
  "mainType": "article",
298
298
  "type": "reservation",
299
- "uri": "reservation/30",
300
- "dateCreation": "2023-10-24 10:20:16",
301
- "dateModified": "2023-10-24 10:20:16",
299
+ "uri": "reservation/19",
300
+ "dateCreation": "2024-01-09 11:36:45",
301
+ "dateModified": "2024-01-09 11:36:45",
302
302
  "title": "R\u00e9servation",
303
- "_url": "/ng/app/assetReservation/asset/25",
303
+ "_url": "/ng/app/assetReservation/asset/14",
304
304
  "_right": {
305
305
  "create": true,
306
306
  "read": true,
@@ -324,18 +324,18 @@
324
324
  "level": 9
325
325
  },
326
326
  "_audience": [],
327
- "dateStart": "2023-10-31 11:00",
328
- "dateEnd": "2023-10-31 12:00",
327
+ "dateStart": "2024-01-16 11:00",
328
+ "dateEnd": "2024-01-16 12:00",
329
329
  "reservationCancelled": false,
330
330
  "_asset": {
331
- "id": 25,
331
+ "id": 14,
332
332
  "mainType": "article",
333
333
  "type": "bookableAsset",
334
- "uri": "bookableAsset/25",
335
- "dateCreation": "2023-10-24 10:20:14",
336
- "dateModified": "2023-10-24 10:20:14",
337
- "title": "test asset 3",
338
- "_url": "/ng/app/assetReservation/asset/25",
334
+ "uri": "bookableAsset/14",
335
+ "dateCreation": "2024-01-09 11:36:44",
336
+ "dateModified": "2024-01-09 11:36:44",
337
+ "title": "test asset 2",
338
+ "_url": "/ng/app/assetReservation/asset/14",
339
339
  "_right": {
340
340
  "create": true,
341
341
  "read": true,
@@ -364,14 +364,14 @@
364
364
  }
365
365
  },
366
366
  {
367
- "id": 32,
367
+ "id": 22,
368
368
  "mainType": "article",
369
369
  "type": "reservation",
370
- "uri": "reservation/32",
371
- "dateCreation": "2023-10-24 10:20:16",
372
- "dateModified": "2023-10-24 10:20:16",
370
+ "uri": "reservation/22",
371
+ "dateCreation": "2024-01-09 11:36:46",
372
+ "dateModified": "2024-01-09 11:36:46",
373
373
  "title": "R\u00e9servation",
374
- "_url": "/ng/app/assetReservation/asset/23",
374
+ "_url": "/ng/app/assetReservation/asset/13",
375
375
  "_right": {
376
376
  "create": true,
377
377
  "read": true,
@@ -395,18 +395,18 @@
395
395
  "level": 9
396
396
  },
397
397
  "_audience": [],
398
- "dateStart": "2023-10-31 15:00",
399
- "dateEnd": "2023-10-31 16:00",
398
+ "dateStart": "2024-01-16 15:00",
399
+ "dateEnd": "2024-01-16 16:00",
400
400
  "reservationCancelled": false,
401
401
  "_asset": {
402
- "id": 23,
402
+ "id": 13,
403
403
  "mainType": "article",
404
404
  "type": "bookableAsset",
405
- "uri": "bookableAsset/23",
406
- "dateCreation": "2023-10-24 10:20:14",
407
- "dateModified": "2023-10-24 10:20:14",
405
+ "uri": "bookableAsset/13",
406
+ "dateCreation": "2024-01-09 11:36:43",
407
+ "dateModified": "2024-01-09 11:36:43",
408
408
  "title": "test asset 1",
409
- "_url": "/ng/app/assetReservation/asset/23",
409
+ "_url": "/ng/app/assetReservation/asset/13",
410
410
  "_right": {
411
411
  "create": true,
412
412
  "read": true,
@@ -0,0 +1,71 @@
1
+ {
2
+ "o": "objectListJamespot",
3
+ "f": "spotMembers",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "limit": 50,
8
+ "page": 1,
9
+ "cnt": 4,
10
+ "data": [
11
+ {
12
+ "user": {
13
+ "id": 1,
14
+ "mainType": "user",
15
+ "type": "user",
16
+ "uri": "user/1",
17
+ "dateCreation": "2019-03-26 16:29:33",
18
+ "dateModified": "2019-07-19 09:39:23",
19
+ "title": "AdminJenkins",
20
+ "_url": "/user/1",
21
+ "level": 9
22
+ },
23
+ "level": 0
24
+ },
25
+ {
26
+ "user": {
27
+ "id": 4,
28
+ "mainType": "user",
29
+ "type": "user",
30
+ "uri": "user/4",
31
+ "dateCreation": "2019-07-09 15:48:26",
32
+ "dateModified": "2019-07-09 15:51:24",
33
+ "title": "Admin1",
34
+ "_url": "/user/4",
35
+ "level": 9
36
+ },
37
+ "level": 1
38
+ },
39
+ {
40
+ "user": {
41
+ "id": 7,
42
+ "mainType": "user",
43
+ "type": "user",
44
+ "uri": "user/7",
45
+ "dateCreation": "2019-07-09 15:49:25",
46
+ "dateModified": "2019-07-09 15:51:50",
47
+ "title": "User2",
48
+ "_url": "/user/7",
49
+ "level": 5
50
+ },
51
+ "level": 2
52
+ },
53
+ {
54
+ "user": {
55
+ "id": 6,
56
+ "mainType": "user",
57
+ "type": "user",
58
+ "uri": "user/6",
59
+ "dateCreation": "2019-07-09 15:49:06",
60
+ "dateModified": "2019-07-09 15:51:35",
61
+ "title": "User1",
62
+ "_url": "/user/6",
63
+ "level": 5
64
+ },
65
+ "level": 3
66
+ }
67
+ ],
68
+ "facets": null,
69
+ "idQuery": null
70
+ }
71
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "o": "spot",
3
+ "f": "create",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 4,
8
+ "mainType": "spot",
9
+ "type": "spot",
10
+ "uri": "spot/4",
11
+ "dateCreation": "2024-01-09 12:15:40",
12
+ "dateModified": "2024-01-09 12:15:40",
13
+ "title": "title SPOT",
14
+ "_url": "/group/4",
15
+ "privacy": 1,
16
+ "category": "1",
17
+ "description": "Description for spot create",
18
+ "edito": null,
19
+ "language": "fr",
20
+ "image": null,
21
+ "spotBanner": [],
22
+ "useTeaser": null
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "o": "spot",
3
+ "f": "GetAvailableWidget",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "fbank_box": {
8
+ "idWidget": "fbank_box",
9
+ "title": "Banque documentaire",
10
+ "url": "",
11
+ "type": "box",
12
+ "icon": "app-icon icon-fs-filebank",
13
+ "description": "Profitez d'un espace d\u00e9di\u00e9 au partage de vos fichiers et documents au sein de votre groupe"
14
+ },
15
+ "spot_tags_box": {
16
+ "idWidget": "spot_tags_box",
17
+ "title": "Tags",
18
+ "url": "",
19
+ "type": "box",
20
+ "icon": "icon-tags",
21
+ "description": "Donnez aux membres la possibilit\u00e9 de filtrer les contenus du groupe via un nuage de mots clefs en colonne de droite."
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "o": "spot",
3
+ "f": "getCategories",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ { "id": "1", "idorder": 0, "label": "default" },
8
+ { "id": "2", "idorder": 0, "label": "CREATE CATEGORY FOR TEST" }
9
+ ]
10
+ }