jamespot-user-api 1.0.198 → 1.0.200

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 (98) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  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/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +12 -12
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +7 -7
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/GroupModerateStatus.html +1 -1
  39. package/documentation/enums/StudioApplicationStatus.html +1 -1
  40. package/documentation/enums/WidgetsName.html +1 -1
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/lib/jamespot-user-api.js +1 -1
  58. package/lib/jamespot-user-api.js.map +1 -1
  59. package/lib/src/apis/file/file.d.ts +1 -1
  60. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +24 -8
  61. package/lib/src/apis/widget/widget.d.ts +61 -21
  62. package/lib/src/apis/widget/widget.mock.d.ts +8 -2
  63. package/lib/src/types/article.d.ts +180 -60
  64. package/lib/src/types/asei.d.ts +18 -6
  65. package/lib/src/types/assetReservation.d.ts +78 -26
  66. package/lib/src/types/businessContact.d.ts +12 -4
  67. package/lib/src/types/comment.d.ts +18 -6
  68. package/lib/src/types/faq.d.ts +96 -32
  69. package/lib/src/types/jLand.d.ts +30 -10
  70. package/lib/src/types/mediaLibrary.d.ts +18 -6
  71. package/lib/src/types/meeting.d.ts +54 -18
  72. package/lib/src/types/pollSurvey.d.ts +54 -18
  73. package/lib/src/types/quizz.d.ts +54 -18
  74. package/lib/src/types/realtime.d.ts +22 -1
  75. package/lib/src/types/socialEvent.d.ts +54 -18
  76. package/lib/src/types/support.d.ts +54 -18
  77. package/lib/src/types/surveyDate.d.ts +54 -18
  78. package/lib/src/types/tvDisplay.d.ts +450 -150
  79. package/lib/src/types/widgets/common.d.ts +3 -2
  80. package/lib/src/types/widgets/default.d.ts +357 -95
  81. package/lib/src/types/widgets/ensure.d.ts +1 -1
  82. package/lib/src/types/widgets/widgetCheckList.d.ts +57 -5
  83. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +4 -40
  84. package/lib/src/types/widgets/widgetPresence.d.ts +35 -0
  85. package/lib/src/types/widgets/widgetQuickSurvey.d.ts +275 -0
  86. package/lib/src/types/widgets.d.ts +342 -68
  87. package/lib/src/util/meeting.d.ts +6 -2
  88. package/lib/src/util/network.d.ts +1 -1
  89. package/lib/src/util/socialEvent.d.ts +6 -2
  90. package/lib/src/util/widget.d.ts +6 -3
  91. package/package.json +1 -1
  92. package/phpunitMock/widgetCheckListGetResponse-comment-index-0.json +18 -0
  93. package/phpunitMock/widgetCheckListGetResponse-comment-no-response.json +18 -0
  94. package/phpunitMock/widgetGetWidget-article-quick-survey.json +21 -0
  95. package/phpunitMock/widgetQuickSurveyAddEntry-article-quick-survey.json +1 -0
  96. package/phpunitMock/widgetQuickSurveyGetResponse-article-index-0.json +129 -0
  97. package/phpunitMock/widgetQuickSurveyGetResponse.json +67 -0
  98. package/phpunitMock/widgetSurveyGetResponse.json +67 -0
@@ -107,7 +107,9 @@ export declare const ensureIsViewMeeting: (o: unknown) => o is {
107
107
  };
108
108
  }) | ({
109
109
  layers?: string[] | undefined;
110
- } & import("..").WidgetPresenceType)>[] | undefined;
110
+ } & import("..").WidgetPresenceType) | ({
111
+ layers?: string[] | undefined;
112
+ } & import("..").WidgetQuickSurveyType)>[] | undefined;
111
113
  } & {
112
114
  type: string;
113
115
  id: number;
@@ -209,7 +211,9 @@ export declare const ensureIsViewMeeting: (o: unknown) => o is {
209
211
  };
210
212
  }) | ({
211
213
  layers?: string[] | undefined;
212
- } & import("..").WidgetPresenceType)>[] | undefined;
214
+ } & import("..").WidgetPresenceType) | ({
215
+ layers?: string[] | undefined;
216
+ } & import("..").WidgetQuickSurveyType)>[] | undefined;
213
217
  } & {
214
218
  textColor: string;
215
219
  allDay: null;
@@ -43,7 +43,7 @@ export declare class Network {
43
43
  }, BaseMessages>;
44
44
  token: string;
45
45
  }>;
46
- postCSRF<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
46
+ postCSRF<T, U = BaseMessages>(body: OF, signal?: AbortSignal): Promise<ApiWrapper<T, U>>;
47
47
  postToken<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
