jamespot-user-api 1.0.139 → 1.0.141

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 (122) 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 -0
  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 +5 -5
  16. package/documentation/classes/JFilebankApi.html +1 -1
  17. package/documentation/classes/JGlobalApi.html +1 -0
  18. package/documentation/classes/JGroupApi.html +9 -9
  19. package/documentation/classes/JLandApi.html +1 -1
  20. package/documentation/classes/JMessengerApi.html +1 -1
  21. package/documentation/classes/JObjectApi.html +1 -1
  22. package/documentation/classes/JSearchApi.html +6 -6
  23. package/documentation/classes/JShareApi.html +1 -1
  24. package/documentation/classes/JSocialActionApi.html +1 -0
  25. package/documentation/classes/JTaxonomyApi.html +2 -2
  26. package/documentation/classes/JUserApi.html +10 -4
  27. package/documentation/classes/JWedocApi.html +1 -1
  28. package/documentation/classes/JamespotUserApi.html +1 -1
  29. package/documentation/classes/Network.html +1 -1
  30. package/documentation/classes/TVDisplayApi.html +1 -1
  31. package/documentation/classes/WindowBrowser.html +1 -1
  32. package/documentation/enums/StudioApplicationStatus.html +1 -1
  33. package/documentation/index.html +1 -1
  34. package/documentation/interfaces/AccessRightObject.html +1 -1
  35. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  36. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  37. package/documentation/interfaces/ApiWrapper.html +1 -1
  38. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  39. package/documentation/interfaces/BaseMessage.html +1 -1
  40. package/documentation/interfaces/Category.html +1 -1
  41. package/documentation/interfaces/FileBankProps.html +1 -1
  42. package/documentation/interfaces/FolderProps.html +1 -1
  43. package/documentation/interfaces/ListFilterSpec.html +1 -1
  44. package/documentation/interfaces/OF.html +1 -1
  45. package/documentation/interfaces/ObjectListProps.html +1 -1
  46. package/documentation/interfaces/PagingResults.html +1 -1
  47. package/documentation/interfaces/RootFolderProps.html +1 -1
  48. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  49. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  50. package/documentation/interfaces/SearchConfig.html +1 -1
  51. package/documentation/interfaces/SearchFacetModel.html +1 -1
  52. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  53. package/documentation/interfaces/SearchQuery.html +1 -1
  54. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  55. package/documentation/interfaces/SearchQueryOption.html +1 -1
  56. package/documentation/interfaces/SearchQueryResult.html +1 -1
  57. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  58. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  59. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  60. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  61. package/documentation/interfaces/SpotProps.html +1 -1
  62. package/documentation/interfaces/Taxonomy.html +1 -1
  63. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  64. package/documentation/interfaces/WindowInterface.html +1 -1
  65. package/documentation/modules.html +11 -11
  66. package/lib/jamespot-user-api.js +1 -1
  67. package/lib/jamespot-user-api.js.map +1 -1
  68. package/lib/src/apis/article/article.d.ts +21 -32
  69. package/lib/src/apis/article/article.mock.d.ts +10 -1
  70. package/lib/src/apis/businessNetworking/businessNetworking.d.ts +5 -0
  71. package/lib/src/apis/businessNetworking/businessNetworking.mock.d.ts +2 -0
  72. package/lib/src/apis/businessNetworking/businessNetworking.test.d.ts +1 -0
  73. package/lib/src/apis/fileSync/fileSync.d.ts +9 -0
  74. package/lib/src/apis/fileSync/fileSync.mock.d.ts +6 -0
  75. package/lib/src/apis/fileSync/fileSync.test.d.ts +1 -0
  76. package/lib/src/apis/global/global.d.ts +6 -0
  77. package/lib/src/apis/global/global.mock.d.ts +2 -0
  78. package/lib/src/apis/global/global.test.d.ts +1 -0
  79. package/lib/src/apis/index.d.ts +3 -0
  80. package/lib/src/apis/jamespotUserApi.d.ts +10 -2
  81. package/lib/src/apis/jland/jland.d.ts +1 -1
  82. package/lib/src/apis/socialAction/socialAction.d.ts +8 -0
  83. package/lib/src/apis/socialAction/socialAction.mock.d.ts +4 -0
  84. package/lib/src/apis/socialAction/socialAction.test.d.ts +1 -0
  85. package/lib/src/apis/user/user.d.ts +18 -1
  86. package/lib/src/apis/user/user.mock.d.ts +7 -2
  87. package/lib/src/types/article.d.ts +56 -0
  88. package/lib/src/types/comment.d.ts +4 -0
  89. package/lib/src/types/faq.d.ts +3 -1
  90. package/lib/src/types/fileSync.d.ts +22 -0
  91. package/lib/src/types/global.d.ts +19 -0
  92. package/lib/src/types/group.d.ts +2 -0
  93. package/lib/src/types/index.d.ts +2 -0
  94. package/lib/src/types/realtime.d.ts +10 -3
  95. package/lib/src/types/socialAction.d.ts +10 -0
  96. package/lib/src/types/tvDisplay.d.ts +2 -1
  97. package/lib/src/types/user.d.ts +46 -1
  98. package/lib/src/types/utils.d.ts +1 -1
  99. package/lib/src/types/widgets.d.ts +28 -17
  100. package/lib/src/util/Test.d.ts +119 -5
  101. package/package.json +1 -1
  102. package/phpunitMock/activityLogLog-success.json +7 -0
  103. package/phpunitMock/articleAddComment-success.json +57 -0
  104. package/phpunitMock/articleGet-with-widgets.json +56 -33
  105. package/phpunitMock/articleGetComments-success.json +59 -0
  106. package/phpunitMock/articleSaveAsDraft-default.json +7 -0
  107. package/phpunitMock/articleUpdateComment-success.json +62 -0
  108. package/phpunitMock/autocompleteAudience-u.json +16 -14
  109. package/phpunitMock/autocompleteSpot-a.json +12 -12
  110. package/phpunitMock/businessNetworkingMarkerInfo-success.json +16 -0
  111. package/phpunitMock/commentDelete-success.json +11 -0
  112. package/phpunitMock/customActionAdd-success.json +18 -0
  113. package/phpunitMock/customActionGetUsers-success.json +24 -0
  114. package/phpunitMock/customActionRemove-success.json +7 -0
  115. package/phpunitMock/fileSyncGetFileBanks-success.json +11 -0
  116. package/phpunitMock/fileSyncGetUserQuota-success.json +7 -0
  117. package/phpunitMock/fileSyncSaveFileBanks-success.json +1 -0
  118. package/phpunitMock/objectListFileSyncAdminSpots-success.json +24 -0
  119. package/phpunitMock/spotGetProperties-default.json +184 -100
  120. package/phpunitMock/tvDisplayGetChannel-dynamic.json +214 -209
  121. package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +206 -194
  122. package/phpunitMock/userGetFields-success.json +20 -0
