jamespot-user-api 1.0.110 → 1.0.112

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 (104) 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/JFileApi.html +5 -5
  14. package/documentation/classes/JFilebankApi.html +1 -1
  15. package/documentation/classes/JGroupApi.html +14 -10
  16. package/documentation/classes/JLandApi.html +1 -1
  17. package/documentation/classes/JMessengerApi.html +1 -1
  18. package/documentation/classes/JSearchApi.html +6 -6
  19. package/documentation/classes/JShareApi.html +1 -1
  20. package/documentation/classes/JTaxonomyApi.html +2 -2
  21. package/documentation/classes/JUserApi.html +5 -5
  22. package/documentation/classes/JWedocApi.html +1 -1
  23. package/documentation/classes/JamespotUserApi.html +1 -1
  24. package/documentation/classes/Network.html +1 -1
  25. package/documentation/classes/TVDisplayApi.html +1 -0
  26. package/documentation/classes/WindowBrowser.html +1 -1
  27. package/documentation/enums/StudioApplicationStatus.html +1 -1
  28. package/documentation/index.html +1 -1
  29. package/documentation/interfaces/AccessRightObject.html +1 -1
  30. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  31. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  32. package/documentation/interfaces/ApiWrapper.html +1 -1
  33. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  34. package/documentation/interfaces/BaseMessage.html +1 -1
  35. package/documentation/interfaces/Category.html +1 -1
  36. package/documentation/interfaces/FileBankProps.html +1 -1
  37. package/documentation/interfaces/FolderProps.html +1 -1
  38. package/documentation/interfaces/ListFilterSpec.html +1 -1
  39. package/documentation/interfaces/OF.html +1 -1
  40. package/documentation/interfaces/ObjectListProps.html +1 -1
  41. package/documentation/interfaces/PagingResults.html +1 -1
  42. package/documentation/interfaces/RootFolderProps.html +1 -1
  43. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  44. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  45. package/documentation/interfaces/SearchConfig.html +1 -1
  46. package/documentation/interfaces/SearchFacetModel.html +1 -1
  47. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  48. package/documentation/interfaces/SearchQuery.html +1 -1
  49. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  50. package/documentation/interfaces/SearchQueryOption.html +1 -1
  51. package/documentation/interfaces/SearchQueryResult.html +1 -1
  52. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  53. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  54. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  55. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  56. package/documentation/interfaces/SpotProps.html +1 -1
  57. package/documentation/interfaces/Taxonomy.html +1 -1
  58. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  59. package/documentation/interfaces/WindowInterface.html +1 -1
  60. package/documentation/modules.html +23 -7
  61. package/lib/jamespot-user-api.js +1 -1
  62. package/lib/jamespot-user-api.js.map +1 -1
  63. package/lib/src/apis/article/article.d.ts +2 -2
  64. package/lib/src/apis/bookmark/bookmark.d.ts +1 -19
  65. package/lib/src/apis/community.d.ts +2 -38
  66. package/lib/src/apis/file.d.ts +1 -1
  67. package/lib/src/apis/filebank.d.ts +15 -3
  68. package/lib/src/apis/group/group.d.ts +11 -51
  69. package/lib/src/apis/group/group.mock.d.ts +3 -2
  70. package/lib/src/apis/group/index.d.ts +1 -1
  71. package/lib/src/apis/index.d.ts +1 -0
  72. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  73. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +12 -0
  74. package/lib/src/apis/tvDisplay/tvDisplay.mock.d.ts +7 -0
  75. package/lib/src/apis/tvDisplay/tvDisplay.test.d.ts +1 -0
  76. package/lib/src/apis/user/user.d.ts +4 -2
  77. package/lib/src/types/comment.d.ts +11 -0
  78. package/lib/src/types/file.d.ts +5 -0
  79. package/lib/src/{apis/group/group.types.d.ts → types/group.d.ts} +4 -5
  80. package/lib/src/types/model.d.ts +1 -1
  81. package/lib/src/types/tvDisplay.d.ts +61 -21
  82. package/lib/src/types/uri.d.ts +19 -0
  83. package/lib/src/types/user.d.ts +2 -0
  84. package/lib/src/types/utils.d.ts +6 -6
  85. package/lib/src/util/Test.d.ts +4 -20
  86. package/lib/src/util/ensure.d.ts +7 -1
  87. package/lib/src/util/images.d.ts +68 -0
  88. package/lib/src/util/images.test.d.ts +1 -0
  89. package/lib/src/util/index.d.ts +4 -0
  90. package/lib/src/util/network.d.ts +1 -1
  91. package/lib/src/util/string.d.ts +3 -0
  92. package/lib/src/util/taxonomy.d.ts +2 -0
  93. package/lib/src/util/taxonomy.test.d.ts +1 -0
  94. package/lib/src/util/uri.d.ts +2 -0
  95. package/lib/src/util/uri.test.d.ts +1 -0
  96. package/package.json +1 -1
  97. package/phpunitMock/autocompleteSpot-a.json +50 -0
  98. package/phpunitMock/spotGet-default.json +5 -6
  99. package/phpunitMock/spotGetProperties-default.json +1 -1
  100. package/phpunitMock/tvDisplayGetChannel-dynamic.json +166 -0
  101. package/phpunitMock/tvDisplayGetChannel-slideshow.json +86 -0
  102. package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +163 -0
  103. package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +83 -0
  104. package/lib/src/types/spot.d.ts +0 -5
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @see JRCImgProps
3
+ */
4
+ declare type WidthHeight = {
5
+ width?: number;
6
+ height?: number;
7
+ };
8
+ /**
9
+ * @see JRCImgProps
10
+ */
11
+ declare type Size = {
12
+ size?: string;
13
+ };
14
+ /**
15
+ * @see JRCImgProps
16
+ */
17
+ declare type Format = {
18
+ format?: string;
19
+ };
20
+ /**
21
+ * @see JRCImgProps
22
+ */
23
+ declare type Timestamp = {
24
+ timestamp?: string | number;
25
+ };
26
+ declare type Args = Timestamp & {
27
+ iconColor?: 'white';
28
+ };
29
+ /**
30
+ * @see JRCImgProps
31
+ */
32
+ export declare type ImgUrlProps = {
33
+ url?: string;
34
+ fallbackUrl?: string;
35
+ size?: string;
36
+ width?: number;
37
+ height?: number;
38
+ maxWidth?: string;
39
+ from?: string;
40
+ uri?: string;
41
+ recordId?: string | number;
42
+ type?: string;
43
+ format?: string;
44
+ iconColor?: 'white';
45
+ timestamp?: string | number;
46
+ };
47
+ export declare function getFrom(arg: Pick<ImgUrlProps, 'from'>): string;
48
+ export declare function getTimestamp(arg: Timestamp): string;
49
+ export declare function getArgs(arg: Args): string;
50
+ export declare function getSize(arg: Size & WidthHeight, dpr?: number): string;
51
+ export declare function getFormat(arg: Format): string;
52
+ export declare function getUrl(url: string): URL | undefined;
53
+ /**
54
+ * Format an img url
55
+ * If url arg is provided, it is used, in addition with an optional timestamp
56
+ * If not parsable or not passed, one should provide:
57
+ * - optional from
58
+ * - size in either size or width/height argument.
59
+ * If width & height are provided, the downloaded image take car of the screen resolution
60
+ * - uri or type/recordId
61
+ * - optional format, default png
62
+ * - optional timestamp
63
+ * The final url is {from}/{size}/{uri}.{format}?_={timestamp}
64
+ * @param arg
65
+ * @param dpr device pixel ratio
66
+ */
67
+ export declare function formatImgUrl(arg: ImgUrlProps, dpr?: number): string;
68
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,8 @@
1
1
  export * from './ensure';