48
48
  maybePostToken<T, U = BaseMessages, P extends MaybeWithToken<OF> = MaybeWithToken<OF>>(body: P): Promise<ApiWrapper<T, U>>;
49
49
  token(signal?: AbortSignal): Promise<ApiWrapper<string>>;
@@ -107,7 +107,9 @@ export declare const ensureIsViewEvent: (o: unknown) => o is {
107
107
  };
108
108
  }) | ({
109
109
  layers?: string[] | undefined;
110
- } & import("..").WidgetPresenceType)>[] | undefined;
110
+ } & import("..").WidgetPresenceType) | ({
111
+ layers?: string[] | undefined;
112
+ } & import("..").WidgetQuickSurveyType)>[] | undefined;
111
113
  } & {
112
114
  type: string;
113
115
  id: number;
@@ -209,7 +211,9 @@ export declare const ensureIsViewEvent: (o: unknown) => o is {
209
211
  };
210
212
  }) | ({
211
213
  layers?: string[] | undefined;
212
- } & import("..").WidgetPresenceType)>[] | undefined;
214
+ } & import("..").WidgetPresenceType) | ({
215
+ layers?: string[] | undefined;
216
+ } & import("..").WidgetQuickSurveyType)>[] | undefined;
213
217
  } & {
214
218
  textColor: string;
215
219
  allDay: null;
@@ -1,4 +1,4 @@
1
- import { WidgetArticleAttachmentType, WidgetArticleButtonType, WidgetArticleGalleryType, WidgetArticleImageType, WidgetArticleSliderType, WidgetArticleTextType, WidgetArticleTitleType, WidgetCheckListType, WidgetDatasourceTableType } from '../types';
1
+ import { WidgetArticleAttachmentType, WidgetArticleButtonType, WidgetArticleGalleryType, WidgetArticleImageType, WidgetArticleSliderType, WidgetArticleTextType, WidgetArticleTitleType, WidgetCheckListType, WidgetDatasourceTableType, WidgetQuickSurveyType } from '../types';
2
2
  export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../types").WidgetWrapperGeneric<({
3
3
  layers?: string[] | undefined;
4
4
  } & WidgetArticleAttachmentType) | ({
@@ -49,7 +49,9 @@ export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../t
49
49
  };
50
50
  }) | ({
51
51
  layers?: string[] | undefined;
52
- } & import("../types").WidgetPresenceType)>;
52
+ } & import("../types").WidgetPresenceType) | ({
53
+ layers?: string[] | undefined;
54
+ } & WidgetQuickSurveyType)>;
53
55
  export declare const ensureWidgetArticleAttachmentType: (widget: unknown) => widget is WidgetArticleAttachmentType;
54
56
  export declare const ensureWidgetArticleButtonType: (widget: unknown) => widget is WidgetArticleButtonType;
55
57
  export declare const ensureWidgetArticleGalleryType: (widget: unknown) => widget is WidgetArticleGalleryType;
@@ -57,7 +59,7 @@ export declare const ensureWidgetArticleImageType: (widget: unknown) => widget i
57
59
  export declare const ensureWidgetArticleSliderType: (widget: unknown) => widget is WidgetArticleSliderType;
58
60
  export declare const ensureWidgetArticleTextType: (widget: unknown) => widget is WidgetArticleTextType;
59
61
  export declare const ensureWidgetArticleTitleType: (widget: unknown) => widget is WidgetArticleTitleType;
60
- export declare const ensureWidgetCheckListType: (widget: unknown) => widget is WidgetCheckListType;
62
+ export declare const ensureWidgetCheckListType: (widget: unknown, logError?: boolean) => widget is WidgetCheckListType;
61
63
  export declare const ensureWidgetDatasourceTableType: (widget: unknown) => widget is WidgetDatasourceTableType;
62
64
  export declare const ensureWidgetExcelDatasourceTableType: (widget: unknown) => widget is {
63
65
  name: import("../types").WidgetsName.ExcelDatasourceTable;
@@ -83,3 +85,4 @@ export declare const ensureWidgetExcelDatasourceTableType: (widget: unknown) =>
83
85
  tableSizedColumnsWidth?: number | undefined;
84
86
  };
85
87
  };