@@ -1,8 +1,9 @@
1
1
  import { AudienceAutocomplete } from './autocomplete';
2
2
  import { jFileLittle } from './file';
3
- import { jArticleLittle } from './utils';
3
+ import { jArticleList, jArticleLittle } from './utils';
4
4
  export type jArticleWidgetLittle = jArticleLittle & {
5
5
  articleWidgets: WidgetWrapperProps[];
6
+ articleWidgetDisplayMode: null | undefined | string;
6
7
  };
7
8
  export type WidgetLayer = {
8
9
  uniqid: string;
@@ -33,6 +34,7 @@ export type WidgetTypeKeys = {
33
34
  'widget-article-text': WidgetArticleTextType;
34
35
  'widget-article-image': WidgetArticleImageType;
35
36
  'widget-article-attachment': WidgetArticleAttachmentType;
37
+ 'widget-article-slider': WidgetArticleSliderType;
36
38
  };
37
39
  export type WidgetContentKeys = {
38
40
  'widget-article-button': WidgetArticleButtonContent;
@@ -41,6 +43,7 @@ export type WidgetContentKeys = {
41
43
  'widget-article-text': WidgetArticleTextContent;
42
44
  'widget-article-image': WidgetArticleImageContent;
43
45
  'widget-article-attachment': WidgetArticleAttachmentContent;
46
+ 'widget-article-slider': WidgetArticleSliderContent;
44
47
  };
45
48
  export type WidgetKeys = keyof WidgetTypeKeys;
46
49
  export type WidgetExtendedType = {
@@ -76,6 +79,11 @@ export type WidgetArticleAttachmentType = {
76
79
  uniqid: string;
77
80
  content: WidgetArticleAttachmentContent;
78
81
  };
82
+ export type WidgetArticleSliderType = {
83
+ name: 'widget-article-slider';
84
+ uniqid: string;
85
+ content: WidgetArticleSliderContent;
86
+ };
79
87
  export type CSSTextAlignType = 'left' | 'right' | 'center' | 'justify';
80
88
  export type CSSBackgroundPosition = 'top' | 'bottom' | 'center' | 'left' | 'right';
81
89
  export type CSSBackgroundSize = 'auto' | 'contain' | 'cover';
@@ -128,18 +136,29 @@ export type WidgetArticleButtonContent = {
128
136
  export type WidgetArticleImageContent = {
129
137
  file?: jFileLittle;
130
138
  useFilter?: boolean;
131
- displayAs?: 'image' | 'background';
132
- backgroundPosition?: CSSBackgroundPosition;
133
- backgroundSize?: CSSBackgroundSize;
134
- borderRadius?: string;
135
139
  };
136
140
  export type WidgetArticleAttachmentContent = {
137
141
  files?: jFileLittle[];
138
142
  fileDisplay?: 'list' | 'gallery';
139
143
  };
144
+ export type WidgetArticleSliderContent = {
145
+ slides?: {
146
+ title: string;
147
+ text: string;
148
+ titleHeading?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
149
+ textColor?: string;
150
+ opacityFilter?: number;
151
+ opacityColor?: string;
152
+ file?: jFileLittle;
153
+ }[];
154
+ maxWidth?: number;
155
+ loop?: boolean;
156
+ useDots?: boolean;
157
+ startAt?: number;
158
+ };
140
159
  export type CombinedWidgetContent = {
141
160
  widgets?: WidgetWrapperProps[];
142
- } & (WidgetArticleTextContent | WidgetArticleImageContent | WidgetArticleTitleContent | WidgetArticleButtonContent | WidgetArticleGalleryContent | WidgetArticleAttachmentContent);
161
+ } & (WidgetArticleTextContent | WidgetArticleImageContent | WidgetArticleTitleContent | WidgetArticleButtonContent | WidgetArticleGalleryContent | WidgetArticleAttachmentContent | WidgetArticleSliderContent);
143
162
  export type WidgetStateProps = {
144
163
  busy?: boolean | undefined;
145
164
  loading?: boolean | undefined;
@@ -163,16 +182,6 @@ export type WidgetVector = {
163
182
  x: number;
164
183
  y: number;
165
184
  };
166
- export type WidgetFileType = {
167
- id: number;
168
- filename: string;
169
- name?: string;
170
- mimetype: string;
171
- dimension: {
172
- width: number;
173
- height: number;
174
- };
175
- };
176
185
  export type WidgetDisplayMode = 'edit' | 'view' | 'preview';
177
186
  export type WidgetModalProps = {
178
187
  title?: string;
@@ -194,8 +203,10 @@ export type WidgetsState = {
194
203
  currentEditableIndex: number;
195
204
  currentEditableWidgetId: string | undefined;
196
205
  };
197
- export type ArticleWidgetType = jArticleLittle & {
206
+ export type ArticleDisplayMode = 'default' | 'vertical';
207
+ export type ArticleWidgetType = jArticleList & {
198
208
  articleWidgets: WidgetWrapperProps[];
199
209
  articleWidgetsCover: number | undefined;
210
+ articleWidgetDisplayMode: ArticleDisplayMode;
200
211
  _audience: AudienceAutocomplete[];
201
212
  };
@@ -1,21 +1,136 @@
1
1
  import { JamespotUserApi } from '../apis';
2
- import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectLittle, jObjectList, jUserList, Rights, jArticleView } from '../types';
2
+ import { ApiDefaultWrapper, PagingResults, jArticleLittle, jArticleView, jObjectLittle, jObjectAutocomplete, Rights } from '../types';
3
3
  import { jCommentList } from '../types/comment';
4
4
  import { FetchResponseType, WindowBrowser } from '../window';
5
5
  import { Network } from './network';
6
6
  export declare const windowBrowser: WindowBrowser;
7
7
  export declare const network: Network;
8
8
  export declare const jApi: JamespotUserApi;
9
+ export declare const fieldsObjFormatLittle: ({
10
+ n: "id";
11
+ t: string;
12
+ } | {
13
+ n: "uri";
14
+ t: string;
15
+ } | {
16
+ n: "dateCreation";
17
+ t: string;
18
+ } | {
19
+ n: "dateModified";
20
+ t: string;
21
+ } | {
22
+ n: "_url";
23
+ t: string;
24
+ } | {
25
+ n: "type";
26
+ t: string;
27
+ } | {
28
+ n: "mainType";
29
+ t: string;
30
+ } | {
31
+ n: "title";
32
+ t: string;
33
+ })[];
34
+ export declare const fieldsObjFormatList: ({
35
+ n: "id";
36
+ t: string;
37
+ } | {
38
+ n: "uri";
39
+ t: string;
40
+ } | {
41
+ n: "dateCreation";
42
+ t: string;
43
+ } | {
44
+ n: "dateModified";
45
+ t: string;
46
+ } | {
47
+ n: "_url";
48
+ t: string;
49
+ } | {
50
+ n: "type";
51
+ t: string;
52
+ } | {
53
+ n: "mainType";
54
+ t: string;
55
+ } | {
56
+ n: "title";
57
+ t: string;
58
+ })[];
59
+ export declare const fieldsObjFormatAutocomplete: ({
60
+ n: "id";
61
+ t: string;
62
+ } | {
63
+ n: "uri";
64
+ t: string;
65
+ } | {
66
+ n: "shortUri";
67
+ t: string;
68
+ } | {
69
+ n: "name";
70
+ t: string;
71
+ } | {
72
+ n: "mainType";
73
+ t: string;
74
+ } | {
75
+ n: "type";
76
+ t: string;
77
+ } | {
78
+ n: "label";
79
+ t: string;
80
+ } | {
81
+ n: "cssClass";
82
+ t: string;
83
+ } | {
84
+ n: "cssColor";
85
+ t: string;
86
+ } | {
87
+ n: "class";
88
+ t: string;
89
+ } | {
90
+ n: "title";
91
+ t: string;
92
+ })[];
93
+ export declare const arrayRights: ({
94
+ n: "create";
95
+ t: string;
96
+ } | {
97
+ n: "read";
98
+ t: string;
99
+ } | {
100
+ n: "publish";
101
+ t: string;
102
+ } | {
103
+ n: "administrate";
104
+ t: string;
105
+ } | {
106
+ n: "update";
107
+ t: string;
108
+ } | {
109
+ n: "delete";
110
+ t: string;
111
+ } | {
112
+ n: "comment";
113
+ t: string;
114
+ } | {
115
+ n: "member";
116
+ t: string;
117
+ })[];
9
118
  export declare const fetchMock: <T>(data: T) => jest.Mock<Promise<FetchResponseType<T>>, []>;
10
119
  export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T) => void;
11
120
  export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null) => void;
12
121
  export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
122
+ export declare const validateObject: <T extends {
123
+ [x: string]: any;
124
+ }>(object: T, objectDefinition: Array<{
125
+ n: string;
126
+ t: string;
127
+ }>) => void;
128
+ export declare const validateObjectIsFormatList: <T extends jObjectLittle = jObjectLittle>(object: T) => void;
13
129
  export declare const validateObjectIsFormatLittle: <T extends jObjectLittle = jObjectLittle>(object: T) => void;
14
- export declare const validateObjectIsFormatList: <T extends jObjectList = jObjectList>(object: T) => void;
15
130
  export declare const validateArticleIsFormatView: <T extends jArticleView = jArticleView>(object: T) => void;
16
- export declare const validateUserIsFormatList: <T extends jUserList = jUserList>(object: T) => void;
17
- export declare const validateCommentIsFormatList: <T extends jCommentList = jCommentList>(object: T) => void;
18
131
  export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => void;
132
+ export declare const validateRights: (object: Rights) => void;
133
+ export declare const validateCommentIsFormatList: <T extends jCommentList = jCommentList>(object: T) => void;
19
134
  export declare const validateFileIsFormatLittle: <T extends {
20
135
  uri: string;
21
136
  id: number;
@@ -41,7 +156,6 @@ export declare const validateFileIsFormatLittle: <T extends {
41
156
  }>(object: T) => void;
42
157
  export declare const expectToHaveProperties: <T>(props: string[], payload: T[]) => void;
43
158
  export declare const expectToBeArray: <T>(arr: T[]) => void;
44
- export declare const validateRights: (object: Rights) => void;
45
159
  export declare const jDynamicProperties: string[];
46
160
  /**
47
161
  * Valorise toutes les propriétés Jamespot dynamiques avec leur typeof, sur toute la profondeur de l'objet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "activity",
3
+ "f": "logLog",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": 1
7
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "o": "article",
3
+ "f": "addComment",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 22,
8
+ "mainType": "comment",
9
+ "type": "comment",
10
+ "uri": "comment/22",
11
+ "dateCreation": "2024-03-04 14:31:49",
12
+ "dateModified": null,
13
+ "description": "<div class='content-html'>Comment for testArticleAddComment</div>",
14
+ "_user": {
15
+ "id": 4,
16
+ "mainType": "user",
17
+ "type": "user",
18
+ "uri": "user/4",
19
+ "dateCreation": "2019-07-09 15:48:26",
20
+ "dateModified": "2024-03-04 14:28:48",
21
+ "title": "Admin1",
22
+ "_url": "/user/4",
23
+ "level": 9
24
+ },
25
+ "_right": {
26
+ "create": true,
27
+ "read": true,
28
+ "publish": true,
29
+ "administrate": true,
30
+ "update": true,
31
+ "delete": true,
32
+ "comment": true,
33
+ "member": true
34
+ },
35
+ "_actions": {
36
+ "sociallike": {
37
+ "type": "custom",
38
+ "class": "fs-thumbs-up",
39
+ "cssClass": "comment",
40
+ "cssColor": "#76b9f2",
41
+ "isActive": false,
42
+ "label": "J'aime",
43
+ "struct": {
44
+ "action": "custom-action",
45
+ "do": "add",
46
+ "type": "sociallike",
47
+ "targetId": 22,
48
+ "targetType": "comment"
49
+ },
50
+ "stats": {
51
+ "total": 0
52
+ }
53
+ }
54
+ },
55
+ "_attachedFiles": []
56
+ }
57
+ }
@@ -4,31 +4,31 @@
4
4
  "error": 0,
5
5
  "messages": [],
6
6
  "result": {
7
- "id": 191,
7
+ "id": 248,
8
8
  "mainType": "article",
9
9
  "type": "articleWidget",
10
- "uri": "articleWidget/191",
11
- "dateCreation": "2023-09-21 11:40:50",
12
- "dateModified": "2023-09-21 11:40:50",
10
+ "uri": "articleWidget/248",
11
+ "dateCreation": "2024-02-16 10:59:20",
12
+ "dateModified": "2024-02-16 10:59:20",
13
13
  "title": "Article with widgets",
14
- "_url": "/article/191",
14
+ "_url": "/article/248",
15
15
  "articleWidgets": [
16
16
  {
17
17
  "title": "",
18
18
  "widget": {
19
19
  "name": "widget-article-attachment",
20
- "uniqid": "650c0fa2c1c89",
20
+ "uniqid": "65cf31f8a9ba4",
21
21
  "content": {
22
22
  "files": [
23
23
  {
24
- "id": 93,
24
+ "id": 39,
25
25
  "mainType": "file",
26
26
  "type": "fileTmp",
27
- "uri": "fileTmp/93",
28
- "dateCreation": "2023-09-21 11:40:50",
29
- "dateModified": "2023-09-21 11:40:50",
27
+ "uri": "fileTmp/39",
28
+ "dateCreation": "2024-02-16 10:59:20",
29
+ "dateModified": "2024-02-16 10:59:20",
30
30
  "title": "txtTest.docx",
31
- "mimetype": "application/octet-stream",
31
+ "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
32
32
  "_url": "javascript:void(0);"
33
33
  }
34
34
  ],
@@ -40,7 +40,7 @@
40
40
  "title": "",
41
41
  "widget": {
42
42
  "name": "widget-article-text",
43
- "uniqid": "650c0fa2c1c8d",
43
+ "uniqid": "65cf31f8a9ba6",
44
44
  "content": {
45
45
  "text": "Hello world",
46
46
  "color": "white",
@@ -54,7 +54,7 @@
54
54
  "title": "",
55
55
  "widget": {
56
56
  "name": "widget-article-title",
57
- "uniqid": "650c0fa2c1c8e",
57
+ "uniqid": "65cf31f8a9ba7",
58
58
  "content": {
59
59
  "text": "This is my title",
60
60
  "textAlign": "center",
@@ -68,7 +68,7 @@
68
68
  "title": "",
69
69
  "widget": {
70
70
  "name": "widget-article-button",
71
- "uniqid": "650c0fa2c1c8f",
71
+ "uniqid": "65cf31f8a9ba8",
72
72
  "content": {
73
73
  "text": "This is a button",
74
74
  "color": "white",
@@ -92,7 +92,7 @@
92
92
  "title": "",
93
93
  "widget": {
94
94
  "name": "widget-article-text",
95
- "uniqid": "650c0fa2c1c8d",
95
+ "uniqid": "65cf31f8a9ba6",
96
96
  "content": {
97
97
  "text": "Hello world",
98
98
  "color": "white",
@@ -111,24 +111,20 @@
111
111
  "title": "",
112
112
  "widget": {
113
113
  "name": "widget-article-image",
114
- "uniqid": "650c0fa2c1c92",
114
+ "uniqid": "65cf31f8a9baa",
115
115
  "content": {
116
116
  "file": {
117
- "id": 93,
117
+ "id": 39,
118
118
  "mainType": "file",
119
119
  "type": "fileTmp",
120
- "uri": "fileTmp/93",
121
- "dateCreation": "2023-09-21 11:40:50",
122
- "dateModified": "2023-09-21 11:40:50",
120
+ "uri": "fileTmp/39",
121
+ "dateCreation": "2024-02-16 10:59:20",
122
+ "dateModified": "2024-02-16 10:59:20",
123
123
  "title": "txtTest.docx",
124
- "mimetype": "application/octet-stream",
124
+ "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
125
125
  "_url": "javascript:void(0);"
126
126
  },
127
- "useFilter": true,
128
- "displayAs": "image",
129
- "backgroundPosition": "center",
130
- "backgroundSize": "cover",
131
- "borderRadius": "10"
127
+ "useFilter": true
132
128
  }
133
129
  }
134
130
  },
@@ -136,18 +132,18 @@
136
132
  "title": "",
137
133
  "widget": {
138
134
  "name": "widget-article-gallery",
139
- "uniqid": "650c0fa2c1c93",
135
+ "uniqid": "65cf31f8a9bab",
140
136
  "content": {
141
137
  "files": [
142
138
  {
143
- "id": 93,
139
+ "id": 39,
144
140
  "mainType": "file",
145
141
  "type": "fileTmp",
146
- "uri": "fileTmp/93",
147
- "dateCreation": "2023-09-21 11:40:50",
148
- "dateModified": "2023-09-21 11:40:50",
142
+ "uri": "fileTmp/39",
143
+ "dateCreation": "2024-02-16 10:59:20",
144
+ "dateModified": "2024-02-16 10:59:20",
149
145
  "title": "txtTest.docx",
150
- "mimetype": "application/octet-stream",
146
+ "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
151
147
  "_url": "javascript:void(0);"
152
148
  }
153
149
  ],
@@ -155,7 +151,34 @@
155
151
  "column": "3"
156
152
  }
157
153
  }
154
+ },
155
+ {
156
+ "title": "",
157
+ "widget": {
158
+ "name": "widget-article-slider",
159
+ "uniqid": "65cf31f8a9bac",
160
+ "content": {
161
+ "slides": [
162
+ {
163
+ "title": "Slider",
164
+ "text": "Description",
165
+ "file": {
166
+ "id": 39,
167
+ "mainType": "file",
168
+ "type": "fileTmp",
169
+ "uri": "fileTmp/39",
170
+ "dateCreation": "2024-02-16 10:59:20",
171
+ "dateModified": "2024-02-16 10:59:20",
172
+ "title": "txtTest.docx",
173
+ "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
174
+ "_url": "javascript:void(0);"
175
+ }
176
+ }
177
+ ]
178
+ }
179
+ }
158
180
  }
159
- ]
181
+ ],
182
+ "articleWidgetDisplayMode": null
160
183
  }
161
184
  }
@@ -0,0 +1,59 @@
1
+ {
2
+ "o": "article",
3
+ "f": "getComments",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": 23,
9
+ "mainType": "comment",
10
+ "type": "comment",
11
+ "uri": "comment/23",
12
+ "dateCreation": "2024-03-04 14:31:49",
13
+ "dateModified": null,
14
+ "description": "<div class='content-html'>Comment for testArticleGetComments</div>",
15
+ "_user": {
16
+ "id": 4,
17
+ "mainType": "user",
18
+ "type": "user",
19
+ "uri": "user/4",
20
+ "dateCreation": "2019-07-09 15:48:26",
21
+ "dateModified": "2024-03-04 14:28:48",
22
+ "title": "Admin1",
23
+ "_url": "/user/4",
24
+ "level": 9
25
+ },
26
+ "_right": {
27
+ "create": true,
28
+ "read": true,
29
+ "publish": true,
30
+ "administrate": true,
31
+ "update": true,
32
+ "delete": true,
33
+ "comment": true,
34
+ "member": true
35
+ },
36
+ "_actions": {
37
+ "sociallike": {
38
+ "type": "custom",
39
+ "class": "fs-thumbs-up",
40
+ "cssClass": "comment",
41
+ "cssColor": "#76b9f2",
42
+ "isActive": false,
43
+ "label": "J'aime",
44
+ "struct": {
45
+ "action": "custom-action",
46
+ "do": "add",
47
+ "type": "sociallike",
48
+ "targetId": 23,
49
+ "targetType": "comment"
50
+ },
51
+ "stats": {
52
+ "total": 0
53
+ }
54
+ }
55
+ },
56
+ "_attachedFiles": []
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "article",
3
+ "f": "saveAsDraft",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": { "idDraft": "48", "msg": "Brouillon cr\u00e9\u00e9" }
7
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "o": "article",
3
+ "f": "updateComment",
4
+ "error": 0,
5
+ "messages": [
6
+ {
7
+ "code": 200,
8
+ "msg": "Enregistrement r\u00e9ussi"
9
+ }
10
+ ],
11
+ "result": {
12
+ "id": 24,
13
+ "mainType": "comment",
14
+ "type": "comment",
15
+ "uri": "comment/24",
16
+ "dateCreation": "2024-03-04 14:31:49",
17
+ "dateModified": null,
18
+ "description": "<div class='content-html'>New comment for UpdateComment</div>",
19
+ "_user": {
20
+ "id": 4,
21
+ "mainType": "user",
22
+ "type": "user",
23
+ "uri": "user/4",
24
+ "dateCreation": "2019-07-09 15:48:26",
25
+ "dateModified": "2024-03-04 14:28:48",
26
+ "title": "Admin1",
27
+ "_url": "/user/4",
28
+ "level": 9
29
+ },
30
+ "_right": {
31
+ "create": true,
32
+ "read": true,
33
+ "publish": true,
34
+ "administrate": true,
35
+ "update": true,
36
+ "delete": true,
37
+ "comment": true,
38
+ "member": true
39
+ },
40
+ "_actions": {
41
+ "sociallike": {
42
+ "type": "custom",
43
+ "class": "fs-thumbs-up",
44
+ "cssClass": "comment",
45
+ "cssColor": "#76b9f2",
46
+ "isActive": false,
47
+ "label": "J'aime",
48
+ "struct": {
49
+ "action": "custom-action",
50
+ "do": "add",
51
+ "type": "sociallike",
52
+ "targetId": 24,
53
+ "targetType": "comment"
54
+ },
55
+ "stats": {
56
+ "total": 0
57
+ }
58
+ }
59
+ },
60
+ "_attachedFiles": []
61
+ }
62
+ }