jamespot-user-api 1.0.139 → 1.0.140
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/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/JGroupApi.html +9 -9
- 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/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +10 -4
- package/documentation/classes/JWedocApi.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/Taxonomy.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/article/article.d.ts +8 -0
- package/lib/src/apis/article/article.mock.d.ts +4 -0
- package/lib/src/apis/fileSync/fileSync.d.ts +9 -0
- package/lib/src/apis/fileSync/fileSync.mock.d.ts +6 -0
- package/lib/src/apis/fileSync/fileSync.test.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +2 -0
- package/lib/src/apis/user/user.d.ts +17 -1
- package/lib/src/apis/user/user.mock.d.ts +6 -2
- package/lib/src/types/fileSync.d.ts +22 -0
- package/lib/src/types/group.d.ts +2 -0
- package/lib/src/types/user.d.ts +40 -0
- package/lib/src/types/widgets.d.ts +28 -17
- package/lib/src/util/Test.d.ts +119 -5
- package/package.json +1 -1
- package/phpunitMock/articleGet-with-widgets.json +56 -33
- package/phpunitMock/articleSaveAsDraft-default.json +7 -0
- package/phpunitMock/autocompleteAudience-u.json +16 -14
- package/phpunitMock/autocompleteSpot-a.json +12 -12
- package/phpunitMock/fileSyncGetFileBanks-success.json +11 -0
- package/phpunitMock/fileSyncGetUserQuota-success.json +7 -0
- package/phpunitMock/fileSyncSaveFileBanks-success.json +1 -0
- package/phpunitMock/objectListFileSyncAdminSpots-success.json +24 -0
- package/phpunitMock/spotGetProperties-default.json +184 -100
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"cssClass": "user",
|
|
17
17
|
"cssColor": "#a4acaf",
|
|
18
18
|
"class": "user-selector-user",
|
|
19
|
-
"Pseudo": "User1"
|
|
19
|
+
"Pseudo": "User1",
|
|
20
|
+
"_url": "http://jenkins-preprod.jamespot.pro/user/6"
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
"id": "user/7",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"cssClass": "user",
|
|
31
32
|
"cssColor": "#a4acaf",
|
|
32
33
|
"class": "user-selector-user",
|
|
33
|
-
"Pseudo": "User2"
|
|
34
|
+
"Pseudo": "User2",
|
|
35
|
+
"_url": "http://jenkins-preprod.jamespot.pro/user/7"
|
|
34
36
|
},
|
|
35
37
|
{
|
|
36
38
|
"id": "spot/3",
|
|
@@ -61,10 +63,10 @@
|
|
|
61
63
|
"class": "user-selector-spot"
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
|
-
"id": "spot/
|
|
65
|
-
"idspot": "
|
|
66
|
-
"uri": "spot/
|
|
67
|
-
"shortUri": "
|
|
66
|
+
"id": "spot/28",
|
|
67
|
+
"idspot": "28",
|
|
68
|
+
"uri": "spot/28",
|
|
69
|
+
"shortUri": "s28",
|
|
68
70
|
"title": "Groupe test A",
|
|
69
71
|
"name": "Groupe test A",
|
|
70
72
|
"mainType": "spot",
|
|
@@ -75,10 +77,10 @@
|
|
|
75
77
|
"class": "user-selector-spot"
|
|
76
78
|
},
|
|
77
79
|
{
|
|
78
|
-
"id": "spot/
|
|
79
|
-
"idspot": "
|
|
80
|
-
"uri": "spot/
|
|
81
|
-
"shortUri": "
|
|
80
|
+
"id": "spot/11",
|
|
81
|
+
"idspot": "11",
|
|
82
|
+
"uri": "spot/11",
|
|
83
|
+
"shortUri": "s11",
|
|
82
84
|
"title": "Spot 1 [updated]",
|
|
83
85
|
"name": "Spot 1 [updated]",
|
|
84
86
|
"mainType": "spot",
|
|
@@ -89,10 +91,10 @@
|
|
|
89
91
|
"class": "user-selector-spot"
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
|
-
"id": "spot/
|
|
93
|
-
"idspot": "
|
|
94
|
-
"uri": "spot/
|
|
95
|
-
"shortUri": "
|
|
94
|
+
"id": "spot/12",
|
|
95
|
+
"idspot": "12",
|
|
96
|
+
"uri": "spot/12",
|
|
97
|
+
"shortUri": "s12",
|
|
96
98
|
"title": "Spot 2 [updated]",
|
|
97
99
|
"name": "Spot 2 [updated]",
|
|
98
100
|
"mainType": "spot",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"messages": [],
|
|
6
6
|
"result": [
|
|
7
7
|
{
|
|
8
|
-
"id": "spot/
|
|
9
|
-
"idspot": "
|
|
10
|
-
"uri": "spot/
|
|
11
|
-
"shortUri": "
|
|
8
|
+
"id": "spot/11",
|
|
9
|
+
"idspot": "11",
|
|
10
|
+
"uri": "spot/11",
|
|
11
|
+
"shortUri": "s11",
|
|
12
12
|
"title": "Spot 1 [updated]",
|
|
13
13
|
"name": "Spot 1 [updated]",
|
|
14
14
|
"mainType": "spot",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"class": "user-selector-spot"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"id": "spot/
|
|
23
|
-
"idspot": "
|
|
24
|
-
"uri": "spot/
|
|
25
|
-
"shortUri": "
|
|
22
|
+
"id": "spot/12",
|
|
23
|
+
"idspot": "12",
|
|
24
|
+
"uri": "spot/12",
|
|
25
|
+
"shortUri": "s12",
|
|
26
26
|
"title": "Spot 2 [updated]",
|
|
27
27
|
"name": "Spot 2 [updated]",
|
|
28
28
|
"mainType": "spot",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"class": "user-selector-spot"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"id": "spot/
|
|
37
|
-
"idspot": "
|
|
38
|
-
"uri": "spot/
|
|
39
|
-
"shortUri": "
|
|
36
|
+
"id": "spot/28",
|
|
37
|
+
"idspot": "28",
|
|
38
|
+
"uri": "spot/28",
|
|
39
|
+
"shortUri": "s28",
|
|
40
40
|
"title": "Groupe test A",
|
|
41
41
|
"name": "Groupe test A",
|
|
42
42
|
"mainType": "spot",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "fileSync",
|
|
3
|
+
"f": "getFileBanks",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": [
|
|
7
|
+
{ "name": "My Spot", "size": 146328, "uri": "spot/5", "isSynchronized": false },
|
|
8
|
+
{ "name": "My Spot B", "size": 83616, "uri": "spot/6", "isSynchronized": false },
|
|
9
|
+
{ "name": "QLSpot", "size": 8106, "uri": "spot/10", "isSynchronized": true }
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "fileSync", "f": "saveFileBanks", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "objectList",
|
|
3
|
+
"f": "fileSyncAdminSpots",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"limit": 20,
|
|
8
|
+
"page": 1,
|
|
9
|
+
"cnt": 9,
|
|
10
|
+
"data": [
|
|
11
|
+
{ "name": "Groupe public", "isSynchronized": "0", "synchronizationsNb": "0" },
|
|
12
|
+
{ "name": "Groupe priv\u00e9", "isSynchronized": "0", "synchronizationsNb": "0" },
|
|
13
|
+
{ "name": "Groupe mod\u00e9r\u00e9", "isSynchronized": "0", "synchronizationsNb": "0" },
|
|
14
|
+
{ "name": "My Spot", "isSynchronized": "1", "synchronizationsNb": "0" },
|
|
15
|
+
{ "name": "My Spot B", "isSynchronized": "1", "synchronizationsNb": "0" },
|
|
16
|
+
{ "name": "My SpotA", "isSynchronized": "1", "synchronizationsNb": "0" },
|
|
17
|
+
{ "name": "My SpotB", "isSynchronized": "1", "synchronizationsNb": "0" },
|
|
18
|
+
{ "name": "My SpotC", "isSynchronized": "0", "synchronizationsNb": "0" },
|
|
19
|
+
{ "name": "QLSpot", "isSynchronized": "1", "synchronizationsNb": "0" }
|
|
20
|
+
],
|
|
21
|
+
"facets": null,
|
|
22
|
+
"idQuery": null
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,100 +1,184 @@
|
|
|
1
|
-
{
|
|
2
|
-
"o": "spot",
|
|
3
|
-
"f": "getProperties",
|
|
4
|
-
"error": 0,
|
|
5
|
-
"messages": [],
|
|
6
|
-
"result": {
|
|
7
|
-
"_options": {
|
|
8
|
-
"custom_widgets": [],
|
|
9
|
-
"isArchive": 0,
|
|
10
|
-
"edit_access": [
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
],
|
|
56
|
-
"
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
{
|
|
2
|
+
"o": "spot",
|
|
3
|
+
"f": "getProperties",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"_options": {
|
|
8
|
+
"custom_widgets": [],
|
|
9
|
+
"isArchive": 0,
|
|
10
|
+
"edit_access": [
|
|
11
|
+
{
|
|
12
|
+
"value": "",
|
|
13
|
+
"label": "Administrateur",
|
|
14
|
+
"description": "SPOT_Edit_Access_Admin_Description"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"value": "author",
|
|
18
|
+
"label": "R\u00e9dacteur",
|
|
19
|
+
"description": "SPOT_Edit_Access_Contributor_Description"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"commentLevel": [
|
|
23
|
+
{
|
|
24
|
+
"value": "3",
|
|
25
|
+
"label": "Member",
|
|
26
|
+
"selected": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": "2",
|
|
30
|
+
"label": "Contributor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"value": "1",
|
|
34
|
+
"label": "Administrator"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "-1",
|
|
38
|
+
"label": "Aucun commentaire"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"user_level_signup": [
|
|
42
|
+
{
|
|
43
|
+
"value": "3",
|
|
44
|
+
"label": "Member"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "2",
|
|
48
|
+
"label": "Contributor",
|
|
49
|
+
"selected": true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "1",
|
|
53
|
+
"label": "Administrator"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"useTeaser": [
|
|
57
|
+
{
|
|
58
|
+
"value": "",
|
|
59
|
+
"label": "Param\u00e8tres par default"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": 1,
|
|
63
|
+
"label": "Oui"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": 0,
|
|
67
|
+
"label": "Non"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"displayType": [
|
|
71
|
+
{
|
|
72
|
+
"value": "doc",
|
|
73
|
+
"label": "Documentaire"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"value": "wall",
|
|
77
|
+
"label": "Dynamique"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"spot_right_user": [
|
|
81
|
+
{
|
|
82
|
+
"value": "3",
|
|
83
|
+
"label": "Member"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "2",
|
|
87
|
+
"label": "Contributor",
|
|
88
|
+
"selected": true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "1",
|
|
92
|
+
"label": "Administrator"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "0",
|
|
96
|
+
"label": "Creator"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"spotDefaultPublishType": ["mpMedia", "mpArticle", "mpSocialFile", "socialQuestion"],
|
|
100
|
+
"mail_frequency": [
|
|
101
|
+
{
|
|
102
|
+
"value": -1,
|
|
103
|
+
"label": "Par d\u00e9faut (Temps r\u00e9el)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": 0,
|
|
107
|
+
"label": "Temps r\u00e9el"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": 1,
|
|
111
|
+
"label": "Quotidien"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": 2,
|
|
115
|
+
"label": "Hebdomadaire"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": 10,
|
|
119
|
+
"label": "Jamais"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"widgets": [
|
|
123
|
+
{
|
|
124
|
+
"id": "fbank_box",
|
|
125
|
+
"title": "Banque documentaire"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "spot_tags_box",
|
|
129
|
+
"title": "Tags"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"fileSyncVersioningType": [
|
|
133
|
+
{
|
|
134
|
+
"value": "overwrite",
|
|
135
|
+
"label": "\u00c9craser le contenu"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "author-change",
|
|
139
|
+
"label": "Versionner quand l'auteur diff\u00e8re"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"_errors": [],
|
|
144
|
+
"edit_access": "",
|
|
145
|
+
"commentLevel": "3",
|
|
146
|
+
"user_level_signup": "2",
|
|
147
|
+
"nounsubscribe": "0",
|
|
148
|
+
"useTeaser": "",
|
|
149
|
+
"displayType": "wall",
|
|
150
|
+
"spot_right_user": "3",
|
|
151
|
+
"rss_access": "0",
|
|
152
|
+
"rss_key": "",
|
|
153
|
+
"rss_feed": [
|
|
154
|
+
{
|
|
155
|
+
"url": "http://localhost/rss",
|
|
156
|
+
"idUser": 4,
|
|
157
|
+
"_user": {
|
|
158
|
+
"id": 4,
|
|
159
|
+
"mainType": "user",
|
|
160
|
+
"type": "user",
|
|
161
|
+
"uri": "user/4",
|
|
162
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
163
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
164
|
+
"title": "Admin1",
|
|
165
|
+
"_url": "/user/4",
|
|
166
|
+
"level": 9
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"spotDefaultPublishType": "mpArticle",
|
|
171
|
+
"mail_frequency": "-1",
|
|
172
|
+
"mail_comment": "1",
|
|
173
|
+
"mail_spotit": "1",
|
|
174
|
+
"mail_subscriber": "",
|
|
175
|
+
"lock_mail": "",
|
|
176
|
+
"activity": "1",
|
|
177
|
+
"publishFolder": "1",
|
|
178
|
+
"notifyFolder": "1",
|
|
179
|
+
"widgets": [],
|
|
180
|
+
"fileSyncEnabled": "0",
|
|
181
|
+
"fileSyncVersioningType": "overwrite",
|
|
182
|
+
"fileBankQuota": ""
|
|
183
|
+
}
|
|
184
|
+
}
|