88
+ export declare const ensureWidgetQuickSurveyType: (widget: unknown) => widget is WidgetQuickSurveyType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -0,0 +1,18 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "CheckListGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "name": "widget-check-list",
8
+ "content": {
9
+ "arr": [
10
+ { "title": "A", "value": true, "user": { "id": 5, "type": "user", "mainType": "user" } },
11
+ { "title": "B", "value": false }
12
+ ],
13
+ "css": { "min-height": "100px" },
14
+ "widgets": []
15
+ },
16
+ "uniqid": "66e9a4068ebad"
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "CheckListGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "name": "widget-check-list",
8
+ "content": {
9
+ "arr": [
10
+ { "title": "A", "value": false },
11
+ { "title": "B", "value": false }
12
+ ],
13
+ "css": { "min-height": "100px" },
14
+ "widgets": []
15
+ },
16
+ "uniqid": "66e9a4068ebad"
17
+ }
18
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "getWidget",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "name": "widget-quick-survey",
8
+ "content": {
9
+ "arr": [{ "title": "survey A" }, { "title": "survey B" }],
10
+ "open": false,
11
+ "multi": false,
12
+ "css": { "min-height": "100px" },
13
+ "closing": false,
14
+ "isClosed": false,
15
+ "widgets": [],
16
+ "showResult": true,
17
+ "isNotDisabled": true
18
+ },
19
+ "uniqid": "67210320951d5"
20
+ }
21
+ }
@@ -0,0 +1 @@
1
+ { "o": "widget", "f": "quickSurveyAddEntry", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,129 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "quickSurveyGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "totalRespondent": 12,
8
+ "totalResponse": 12,
9
+ "userLoggedResponses": ["0"],
10
+ "userResponses": [
11
+ {
12
+ "userList": [
13
+ {
14
+ "id": 5,
15
+ "mainType": "user",
16
+ "type": "user",
17
+ "uri": "user/5",
18
+ "dateCreation": "2019-07-09 15:48:45",
19
+ "dateModified": "2019-07-09 15:51:16",
20
+ "title": "Admin2",
21
+ "_url": "/user/5",
22
+ "level": 9
23
+ },
24
+ {
25
+ "id": 23,
26
+ "mainType": "user",
27
+ "type": "user",
28
+ "uri": "user/23",
29
+ "dateCreation": "2024-11-08 14:35:19",
30
+ "dateModified": "2024-11-08 14:35:19",
31
+ "title": "u-11",
32
+ "_url": "/user/23",
33
+ "level": 9
34
+ },
35
+ {
36
+ "id": 22,
37
+ "mainType": "user",
38
+ "type": "user",
39
+ "uri": "user/22",
40
+ "dateCreation": "2024-11-08 14:35:19",
41
+ "dateModified": "2024-11-08 14:35:19",
42
+ "title": "u-10",
43
+ "_url": "/user/22",
44
+ "level": 9
45
+ },
46
+ {
47
+ "id": 21,
48
+ "mainType": "user",
49
+ "type": "user",
50
+ "uri": "user/21",
51
+ "dateCreation": "2024-11-08 14:35:19",
52
+ "dateModified": "2024-11-08 14:35:19",
53
+ "title": "u-9",
54
+ "_url": "/user/21",
55
+ "level": 9
56
+ },
57
+ {
58
+ "id": 20,
59
+ "mainType": "user",
60
+ "type": "user",
61
+ "uri": "user/20",
62
+ "dateCreation": "2024-11-08 14:35:19",
63
+ "dateModified": "2024-11-08 14:35:19",
64
+ "title": "u-8",
65
+ "_url": "/user/20",
66
+ "level": 9
67
+ },
68
+ {
69
+ "id": 19,
70
+ "mainType": "user",
71
+ "type": "user",
72
+ "uri": "user/19",
73
+ "dateCreation": "2024-11-08 14:35:19",
74
+ "dateModified": "2024-11-08 14:35:19",
75
+ "title": "u-7",
76
+ "_url": "/user/19",
77
+ "level": 9
78
+ },
79
+ {
80
+ "id": 18,
81
+ "mainType": "user",
82
+ "type": "user",
83
+ "uri": "user/18",
84
+ "dateCreation": "2024-11-08 14:35:19",
85
+ "dateModified": "2024-11-08 14:35:19",
86
+ "title": "u-6",
87
+ "_url": "/user/18",
88
+ "level": 9
89
+ },
90
+ {
91
+ "id": 17,
92
+ "mainType": "user",
93
+ "type": "user",
94
+ "uri": "user/17",
95
+ "dateCreation": "2024-11-08 14:35:19",
96
+ "dateModified": "2024-11-08 14:35:19",
97
+ "title": "u-5",
98
+ "_url": "/user/17",
99
+ "level": 9
100
+ },
101
+ {
102
+ "id": 16,
103
+ "mainType": "user",
104
+ "type": "user",
105
+ "uri": "user/16",
106
+ "dateCreation": "2024-11-08 14:35:19",
107
+ "dateModified": "2024-11-08 14:35:19",
108
+ "title": "u-4",
109
+ "_url": "/user/16",
110
+ "level": 9
111
+ },
112
+ {
113
+ "id": 15,
114
+ "mainType": "user",
115
+ "type": "user",
116
+ "uri": "user/15",
117
+ "dateCreation": "2024-11-08 14:35:19",
118
+ "dateModified": "2024-11-08 14:35:19",
119
+ "title": "u-3",
120
+ "_url": "/user/15",
121
+ "level": 9
122
+ }
123
+ ],
124
+ "counter": 12
125
+ },
126
+ { "userList": [], "counter": 0 }
127
+ ]
128
+ }
129
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "SurveyGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "arr": [
8
+ {
9
+ "title": "Title1",
10
+ "userList": [
11
+ {
12
+ "id": 4,
13
+ "mainType": "user",
14
+ "type": "user",
15
+ "uri": "user/4",
16
+ "dateCreation": "2019-07-09 15:48:26",
17
+ "dateModified": "2019-07-09 15:51:24",
18
+ "title": "Admin1",
19
+ "_url": "/user/4",
20
+ "level": 9
21
+ }
22
+ ],
23
+ "value": 1
24
+ },
25
+ {
26
+ "title": "Title2",
27
+ "userList": [
28
+ {
29
+ "id": 4,
30
+ "mainType": "user",
31
+ "type": "user",
32
+ "uri": "user/4",
33
+ "dateCreation": "2019-07-09 15:48:26",
34
+ "dateModified": "2019-07-09 15:51:24",
35
+ "title": "Admin1",
36
+ "_url": "/user/4",
37
+ "level": 9
38
+ },
39
+ {
40
+ "id": 5,
41
+ "mainType": "user",
42
+ "type": "user",
43
+ "uri": "user/5",
44
+ "dateCreation": "2019-07-09 15:48:26",
45
+ "dateModified": "2019-07-09 15:51:24",
46
+ "title": "Admin2",
47
+ "_url": "/user/5",
48
+ "level": 9
49
+ },
50
+ {
51
+ "id": 6,
52
+ "mainType": "user",
53
+ "type": "user",
54
+ "uri": "user/5",
55
+ "dateCreation": "2019-07-09 15:48:26",
56
+ "dateModified": "2019-07-09 15:51:24",
57
+ "title": "Admin2",
58
+ "_url": "/user/5",
59
+ "level": 6
60
+ }
61
+ ],
62
+ "value": 3
63
+ }
64
+ ],
65
+ "userTotal": 4
66
+ }
67
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "SurveyGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "arr": [
8
+ {
9
+ "title": "Title1",
10
+ "userList": [
11
+ {
12
+ "id": 4,
13
+ "mainType": "user",
14
+ "type": "user",
15
+ "uri": "user/4",
16
+ "dateCreation": "2019-07-09 15:48:26",
17
+ "dateModified": "2019-07-09 15:51:24",
18
+ "title": "Admin1",
19
+ "_url": "/user/4",
20
+ "level": 9
21
+ }
22
+ ],
23
+ "value": 1
24
+ },
25
+ {
26
+ "title": "Title2",
27
+ "userList": [
28
+ {
29
+ "id": 4,
30
+ "mainType": "user",
31
+ "type": "user",
32
+ "uri": "user/4",
33
+ "dateCreation": "2019-07-09 15:48:26",
34
+ "dateModified": "2019-07-09 15:51:24",
35
+ "title": "Admin1",
36
+ "_url": "/user/4",
37
+ "level": 9
38
+ },
39
+ {
40
+ "id": 5,
41
+ "mainType": "user",
42
+ "type": "user",
43
+ "uri": "user/5",
44
+ "dateCreation": "2019-07-09 15:48:26",
45
+ "dateModified": "2019-07-09 15:51:24",
46
+ "title": "Admin2",
47
+ "_url": "/user/5",
48
+ "level": 9
49
+ },
50
+ {
51
+ "id": 6,
52
+ "mainType": "user",
53
+ "type": "user",
54
+ "uri": "user/5",
55
+ "dateCreation": "2019-07-09 15:48:26",
56
+ "dateModified": "2019-07-09 15:51:24",
57
+ "title": "Admin2",
58
+ "_url": "/user/5",
59
+ "level": 6
60
+ }
61
+ ],
62
+ "value": 3
63
+ }
64
+ ],
65
+ "userTotal": 4
66
+ }
67
+ }