2
2
  export * from './file';
3
+ export * from './images';
3
4
  export * from './network';
4
5
  export * from './object';
6
+ export * from './string';
7
+ export * from './taxonomy';
8
+ export * from './uri';
@@ -30,7 +30,7 @@ export declare class Network {
30
30
  postFile(body: FormData): Promise<ApiWrapper<FileResponse, BaseMessages>>;
31
31
  postCSRF<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
32
32
  postToken<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
33
- maybePostToken<T, U = BaseMessages>(body: MaybeWithToken<OF>): Promise<ApiWrapper<T, U>>;
33
+ maybePostToken<T, U = BaseMessages, P extends MaybeWithToken<OF> = MaybeWithToken<OF>>(body: P): Promise<ApiWrapper<T, U>>;
34
34
  token(): Promise<ApiWrapper<string>>;
35
35
  tokenCSRF(): Promise<ApiWrapper<string>>;
36
36
  }
@@ -0,0 +1,3 @@
1
+ export declare function suffixIfDoesNotExist(str: string | undefined, suffix: string): string | undefined;
2
+ export declare function removeIfStartsWith(str: string | undefined, prefix: string): string | undefined;
3
+ export declare function padStartTwoDigits(val: string | number): string;
@@ -0,0 +1,2 @@
1
+ export declare function extractTaxonomiesFromObject(objet: Record<string, unknown>): Record<string, unknown>;
2
+ export declare function extractTaxonomiesFromObjectAndMapUri(objet: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { UriOrTypeId } from '../types/uri';
2
+ export declare function getUri(arg: UriOrTypeId): string;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "scripts": {
5
5
  "build": "npx webpack --env NODE_ENV=production",
6
6
  "build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",
@@ -0,0 +1,50 @@
1
+ {
2
+ "o": "autocomplete",
3
+ "f": "spot",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": "spot/5",
9
+ "idspot": "5",
10
+ "uri": "spot/5",
11
+ "shortUri": "s5",
12
+ "title": "Spot 1 [updated]",
13
+ "name": "Spot 1 [updated]",
14
+ "mainType": "spot",
15
+ "type": "spot",
16
+ "label": "Groupe",
17
+ "cssClass": "group",
18
+ "cssColor": "#e34d55",
19
+ "class": "user-selector-spot"
20
+ },
21
+ {
22
+ "id": "spot/6",
23
+ "idspot": "6",
24
+ "uri": "spot/6",
25
+ "shortUri": "s6",
26
+ "title": "Spot 2 [updated]",
27
+ "name": "Spot 2 [updated]",
28
+ "mainType": "spot",
29
+ "type": "spot",
30
+ "label": "Groupe",
31
+ "cssClass": "group",
32
+ "cssColor": "#e34d55",
33
+ "class": "user-selector-spot"
34
+ },
35
+ {
36
+ "id": "spot/22",
37
+ "idspot": "22",
38
+ "uri": "spot/22",
39
+ "shortUri": "s22",
40
+ "title": "Groupe test A",
41
+ "name": "Groupe test A",
42
+ "mainType": "spot",
43
+ "type": "spot",
44
+ "label": "Groupe",
45
+ "cssClass": "group",
46
+ "cssColor": "#e34d55",
47
+ "class": "user-selector-spot"
48
+ }
49
+ ]
50
+ }
@@ -4,16 +4,15 @@
4
4
  "error": 0,
