jamespot-user-api 1.0.118 → 1.0.119
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 +6 -6
- 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/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +4 -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 +14 -9
- 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 +3 -11
- package/lib/src/apis/article/article.mock.d.ts +3 -3
- package/lib/src/apis/faq/faq.d.ts +1 -3
- package/lib/src/apis/file/file.d.ts +68 -0
- package/lib/src/apis/file/file.mock.d.ts +8 -0
- package/lib/src/apis/file/file.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +1 -1
- package/lib/src/apis/jamespotUserApi.d.ts +1 -1
- package/lib/src/types/file.d.ts +9 -20
- package/lib/src/types/mediaLibrary.d.ts +3 -7
- package/lib/src/types/widgets.d.ts +9 -10
- package/lib/src/util/Test.d.ts +23 -0
- package/lib/src/util/file.d.ts +23 -7
- package/lib/src/util/file.mock.d.ts +312 -0
- package/lib/src/util/network.d.ts +16 -2
- package/package.json +1 -1
- package/phpunitMock/articleGet-faq-category.json +1 -2
- package/phpunitMock/articleGet-mpArticle-list.json +1 -2
- package/phpunitMock/articleGet-with-widgets.json +161 -0
- package/phpunitMock/articleGetAttachment-success.json +19 -18
- package/phpunitMock/fileCreate-rawLittle.json +17 -0
- package/phpunitMock/fileDelete-default.json +1 -0
- package/phpunitMock/fileDeleteImage-default.json +1 -0
- package/phpunitMock/fileGet-default.json +17 -0
- package/phpunitMock/fileUpdate-rawLittle.json +18 -0
- package/phpunitMock/tvDisplayGetChannel-dynamic.json +16 -16
- package/phpunitMock/tvDisplayGetChannel-slideshow.json +16 -14
- package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +16 -16
- package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +16 -14
- package/lib/src/apis/file.d.ts +0 -62
package/package.json
CHANGED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 191,
|
|
8
|
+
"mainType": "article",
|
|
9
|
+
"type": "articleWidget",
|
|
10
|
+
"uri": "articleWidget/191",
|
|
11
|
+
"dateCreation": "2023-09-21 11:40:50",
|
|
12
|
+
"dateModified": "2023-09-21 11:40:50",
|
|
13
|
+
"title": "Article with widgets",
|
|
14
|
+
"_url": "/article/191",
|
|
15
|
+
"articleWidgets": [
|
|
16
|
+
{
|
|
17
|
+
"title": "",
|
|
18
|
+
"widget": {
|
|
19
|
+
"name": "widget-article-attachment",
|
|
20
|
+
"uniqid": "650c0fa2c1c89",
|
|
21
|
+
"content": {
|
|
22
|
+
"files": [
|
|
23
|
+
{
|
|
24
|
+
"id": 93,
|
|
25
|
+
"mainType": "file",
|
|
26
|
+
"type": "fileTmp",
|
|
27
|
+
"uri": "fileTmp/93",
|
|
28
|
+
"dateCreation": "2023-09-21 11:40:50",
|
|
29
|
+
"dateModified": "2023-09-21 11:40:50",
|
|
30
|
+
"title": "txtTest.docx",
|
|
31
|
+
"mimetype": "application/octet-stream",
|
|
32
|
+
"_url": "javascript:void(0);"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"fileDisplay": "list"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "",
|
|
41
|
+
"widget": {
|
|
42
|
+
"name": "widget-article-text",
|
|
43
|
+
"uniqid": "650c0fa2c1c8d",
|
|
44
|
+
"content": {
|
|
45
|
+
"text": "Hello world",
|
|
46
|
+
"color": "white",
|
|
47
|
+
"fontSize": "12",
|
|
48
|
+
"lineHeight": "12",
|
|
49
|
+
"linkColor": "red"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "",
|
|
55
|
+
"widget": {
|
|
56
|
+
"name": "widget-article-title",
|
|
57
|
+
"uniqid": "650c0fa2c1c8e",
|
|
58
|
+
"content": {
|
|
59
|
+
"text": "This is my title",
|
|
60
|
+
"textAlign": "center",
|
|
61
|
+
"heading": "h1",
|
|
62
|
+
"color": "white",
|
|
63
|
+
"backgroundColor": "red"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "",
|
|
69
|
+
"widget": {
|
|
70
|
+
"name": "widget-article-button",
|
|
71
|
+
"uniqid": "650c0fa2c1c8f",
|
|
72
|
+
"content": {
|
|
73
|
+
"text": "This is a button",
|
|
74
|
+
"color": "white",
|
|
75
|
+
"backgroundColor": "#4dbf96",
|
|
76
|
+
"borderRadius": "10",
|
|
77
|
+
"fontSize": "12",
|
|
78
|
+
"buttonSize": "sm",
|
|
79
|
+
"variant": "contained",
|
|
80
|
+
"openingType": "link",
|
|
81
|
+
"openingTypeLink": {
|
|
82
|
+
"url": "https://ecosysteme.jamespot.pro/",
|
|
83
|
+
"target": "_blank"
|
|
84
|
+
},
|
|
85
|
+
"openingTypeAnchor": {
|
|
86
|
+
"uniqid": "id"
|
|
87
|
+
},
|
|
88
|
+
"openingTypePopup": {
|
|
89
|
+
"title": "Popup title",
|
|
90
|
+
"widgets": [
|
|
91
|
+
{
|
|
92
|
+
"title": "",
|
|
93
|
+
"widget": {
|
|
94
|
+
"name": "widget-article-text",
|
|
95
|
+
"uniqid": "650c0fa2c1c8d",
|
|
96
|
+
"content": {
|
|
97
|
+
"text": "Hello world",
|
|
98
|
+
"color": "white",
|
|
99
|
+
"fontSize": "12",
|
|
100
|
+
"lineHeight": "12",
|
|
101
|
+
"linkColor": "red"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"title": "",
|
|
112
|
+
"widget": {
|
|
113
|
+
"name": "widget-article-image",
|
|
114
|
+
"uniqid": "650c0fa2c1c92",
|
|
115
|
+
"content": {
|
|
116
|
+
"file": {
|
|
117
|
+
"id": 93,
|
|
118
|
+
"mainType": "file",
|
|
119
|
+
"type": "fileTmp",
|
|
120
|
+
"uri": "fileTmp/93",
|
|
121
|
+
"dateCreation": "2023-09-21 11:40:50",
|
|
122
|
+
"dateModified": "2023-09-21 11:40:50",
|
|
123
|
+
"title": "txtTest.docx",
|
|
124
|
+
"mimetype": "application/octet-stream",
|
|
125
|
+
"_url": "javascript:void(0);"
|
|
126
|
+
},
|
|
127
|
+
"useFilter": true,
|
|
128
|
+
"displayAs": "image",
|
|
129
|
+
"backgroundPosition": "center",
|
|
130
|
+
"backgroundSize": "cover",
|
|
131
|
+
"borderRadius": "10"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"title": "",
|
|
137
|
+
"widget": {
|
|
138
|
+
"name": "widget-article-gallery",
|
|
139
|
+
"uniqid": "650c0fa2c1c93",
|
|
140
|
+
"content": {
|
|
141
|
+
"files": [
|
|
142
|
+
{
|
|
143
|
+
"id": 93,
|
|
144
|
+
"mainType": "file",
|
|
145
|
+
"type": "fileTmp",
|
|
146
|
+
"uri": "fileTmp/93",
|
|
147
|
+
"dateCreation": "2023-09-21 11:40:50",
|
|
148
|
+
"dateModified": "2023-09-21 11:40:50",
|
|
149
|
+
"title": "txtTest.docx",
|
|
150
|
+
"mimetype": "application/octet-stream",
|
|
151
|
+
"_url": "javascript:void(0);"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"gap": "4",
|
|
155
|
+
"column": "3"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"o": "article",
|
|
3
|
-
"f": "getAttachment",
|
|
4
|
-
"error": 0,
|
|
5
|
-
"messages": [],
|
|
6
|
-
"result": [
|
|
7
|
-
{
|
|
8
|
-
"id":
|
|
9
|
-
"mainType": "fileArticle",
|
|
10
|
-
"type": "fileArticle",
|
|
11
|
-
"uri": "fileArticle/
|
|
12
|
-
"dateCreation": "2023-09-
|
|
13
|
-
"dateModified": "2023-09-
|
|
14
|
-
"title": "imgTest.jpg",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "getAttachment",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": [
|
|
7
|
+
{
|
|
8
|
+
"id": 4,
|
|
9
|
+
"mainType": "fileArticle",
|
|
10
|
+
"type": "fileArticle",
|
|
11
|
+
"uri": "fileArticle/4",
|
|
12
|
+
"dateCreation": "2023-09-21 10:09:45",
|
|
13
|
+
"dateModified": "2023-09-21 10:09:45",
|
|
14
|
+
"title": "imgTest.jpg",
|
|
15
|
+
"mimetype": "image/jpeg",
|
|
16
|
+
"_url": "/article/13"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "file",
|
|
3
|
+
"f": "create",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 9,
|
|
8
|
+
"mainType": "file",
|
|
9
|
+
"type": "fileTmp",
|
|
10
|
+
"uri": "fileTmp/9",
|
|
11
|
+
"dateCreation": "2023-09-14 15:34:15",
|
|
12
|
+
"dateModified": "2023-09-14 15:34:15",
|
|
13
|
+
"title": "imgTest.jpg",
|
|
14
|
+
"mimetype": "image/jpeg",
|
|
15
|
+
"_url": "javascript:void(0);"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "file", "f": "delete", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "file", "f": "deleteImage", "error": 0, "messages": [], "result": { "id": 29 } }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "file",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 27,
|
|
8
|
+
"mainType": "file",
|
|
9
|
+
"type": "fileTmp",
|
|
10
|
+
"uri": "fileTmp/27",
|
|
11
|
+
"dateCreation": "2023-09-15 10:29:07",
|
|
12
|
+
"dateModified": "2023-09-15 10:29:06",
|
|
13
|
+
"title": "imgTest.jpg",
|
|
14
|
+
"mimetype": "image/jpeg",
|
|
15
|
+
"_url": "javascript:void(0);"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "file",
|
|
3
|
+
"f": "update",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 8,
|
|
8
|
+
"mainType": "file",
|
|
9
|
+
"type": "fileTmp",
|
|
10
|
+
"uri": "fileTmp/8",
|
|
11
|
+
"dateCreation": "2023-09-14 14:12:30",
|
|
12
|
+
"dateModified": "2023-09-14 14:12:29",
|
|
13
|
+
"title": "imgTest.jpg",
|
|
14
|
+
"mimetype": "image/jpeg",
|
|
15
|
+
"_url": "javascript:void(0);",
|
|
16
|
+
"_extend": { "crop": { "x": 0, "y": 0, "w": 100, "h": 50, "rotation": 1 } }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"result": {
|
|
7
7
|
"interval": 60,
|
|
8
8
|
"channel": {
|
|
9
|
-
"id":
|
|
9
|
+
"id": 147,
|
|
10
10
|
"mainType": "article",
|
|
11
11
|
"type": "tvDisplayChannel",
|
|
12
|
-
"uri": "tvDisplayChannel/
|
|
13
|
-
"dateCreation": "2023-
|
|
14
|
-
"dateModified": "2023-
|
|
12
|
+
"uri": "tvDisplayChannel/147",
|
|
13
|
+
"dateCreation": "2023-09-15 09:57:22",
|
|
14
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
15
15
|
"title": "TV Channel dynamic",
|
|
16
16
|
"_url": "/ng/rr/tv-display",
|
|
17
17
|
"_right": {
|
|
@@ -44,25 +44,25 @@
|
|
|
44
44
|
"type": "spot",
|
|
45
45
|
"uri": "spot/1",
|
|
46
46
|
"dateCreation": "2019-07-18 18:36:24",
|
|
47
|
-
"dateModified": "2023-
|
|
47
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
48
48
|
"title": "Groupe public",
|
|
49
49
|
"_url": "/group/1",
|
|
50
50
|
"privacy": 1,
|
|
51
51
|
"category": "1"
|
|
52
52
|
},
|
|
53
|
-
"tvChannelConfig": { "contents": [], "key": "
|
|
53
|
+
"tvChannelConfig": { "contents": [], "key": "65040e622030f" },
|
|
54
54
|
"_extend": {
|
|
55
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
55
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL3R2RGlzcGxheUNoYW5uZWxcLzE0Ny5wbmcifQ.M_AZe2Im1tlWaFUZZZs0vSTFAIV4A5bEzGG0ErrY1l8",
|
|
56
56
|
"articles": [
|
|
57
57
|
{
|
|
58
|
-
"id":
|
|
58
|
+
"id": 148,
|
|
59
59
|
"mainType": "article",
|
|
60
60
|
"type": "mpArticle",
|
|
61
|
-
"uri": "mpArticle/
|
|
62
|
-
"dateCreation": "2023-
|
|
63
|
-
"dateModified": "2023-
|
|
61
|
+
"uri": "mpArticle/148",
|
|
62
|
+
"dateCreation": "2023-09-15 09:57:24",
|
|
63
|
+
"dateModified": "2023-09-15 09:57:25",
|
|
64
64
|
"title": "a-2",
|
|
65
|
-
"_url": "/article/
|
|
65
|
+
"_url": "/article/148",
|
|
66
66
|
"_right": {
|
|
67
67
|
"create": true,
|
|
68
68
|
"read": true,
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
},
|
|
88
88
|
"_extend": {
|
|
89
89
|
"descriptionSecure": "<div class=\"content-html\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>\n",
|
|
90
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
90
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL21wQXJ0aWNsZVwvMTQ4LnBuZyJ9.SyBEjpsFFbeL-GWT69yKgtL9v7af6KjOcNoQe8hKWOI",
|
|
91
91
|
"comments": [
|
|
92
92
|
{
|
|
93
|
-
"id":
|
|
93
|
+
"id": 12,
|
|
94
94
|
"mainType": "comment",
|
|
95
95
|
"type": "comment",
|
|
96
|
-
"uri": "comment/
|
|
97
|
-
"dateCreation": "2023-
|
|
96
|
+
"uri": "comment/12",
|
|
97
|
+
"dateCreation": "2023-09-15 09:57:26",
|
|
98
98
|
"dateModified": null,
|
|
99
99
|
"description": "<div class='content-html'>Phasellus sodales augue vitae sapien tempus tristique.</div>",
|
|
100
100
|
"_user": {
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"result": {
|
|
7
7
|
"interval": 60,
|
|
8
8
|
"channel": {
|
|
9
|
-
"id":
|
|
9
|
+
"id": 150,
|
|
10
10
|
"mainType": "article",
|
|
11
11
|
"type": "tvDisplayChannel",
|
|
12
|
-
"uri": "tvDisplayChannel/
|
|
13
|
-
"dateCreation": "2023-
|
|
14
|
-
"dateModified": "2023-
|
|
12
|
+
"uri": "tvDisplayChannel/150",
|
|
13
|
+
"dateCreation": "2023-09-15 09:57:26",
|
|
14
|
+
"dateModified": "2023-09-15 09:57:26",
|
|
15
15
|
"title": "TV Channel slideshow",
|
|
16
16
|
"_url": "/ng/rr/tv-display",
|
|
17
17
|
"_right": {
|
|
@@ -44,39 +44,41 @@
|
|
|
44
44
|
"type": "spot",
|
|
45
45
|
"uri": "spot/1",
|
|
46
46
|
"dateCreation": "2019-07-18 18:36:24",
|
|
47
|
-
"dateModified": "2023-
|
|
47
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
48
48
|
"title": "Groupe public",
|
|
49
49
|
"_url": "/group/1",
|
|
50
50
|
"privacy": 1,
|
|
51
51
|
"category": "1"
|
|
52
52
|
},
|
|
53
|
-
"tvChannelConfig": { "contents": [], "key": "
|
|
53
|
+
"tvChannelConfig": { "contents": [], "key": "65040e66b77be" },
|
|
54
54
|
"_extend": {
|
|
55
55
|
"attachments": [
|
|
56
56
|
{
|
|
57
|
-
"id":
|
|
57
|
+
"id": 20,
|
|
58
58
|
"mainType": "fileArticle",
|
|
59
59
|
"type": "fileArticle",
|
|
60
|
-
"uri": "fileArticle/
|
|
61
|
-
"dateCreation": "2023-
|
|
60
|
+
"uri": "fileArticle/20",
|
|
61
|
+
"dateCreation": "2023-09-15 09:57:27",
|
|
62
62
|
"dateModified": null,
|
|
63
63
|
"title": "imgTest.jpg",
|
|
64
|
+
"mimetype": "image/jpeg",
|
|
64
65
|
"_url": "/ng/rr/tv-display",
|
|
65
66
|
"_extend": {
|
|
66
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
67
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMCIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.LvM19cWwGYEEjLxTeYxYe_6s-GEDonSGit3eDm5uEHY"
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
{
|
|
70
|
-
"id":
|
|
71
|
+
"id": 21,
|
|
71
72
|
"mainType": "fileArticle",
|
|
72
73
|
"type": "fileArticle",
|
|
73
|
-
"uri": "fileArticle/
|
|
74
|
-
"dateCreation": "2023-
|
|
74
|
+
"uri": "fileArticle/21",
|
|
75
|
+
"dateCreation": "2023-09-15 09:57:27",
|
|
75
76
|
"dateModified": null,
|
|
76
77
|
"title": "imgTest.jpg",
|
|
78
|
+
"mimetype": "image/jpeg",
|
|
77
79
|
"_url": "/ng/rr/tv-display",
|
|
78
80
|
"_extend": {
|
|
79
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
81
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMSIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.0ateeXcwyHrVzdcWyRZsH0Nun04OouZ8DmrBfMDc_f4"
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
]
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"error": 0,
|
|
5
5
|
"messages": [],
|
|
6
6
|
"result": {
|
|
7
|
-
"id":
|
|
7
|
+
"id": 147,
|
|
8
8
|
"mainType": "article",
|
|
9
9
|
"type": "tvDisplayChannel",
|
|
10
|
-
"uri": "tvDisplayChannel/
|
|
11
|
-
"dateCreation": "2023-
|
|
12
|
-
"dateModified": "2023-
|
|
10
|
+
"uri": "tvDisplayChannel/147",
|
|
11
|
+
"dateCreation": "2023-09-15 09:57:22",
|
|
12
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
13
13
|
"title": "TV Channel dynamic",
|
|
14
14
|
"_url": "/ng/rr/tv-display",
|
|
15
15
|
"_right": {
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
"type": "spot",
|
|
43
43
|
"uri": "spot/1",
|
|
44
44
|
"dateCreation": "2019-07-18 18:36:24",
|
|
45
|
-
"dateModified": "2023-
|
|
45
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
46
46
|
"title": "Groupe public",
|
|
47
47
|
"_url": "/group/1",
|
|
48
48
|
"privacy": 1,
|
|
49
49
|
"category": "1"
|
|
50
50
|
},
|
|
51
|
-
"tvChannelConfig": { "contents": [], "key": "
|
|
51
|
+
"tvChannelConfig": { "contents": [], "key": "65040e622030f" },
|
|
52
52
|
"_extend": {
|
|
53
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
53
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL3R2RGlzcGxheUNoYW5uZWxcLzE0Ny5wbmcifQ.M_AZe2Im1tlWaFUZZZs0vSTFAIV4A5bEzGG0ErrY1l8",
|
|
54
54
|
"articles": [
|
|
55
55
|
{
|
|
56
|
-
"id":
|
|
56
|
+
"id": 148,
|
|
57
57
|
"mainType": "article",
|
|
58
58
|
"type": "mpArticle",
|
|
59
|
-
"uri": "mpArticle/
|
|
60
|
-
"dateCreation": "2023-
|
|
61
|
-
"dateModified": "2023-
|
|
59
|
+
"uri": "mpArticle/148",
|
|
60
|
+
"dateCreation": "2023-09-15 09:57:24",
|
|
61
|
+
"dateModified": "2023-09-15 09:57:25",
|
|
62
62
|
"title": "a-2",
|
|
63
|
-
"_url": "/article/
|
|
63
|
+
"_url": "/article/148",
|
|
64
64
|
"_right": {
|
|
65
65
|
"create": true,
|
|
66
66
|
"read": true,
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
},
|
|
86
86
|
"_extend": {
|
|
87
87
|
"descriptionSecure": "<div class=\"content-html\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>\n",
|
|
88
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
88
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL21wQXJ0aWNsZVwvMTQ4LnBuZyJ9.SyBEjpsFFbeL-GWT69yKgtL9v7af6KjOcNoQe8hKWOI",
|
|
89
89
|
"comments": [
|
|
90
90
|
{
|
|
91
|
-
"id":
|
|
91
|
+
"id": 12,
|
|
92
92
|
"mainType": "comment",
|
|
93
93
|
"type": "comment",
|
|
94
|
-
"uri": "comment/
|
|
95
|
-
"dateCreation": "2023-
|
|
94
|
+
"uri": "comment/12",
|
|
95
|
+
"dateCreation": "2023-09-15 09:57:26",
|
|
96
96
|
"dateModified": null,
|
|
97
97
|
"description": "<div class='content-html'>Phasellus sodales augue vitae sapien tempus tristique.</div>",
|
|
98
98
|
"_user": {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"error": 0,
|
|
5
5
|
"messages": [],
|
|
6
6
|
"result": {
|
|
7
|
-
"id":
|
|
7
|
+
"id": 150,
|
|
8
8
|
"mainType": "article",
|
|
9
9
|
"type": "tvDisplayChannel",
|
|
10
|
-
"uri": "tvDisplayChannel/
|
|
11
|
-
"dateCreation": "2023-
|
|
12
|
-
"dateModified": "2023-
|
|
10
|
+
"uri": "tvDisplayChannel/150",
|
|
11
|
+
"dateCreation": "2023-09-15 09:57:26",
|
|
12
|
+
"dateModified": "2023-09-15 09:57:26",
|
|
13
13
|
"title": "TV Channel slideshow",
|
|
14
14
|
"_url": "/ng/rr/tv-display",
|
|
15
15
|
"_right": {
|
|
@@ -42,39 +42,41 @@
|
|
|
42
42
|
"type": "spot",
|
|
43
43
|
"uri": "spot/1",
|
|
44
44
|
"dateCreation": "2019-07-18 18:36:24",
|
|
45
|
-
"dateModified": "2023-
|
|
45
|
+
"dateModified": "2023-09-15 09:57:24",
|
|
46
46
|
"title": "Groupe public",
|
|
47
47
|
"_url": "/group/1",
|
|
48
48
|
"privacy": 1,
|
|
49
49
|
"category": "1"
|
|
50
50
|
},
|
|
51
|
-
"tvChannelConfig": { "contents": [], "key": "
|
|
51
|
+
"tvChannelConfig": { "contents": [], "key": "65040e66b77be" },
|
|
52
52
|
"_extend": {
|
|
53
53
|
"attachments": [
|
|
54
54
|
{
|
|
55
|
-
"id":
|
|
55
|
+
"id": 20,
|
|
56
56
|
"mainType": "fileArticle",
|
|
57
57
|
"type": "fileArticle",
|
|
58
|
-
"uri": "fileArticle/
|
|
59
|
-
"dateCreation": "2023-
|
|
58
|
+
"uri": "fileArticle/20",
|
|
59
|
+
"dateCreation": "2023-09-15 09:57:27",
|
|
60
60
|
"dateModified": null,
|
|
61
61
|
"title": "imgTest.jpg",
|
|
62
|
+
"mimetype": "image/jpeg",
|
|
62
63
|
"_url": "/ng/rr/tv-display",
|
|
63
64
|
"_extend": {
|
|
64
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
65
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMCIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.LvM19cWwGYEEjLxTeYxYe_6s-GEDonSGit3eDm5uEHY"
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
|
-
"id":
|
|
69
|
+
"id": 21,
|
|
69
70
|
"mainType": "fileArticle",
|
|
70
71
|
"type": "fileArticle",
|
|
71
|
-
"uri": "fileArticle/
|
|
72
|
-
"dateCreation": "2023-
|
|
72
|
+
"uri": "fileArticle/21",
|
|
73
|
+
"dateCreation": "2023-09-15 09:57:27",
|
|
73
74
|
"dateModified": null,
|
|
74
75
|
"title": "imgTest.jpg",
|
|
76
|
+
"mimetype": "image/jpeg",
|
|
75
77
|
"_url": "/ng/rr/tv-display",
|
|
76
78
|
"_extend": {
|
|
77
|
-
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
79
|
+
"imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMSIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.0ateeXcwyHrVzdcWyRZsH0Nun04OouZ8DmrBfMDc_f4"
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
]
|
package/lib/src/apis/file.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ApiWrapper, FileCropConfig, FileResponse, JFileExtended, UploadConfig } from '../types';
|
|
2
|
-
import { JBaseApi } from './base';
|
|
3
|
-
export declare class JFileApi extends JBaseApi {
|
|
4
|
-
/**
|
|
5
|
-
* Upload a file to the server. use the same token to link the file to an article
|
|
6
|
-
* @param config configuration object. One of "file" and "url" is mandatory
|
|
7
|
-
*/
|
|
8
|
-
upload(config: UploadConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>>;
|
|
9
|
-
/**
|
|
10
|
-
* Upload a list of files to the server. use the same token to link the file to an article
|
|
11
|
-
* @param attrName file name (attachment, image, bannerImage, etc.)
|
|
12
|
-
* @param files files
|
|
13
|
-
* @param token token
|
|
14
|
-
*/
|
|
15
|
-
uploadMany(configArray: Array<UploadConfig>): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>[]>;
|
|
16
|
-
get<T extends JFileExtended>(idFile: number, format?: string): Promise<ApiWrapper<T>>;
|
|
17
|
-
/**
|
|
18
|
-
* Crop an image
|
|
19
|
-
* @param config crop configuration
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
update(idFile: number | string, type: string, config: FileCropConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages> | {
|
|
23
|
-
result: {
|
|
24
|
-
crop: {
|
|
25
|
-
width: any;
|
|
26
|
-
height: any;
|
|
27
|
-
x: any;
|
|
28
|
-
y: any;
|
|
29
|
-
rotation: any;
|
|
30
|
-
};
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
type: string;
|
|
34
|
-
token?: string;
|
|
35
|
-
size: string;
|
|
36
|
-
mediaKey: string;
|
|
37
|
-
imagesize: import("../types").ImageSize;
|
|
38
|
-
};
|
|
39
|
-
o: string;
|
|
40
|
-
f: string;
|
|
41
|
-
error: number;
|
|
42
|
-
messages: import("../types").BaseMessages;
|
|
43
|
-
errorMsg?: string;
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* delete file. This action is not automatic. You need to update the content associated with the deleted image with the same token
|
|
47
|
-
* @param idFile file id
|
|
48
|
-
* @param attrName attribute name
|
|
49
|
-
* @param token token
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
deleteFile(idFile: number | string, attrName: string, token: string, signal?: AbortSignal): Promise<ApiWrapper<"", import("../types").BaseMessages>>;
|
|
53
|
-
/**
|
|
54
|
-
* delete the image associated with a content. This action is permanent. There is no two step process with a token
|
|
55
|
-
* @param id content id
|
|
56
|
-
* @param type content type
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
deleteImage(id: number | string, type: string): Promise<ApiWrapper<{
|
|
60
|
-
id: number;
|
|
61
|
-
}, import("../types").BaseMessages>>;
|
|
62
|
-
}
|