5
5
  "messages": [],
6
6
  "result": {
7
- "id": 2,
7
+ "id": 1,
8
8
  "mainType": "spot",
9
9
  "type": "spot",
10
- "uri": "spot/2",
11
- "dateCreation": "2019-07-19 18:36:24",
12
- "dateModified": "2023-06-08 09:19:44",
10
+ "uri": "spot/1",
11
+ "dateCreation": "2019-07-18 18:36:24",
12
+ "dateModified": "2019-07-18 18:36:24",
13
13
  "title": "Groupe public",
14
- "_url": "/group/2",
14
+ "_url": "/group/1",
15
15
  "privacy": 1,
16
- "idCategory": 1,
17
16
  "category": "1",
18
17
  "description": "",
19
18
  "edito": null,
@@ -58,7 +58,7 @@
58
58
  "edit_access": "",
59
59
  "commentLevel": "3",
60
60
  "user_level_signup": "2",
61
- "nounsubscribe": "1",
61
+ "nounsubscribe": "0",
62
62
  "useTeaser": "",
63
63
  "displayType": "wall",
64
64
  "spot_right_user": "2",
@@ -0,0 +1,166 @@
1
+ {
2
+ "o": "tvDisplay",
3
+ "f": "getChannel",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "interval": 60,
8
+ "channel": {
9
+ "id": 168,
10
+ "mainType": "article",
11
+ "type": "tvDisplayChannel",
12
+ "uri": "tvDisplayChannel/168",
13
+ "dateCreation": "2023-07-31 11:12:03",
14
+ "dateModified": "2023-07-31 11:12:03",
15
+ "title": "TV Channel dynamic",
16
+ "_url": "/ng/rr/tv-display",
17
+ "_right": {
18
+ "create": true,
19
+ "read": true,
20
+ "publish": true,
21
+ "administrate": true,
22
+ "update": true,
23
+ "delete": true,
24
+ "comment": false,
25
+ "member": true
26
+ },
27
+ "_user": {
28
+ "id": 4,
29
+ "mainType": "user",
30
+ "type": "user",
31
+ "uri": "user/4",
32
+ "dateCreation": "2019-07-09 15:48:26",
33
+ "dateModified": "2019-07-09 15:51:24",
34
+ "title": "Admin1",
35
+ "_url": "/user/4",
36
+ "level": 9
37
+ },
38
+ "tvChannelType": "DYNAMIC",
39
+ "tvChannelBackgroundColor": "#FF0000",
40
+ "tvChannelNumImages": 0,
41
+ "tvChannelGroupTarget": {
42
+ "id": 1,
43
+ "mainType": "spot",
44
+ "type": "spot",
45
+ "uri": "spot/1",
46
+ "dateCreation": "2019-07-18 18:36:24",
47
+ "dateModified": "2023-07-31 11:12:04",
48
+ "title": "Groupe public",
49
+ "_url": "/group/1",
50
+ "privacy": 1,
51
+ "category": "1"
52
+ },
53
+ "tvChannelConfig": { "contents": [], "key": "64c77ae3d247e" },
54
+ "_extend": {
55
+ "imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL3R2RGlzcGxheUNoYW5uZWxcLzE2OC5wbmcifQ.ZBwfoMazbEWGpKidSLYvIKHfgsRJUQ1QyOoOE5X_K-8",
56
+ "articles": [
57
+ {
58
+ "id": 169,
59
+ "mainType": "article",
60
+ "type": "mpArticle",
61
+ "uri": "mpArticle/169",
62
+ "dateCreation": "2023-07-31 11:12:04",
63
+ "dateModified": "2023-07-31 11:12:04",
64
+ "title": "a-2",
65
+ "_url": "/article/169",
66
+ "_right": {
67
+ "create": true,
68
+ "read": true,
69
+ "publish": false,
70
+ "administrate": true,
71
+ "update": true,
72
+ "delete": true,
73
+ "comment": true,
74
+ "member": true
75
+ },
76
+ "description": "<div class='content-html'>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>",
77
+ "_user": {
78
+ "id": 4,
79
+ "mainType": "user",
80
+ "type": "user",
81
+ "uri": "user/4",
82
+ "dateCreation": "2019-07-09 15:48:26",
83
+ "dateModified": "2019-07-09 15:51:24",
84
+ "title": "Admin1",
85
+ "_url": "/user/4",
86
+ "level": 9
87
+ },
88
+ "_extend": {
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.eyJwYXRoIjoib3JpZ2luYWxcL21wQXJ0aWNsZVwvMTY5LnBuZyJ9.QmhlsUg2s41MxGDSQFt49NNQYWCaMCepRaNElYFTEA8",
91
+ "comments": [
92
+ {
93
+ "id": 13,
94
+ "mainType": "comment",
95
+ "type": "comment",
96
+ "uri": "comment/13",
97
+ "dateCreation": "2023-07-31 11:12:04",
98
+ "dateModified": null,
99
+ "description": "<div class='content-html'>Phasellus sodales augue vitae sapien tempus tristique.</div>",
100
+ "_user": {
101
+ "id": 4,
102
+ "mainType": "user",
103
+ "type": "user",
104
+ "uri": "user/4",
105
+ "dateCreation": "2019-07-09 15:48:26",
106
+ "dateModified": "2019-07-09 15:51:24",
107
+ "title": "Admin1",
108
+ "_url": "/user/4",
109
+ "level": 9
110
+ },
111
+ "_right": {
112
+ "create": true,
113
+ "read": true,
114
+ "publish": true,
115
+ "administrate": true,
116
+ "update": true,
117
+ "delete": true,
118
+ "comment": true,
119
+ "member": true
120
+ },
121
+ "_extend": {
122
+ "userImageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiNTAweDUwMFwvdXNlclwvNC5wbmcifQ.fpOAxsrCyDTyPQnIJaGcU6ty-HZOFl2M9ZfszPcHy-g",
123
+ "descriptionSecure": "<div class=\"content-html\">Phasellus sodales augue vitae sapien tempus tristique.</div>\n"
124
+ }
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ {
130
+ "id": 2,
131
+ "mainType": "article",
132
+ "type": "mpArticle",
133
+ "uri": "mpArticle/2",
134
+ "dateCreation": "2019-07-19 09:36:25",
135
+ "dateModified": "2019-07-19 09:36:25",
136
+ "title": "Article groupe public",
137
+ "_url": "/article/2",
138
+ "_right": {
139
+ "create": true,
140
+ "read": true,
141
+ "publish": false,
142
+ "administrate": true,
143
+ "update": true,
144
+ "delete": true,
145
+ "comment": false,
146
+ "member": true
147
+ },
148
+ "description": "<div class='content-html'></div>",
149
+ "_user": {
150
+ "id": 1,
151
+ "mainType": "user",
152
+ "type": "user",
153
+ "uri": "user/1",
154
+ "dateCreation": "2019-03-26 16:29:33",
155
+ "dateModified": "2019-07-19 09:39:23",
156
+ "title": "AdminJenkins",
157
+ "_url": "/user/1",
158
+ "level": 9
159
+ },
160
+ "_extend": { "descriptionSecure": "<div class=\"content-html\"></div>\n", "comments": [] }
161
+ }
162
+ ]
163
+ }
164
+ }
165
+ }
166
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "o": "tvDisplay",
3
+ "f": "getChannel",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "interval": 60,
8
+ "channel": {
9
+ "id": 171,
10
+ "mainType": "article",
11
+ "type": "tvDisplayChannel",
12
+ "uri": "tvDisplayChannel/171",
13
+ "dateCreation": "2023-07-31 11:12:04",
14
+ "dateModified": "2023-07-31 11:12:04",
15
+ "title": "TV Channel slideshow",
16
+ "_url": "/ng/rr/tv-display",
17
+ "_right": {
18
+ "create": true,
19
+ "read": true,
20
+ "publish": true,
21
+ "administrate": true,
22
+ "update": true,
23
+ "delete": true,
24
+ "comment": false,
25
+ "member": true
26
+ },
27
+ "_user": {
28
+ "id": 4,
29
+ "mainType": "user",
30
+ "type": "user",
31
+ "uri": "user/4",
32
+ "dateCreation": "2019-07-09 15:48:26",
33
+ "dateModified": "2019-07-09 15:51:24",
34
+ "title": "Admin1",
35
+ "_url": "/user/4",
36
+ "level": 9
37
+ },
38
+ "tvChannelType": "SLIDESHOW",
39
+ "tvChannelBackgroundColor": "#9000DA",
40
+ "tvChannelNumImages": 2,
41
+ "tvChannelGroupTarget": {
42
+ "id": 1,
43
+ "mainType": "spot",
44
+ "type": "spot",
45
+ "uri": "spot/1",
46
+ "dateCreation": "2019-07-18 18:36:24",
47
+ "dateModified": "2023-07-31 11:12:04",
48
+ "title": "Groupe public",
49
+ "_url": "/group/1",
50
+ "privacy": 1,
51
+ "category": "1"
52
+ },
53
+ "tvChannelConfig": { "contents": [], "key": "64c77ae48a2d0" },
54
+ "_extend": {
55
+ "attachments": [
56
+ {
57
+ "id": 22,
58
+ "mainType": "fileArticle",
59
+ "type": "fileArticle",
60
+ "uri": "fileArticle/22",
61
+ "dateCreation": "2023-07-31 11:12:04",
62
+ "dateModified": null,
63
+ "title": "imgTest.jpg",
64
+ "_url": "/ng/rr/tv-display",
65
+ "_extend": {
66
+ "imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMiIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.nhy6AHgSUJ25GW_zvg3Ng8efxxErEOaHZIbAhK8qqZ0"
67
+ }
68
+ },
69
+ {
70
+ "id": 23,
71
+ "mainType": "fileArticle",
72
+ "type": "fileArticle",
73
+ "uri": "fileArticle/23",
74
+ "dateCreation": "2023-07-31 11:12:04",
75
+ "dateModified": null,
76
+ "title": "imgTest.jpg",
77
+ "_url": "/ng/rr/tv-display",
78
+ "_extend": {
79
+ "imageSecureUrl": "http://jenkins-preprod.jamespot.pro/mediasecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZEZpbGUiOiIyMyIsIm1lZGlhS2V5IjoiOGNiMDYwYjRhOWMzNTBhOWQzNGI1ODg0NzlkMjBjOWYifQ.5UNtRkFJvc2hTkiJ7i7UFt-8WD-tTw0JFOZMQI9ROpo"
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,163 @@
1
+ {
2
+ "o": "tvDisplay",
3
+ "f": "getConfigureChannel",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 168,
8
+ "mainType": "article",
9
+ "type": "tvDisplayChannel",
10
+ "uri": "tvDisplayChannel/168",
11
+ "dateCreation": "2023-07-31 11:12:03",
12
+ "dateModified": "2023-07-31 11:12:03",
13
+ "title": "TV Channel dynamic",
14
+ "_url": "/ng/rr/tv-display",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": true,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": false,
23
+ "member": true
24
+ },
25
+ "_user": {
26
+ "id": 4,
27
+ "mainType": "user",
28
+ "type": "user",
29
+ "uri": "user/4",
30
+ "dateCreation": "2019-07-09 15:48:26",
31
+ "dateModified": "2019-07-09 15:51:24",
32
+ "title": "Admin1",
33
+ "_url": "/user/4",
34
+ "level": 9
35
+ },
36
+ "tvChannelType": "DYNAMIC",
37
+ "tvChannelBackgroundColor": "#FF0000",
38
+ "tvChannelNumImages": 0,
39
+ "tvChannelGroupTarget": {
40
+ "id": 1,
41
+ "mainType": "spot",
42
+ "type": "spot",
43
+ "uri": "spot/1",
44
+ "dateCreation": "2019-07-18 18:36:24",
45
+ "dateModified": "2023-07-31 11:12:04",
46
+ "title": "Groupe public",
47
+ "_url": "/group/1",
48
+ "privacy": 1,
49
+ "category": "1"
50
+ },
51
+ "tvChannelConfig": { "contents": [], "key": "64c77ae3d247e" },
52
+ "_extend": {
53
+ "imageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3JpZ2luYWxcL3R2RGlzcGxheUNoYW5uZWxcLzE2OC5wbmcifQ.ZBwfoMazbEWGpKidSLYvIKHfgsRJUQ1QyOoOE5X_K-8",
54
+ "articles": [
55
+ {
56
+ "id": 169,
57
+ "mainType": "article",
58
+ "type": "mpArticle",
59
+ "uri": "mpArticle/169",
60
+ "dateCreation": "2023-07-31 11:12:04",
61
+ "dateModified": "2023-07-31 11:12:04",
62
+ "title": "a-2",
63
+ "_url": "/article/169",
64
+ "_right": {
65
+ "create": true,
66
+ "read": true,
67
+ "publish": false,
68
+ "administrate": true,
69
+ "update": true,
70
+ "delete": true,
71
+ "comment": true,
72
+ "member": true
73
+ },
74
+ "description": "<div class='content-html'>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>",
75
+ "_user": {
76
+ "id": 4,
77
+ "mainType": "user",
78
+ "type": "user",
79
+ "uri": "user/4",
80
+ "dateCreation": "2019-07-09 15:48:26",
81
+ "dateModified": "2019-07-09 15:51:24",
82
+ "title": "Admin1",
83
+ "_url": "/user/4",
84
+ "level": 9
85
+ },
86
+ "_extend": {
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.eyJwYXRoIjoib3JpZ2luYWxcL21wQXJ0aWNsZVwvMTY5LnBuZyJ9.QmhlsUg2s41MxGDSQFt49NNQYWCaMCepRaNElYFTEA8",
89
+ "comments": [
90
+ {
91
+ "id": 13,
92
+ "mainType": "comment",
93
+ "type": "comment",
94
+ "uri": "comment/13",
95
+ "dateCreation": "2023-07-31 11:12:04",
96
+ "dateModified": null,
97
+ "description": "<div class='content-html'>Phasellus sodales augue vitae sapien tempus tristique.</div>",
98
+ "_user": {
99
+ "id": 4,
100
+ "mainType": "user",
101
+ "type": "user",
102
+ "uri": "user/4",
103
+ "dateCreation": "2019-07-09 15:48:26",
104
+ "dateModified": "2019-07-09 15:51:24",
105
+ "title": "Admin1",
106
+ "_url": "/user/4",
107
+ "level": 9
108
+ },
109
+ "_right": {
110
+ "create": true,
111
+ "read": true,
112
+ "publish": true,
113
+ "administrate": true,
114
+ "update": true,
115
+ "delete": true,
116
+ "comment": true,
117
+ "member": true
118
+ },
119
+ "_extend": {
120
+ "userImageSecureUrl": "http://jenkins-preprod.jamespot.pro/imagesecure/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoiNTAweDUwMFwvdXNlclwvNC5wbmcifQ.fpOAxsrCyDTyPQnIJaGcU6ty-HZOFl2M9ZfszPcHy-g",
121
+ "descriptionSecure": "<div class=\"content-html\">Phasellus sodales augue vitae sapien tempus tristique.</div>\n"
122
+ }
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ {
128
+ "id": 2,
129
+ "mainType": "article",
130
+ "type": "mpArticle",
131
+ "uri": "mpArticle/2",
132
+ "dateCreation": "2019-07-19 09:36:25",
133
+ "dateModified": "2019-07-19 09:36:25",
134
+ "title": "Article groupe public",
135
+ "_url": "/article/2",
136
+ "_right": {
137
+ "create": true,
138
+ "read": true,
139
+ "publish": false,
140
+ "administrate": true,
141
+ "update": true,
142
+ "delete": true,
143
+ "comment": false,
144
+ "member": true
145
+ },
146
+ "description": "<div class='content-html'></div>",
147
+ "_user": {
148
+ "id": 1,
149
+ "mainType": "user",
150
+ "type": "user",
151
+ "uri": "user/1",
152
+ "dateCreation": "2019-03-26 16:29:33",
153
+ "dateModified": "2019-07-19 09:39:23",
154
+ "title": "AdminJenkins",
155
+ "_url": "/user/1",
156
+ "level": 9
157
+ },
158
+ "_extend": { "descriptionSecure": "<div class=\"content-html\"></div>\n", "comments": [] }
159
+ }
160
+ ]
161
+ }
162
+ }
163
+ }