jamespot-user-api 1.0.208 → 1.0.210

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 (99) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminLogApi.html +1 -1
  4. package/documentation/classes/AdminStoreApi.html +1 -1
  5. package/documentation/classes/AdminUtilsApi.html +1 -1
  6. package/documentation/classes/JApplicationApi.html +8 -8
  7. package/documentation/classes/JArticleApi.html +1 -1
  8. package/documentation/classes/JAssetReservation.html +1 -1
  9. package/documentation/classes/JAudienceApi.html +1 -1
  10. package/documentation/classes/JBaseApi.html +1 -1
  11. package/documentation/classes/JBbbApi.html +1 -1
  12. package/documentation/classes/JBookmarkApi.html +1 -1
  13. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  14. package/documentation/classes/JCalendarApi.html +1 -1
  15. package/documentation/classes/JCommunityApi.html +1 -1
  16. package/documentation/classes/JDatasourceApi.html +1 -1
  17. package/documentation/classes/JDiapazoneApi.html +1 -1
  18. package/documentation/classes/JExternalAppApi.html +1 -1
  19. package/documentation/classes/JFaqApi.html +1 -1
  20. package/documentation/classes/JFileApi.html +5 -5
  21. package/documentation/classes/JFilebankApi.html +1 -1
  22. package/documentation/classes/JGlobalApi.html +1 -1
  23. package/documentation/classes/JGroupApi.html +16 -14
  24. package/documentation/classes/JIAApi.html +1 -1
  25. package/documentation/classes/JLandApi.html +1 -1
  26. package/documentation/classes/JModuleApi.html +1 -1
  27. package/documentation/classes/JObjectApi.html +1 -1
  28. package/documentation/classes/JSearchApi.html +6 -6
  29. package/documentation/classes/JShareApi.html +1 -1
  30. package/documentation/classes/JSocialActionApi.html +1 -1
  31. package/documentation/classes/JTaxonomyApi.html +2 -2
  32. package/documentation/classes/JUserApi.html +7 -7
  33. package/documentation/classes/JWedocApi.html +1 -1
  34. package/documentation/classes/JWidgetApi.html +1 -1
  35. package/documentation/classes/JamespotUserApi.html +1 -1
  36. package/documentation/classes/JitsiApi.html +1 -1
  37. package/documentation/classes/Network.html +1 -1
  38. package/documentation/classes/TVDisplayApi.html +1 -1
  39. package/documentation/classes/WindowBrowser.html +1 -1
  40. package/documentation/enums/BookmarkType.html +1 -1
  41. package/documentation/enums/Format.html +1 -1
  42. package/documentation/enums/GroupModerateStatus.html +1 -1
  43. package/documentation/enums/GroupPrivacy.html +1 -0
  44. package/documentation/enums/StudioApplicationStatus.html +1 -1
  45. package/documentation/enums/WidgetsName.html +1 -1
  46. package/documentation/index.html +1 -1
  47. package/documentation/interfaces/AccessRightObject.html +1 -1
  48. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  49. package/documentation/interfaces/ApiWrapper.html +1 -1
  50. package/documentation/interfaces/BaseMessage.html +1 -1
  51. package/documentation/interfaces/FileBankProps.html +1 -1
  52. package/documentation/interfaces/FolderProps.html +1 -1
  53. package/documentation/interfaces/ListFilterSpec.html +1 -1
  54. package/documentation/interfaces/OF.html +1 -1
  55. package/documentation/interfaces/PagingResults.html +1 -1
  56. package/documentation/interfaces/RootFolderProps.html +1 -1
  57. package/documentation/interfaces/SpotProps.html +1 -1
  58. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  59. package/documentation/interfaces/WidgetType.html +1 -1
  60. package/documentation/interfaces/WindowInterface.html +1 -1
  61. package/documentation/modules.html +11 -11
  62. package/lib/jamespot-user-api.js +1 -1
  63. package/lib/jamespot-user-api.js.map +1 -1
  64. package/lib/src/apis/application/types.d.ts +9 -2
  65. package/lib/src/apis/group/group.d.ts +104 -6
  66. package/lib/src/apis/group/group.mock.d.ts +2 -1
  67. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +10 -10
  68. package/lib/src/types/article.d.ts +60 -60
  69. package/lib/src/types/asei.d.ts +10 -10
  70. package/lib/src/types/assetReservation.d.ts +30 -30
  71. package/lib/src/types/bookmark.d.ts +12 -12
  72. package/lib/src/types/businessContact.d.ts +5 -5
  73. package/lib/src/types/calendar.d.ts +1 -1
  74. package/lib/src/types/comment.d.ts +2 -2
  75. package/lib/src/types/diapazone.d.ts +7 -7
  76. package/lib/src/types/faq.d.ts +37 -37
  77. package/lib/src/types/group.d.ts +60 -12
  78. package/lib/src/types/jLand.d.ts +12 -12
  79. package/lib/src/types/mediaLibrary.d.ts +5 -5
  80. package/lib/src/types/meeting.d.ts +22 -22
  81. package/lib/src/types/object.d.ts +5 -5
  82. package/lib/src/types/pollSurvey.d.ts +21 -21
  83. package/lib/src/types/quizz.d.ts +21 -21
  84. package/lib/src/types/share.d.ts +12 -12
  85. package/lib/src/types/socialEvent.d.ts +22 -22
  86. package/lib/src/types/support.d.ts +23 -23
  87. package/lib/src/types/surveyDate.d.ts +21 -21
  88. package/lib/src/types/tinymce.d.ts +12 -0
  89. package/lib/src/types/tvDisplay.d.ts +231 -231
  90. package/lib/src/types/user.d.ts +5 -5
  91. package/lib/src/types/wedoc.d.ts +2 -2
  92. package/lib/src/types/widgets/widgetPresence.d.ts +3 -3
  93. package/lib/src/types/widgets/widgetQuickSurvey.d.ts +3 -3
  94. package/lib/src/types/widgets.d.ts +116 -166
  95. package/lib/src/util/group.d.ts +1 -0
  96. package/lib/src/util/meeting.d.ts +2 -2
  97. package/lib/src/util/socialEvent.d.ts +2 -2
  98. package/package.json +1 -1
  99. package/phpunitMock/spotGetWidgets-default.json +10 -0
@@ -21,9 +21,16 @@ export type ApplicationLink = ApplicationBase & {
21
21
  urlNoReferrer: boolean;
22
22
  };
23
23
  export type ApplicationIframe = ApplicationBase & {
24
- urlIframe: string;
24
+ iframeUrl: string;
25
25
  };
26
- export type ApplicationType = ApplicationDefault | ApplicationLink | ApplicationIframe;
26
+ export type ApplicationWithTabs = ApplicationBase & {
27
+ tabs?: Array<{
28
+ tab: string;
29
+ name: string;
30
+ url: string;
31
+ }>;
32
+ };
33
+ export type ApplicationType = ApplicationDefault | ApplicationLink | ApplicationIframe | ApplicationWithTabs;
27
34
  export type StudioAction = {
28
35
  action: string;
29
36
  nameApp: string;
@@ -37,7 +37,7 @@ export declare class JGroupApi extends JBaseApi {
37
37
  _url: string;
38
38
  description: string;
39
39
  language: string;
40
- privacy: number;
40
+ privacy: import("../../types").GroupPrivacy;
41
41
  edito: string | null;
42
42
  category: number;
43
43
  }, {
@@ -51,7 +51,7 @@ export declare class JGroupApi extends JBaseApi {
51
51
  _url: string;
52
52
  description: string;
53
53
  language: string;
54
- privacy: number;
54
+ privacy: import("../../types").GroupPrivacy;
55
55
  edito: string | null;
56
56
  category: number;
57
57
  image?: string | null | undefined;
@@ -80,7 +80,7 @@ export declare class JGroupApi extends JBaseApi {
80
80
  _url: string;
81
81
  description: string;
82
82
  language: string;
83
- privacy: number;
83
+ privacy: import("../../types").GroupPrivacy;
84
84
  edito: string | null;
85
85
  category: number;
86
86
  }, {
@@ -94,7 +94,7 @@ export declare class JGroupApi extends JBaseApi {
94
94
  _url: string;
95
95
  description: string;
96
96
  language: string;
97
- privacy: number;
97
+ privacy: import("../../types").GroupPrivacy;
98
98
  edito: string | null;
99
99
  category: number;
100
100
  image?: string | null | undefined;
@@ -123,7 +123,7 @@ export declare class JGroupApi extends JBaseApi {
123
123
  _url: string;
124
124
  description: string;
125
125
  language: string;
126
- privacy: number;
126
+ privacy: import("../../types").GroupPrivacy;
127
127
  edito: string | null;
128
128
  category: number;
129
129
  }, {
@@ -137,7 +137,7 @@ export declare class JGroupApi extends JBaseApi {
137
137
  _url: string;
138
138
  description: string;
139
139
  language: string;
140
- privacy: number;
140
+ privacy: import("../../types").GroupPrivacy;
141
141
  edito: string | null;
142
142
  category: number;
143
143
  image?: string | null | undefined;
@@ -226,6 +226,104 @@ export declare class JGroupApi extends JBaseApi {
226
226
  widgets: {
227
227
  id: string;
228
228
  title: string;
229
+ enabled?: boolean | undefined;
230
+ }[];
231
+ custom_widgets: never[] | Record<string, {
232
+ type: string;
233
+ title: string;
234
+ url: string;
235
+ idSpot: string;
236
+ idOrder: string;
237
+ idWidget: string;
238
+ visible: string;
239
+ }>;
240
+ isArchive: number;
241
+ fileSyncVersioningType: {
242
+ value: string | number;
243
+ label: string;
244
+ }[];
245
+ };
246
+ _errors: [];
247
+ lastRssExecution?: Record<string, string> | undefined;
248
+ }, BaseMessages>>;
249
+ /**
250
+ * Get the widgets of a group
251
+ * @param idSpot
252
+ * @returns
253
+ */
254
+ getWidgets(idSpot: number | string): Promise<ApiWrapper<{
255
+ edit_access: "" | "author";
256
+ commentLevel: "1" | "-1" | "2" | "3";
257
+ displayType: string;
258
+ user_level_signup: "" | "1" | "2" | "3";
259
+ spot_right_user: string;
260
+ useTeaser: "" | "0" | "1" | null;
261
+ spotDefaultPublishType: string;
262
+ mail_frequency: string;
263
+ widgets: string[];
264
+ fileSyncVersioningType: "overwrite" | "author-change";
265
+ nounsubscribe: "0" | "1";
266
+ rss_feed: {
267
+ url: string;
268
+ idUser: number;
269
+ date?: string | undefined;
270
+ send?: boolean | undefined;
271
+ _user?: jUserLittle | undefined;
272
+ error?: string | undefined;
273
+ }[] | null;
274
+ mail_comment: "" | "1";
275
+ mail_spotit: "" | "1";
276
+ mail_subscriber: "" | "1";
277
+ lock_mail: "" | "1";
278
+ activity: "0" | "1";
279
+ publishFolder: "0" | "1";
280
+ notifyFolder: "0" | "1";
281
+ rss_access: "0" | "1";
282
+ rss_key: string;
283
+ fileSyncEnabled: "0" | "1";
284
+ fileBankQuota: string;
285
+ _options: {
286
+ edit_access: ({
287
+ value: string | number;
288
+ label: string;
289
+ } & {
290
+ description: string;
291
+ })[];
292
+ commentLevel: ({
293
+ value: string | number;
294
+ label: string;
295
+ } & {
296
+ selected?: boolean | undefined;
297
+ })[];
298
+ displayType: {
299
+ value: string | number;
300
+ label: string;
301
+ }[];
302
+ user_level_signup: ({
303
+ value: string | number;
304
+ label: string;
305
+ } & {
306
+ selected?: boolean | undefined;
307
+ })[];
308
+ spot_right_user: ({
309
+ value: string | number;
310
+ label: string;
311
+ } & {
312
+ selected?: boolean | undefined;
313
+ })[];
314
+ useTeaser: {
315
+ value: string | number;
316
+ label: string;
317
+ }[];
318
+ spotDefaultPublishType: string[];
319
+ mail_frequency: {
320
+ value: string | number;
321
+ label: string;
322
+ }[];
323
+ widgets: {
324
+ id: string;
325
+ title: string;
326
+ enabled?: boolean | undefined;
229
327
  }[];
230
328
  custom_widgets: never[] | Record<string, {
231
329
  type: string;
@@ -1,7 +1,8 @@
1
1
  import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, jArticleList, jGroupLittle, jGroupView, jSpotAutocomplete, PagingResults, UserLevelAndRight } from '../../types';
2
- import { Category, GroupMemberLevel, GroupProperties, GroupWidget } from '../../types/group';
2
+ import { Category, GroupMemberLevel, GroupProperties, GroupWidget, GroupWidgets } from '../../types/group';
3
3
  export declare const spot: ApiWrapper<jGroupView>;
4
4
  export declare const properties: ApiWrapper<GroupProperties>;
5
+ export declare const widgets: ApiWrapper<GroupWidgets>;
5
6
  export declare const groupAutocompleteA: ApiWrapper<jSpotAutocomplete[]>;
6
7
  export declare const groupCreate: ApiWrapper<jGroupView>;
7
8
  export declare const groupUpdate: ApiWrapper<jGroupView>;
@@ -27,7 +27,7 @@ export declare class TVDisplayApi extends JBaseApi {
27
27
  dateModified: string;
28
28
  title: string;
29
29
  _url: string;
30
- privacy: number;
30
+ privacy: import("../..").GroupPrivacy;
31
31
  category: number;
32
32
  } | {
33
33
  type: "folder" | "rootFolder";
@@ -141,7 +141,7 @@ export declare class TVDisplayApi extends JBaseApi {
141
141
  dateModified: string;
142
142
  title: string;
143
143
  _url: string;
144
- privacy: number;
144
+ privacy: import("../..").GroupPrivacy;
145
145
  category: number;
146
146
  } | undefined;
147
147
  }> & {
@@ -175,7 +175,7 @@ export declare class TVDisplayApi extends JBaseApi {
175
175
  dateModified: string;
176
176
  title: string;
177
177
  _url: string;
178
- privacy: number;
178
+ privacy: import("../..").GroupPrivacy;
179
179
  category: number;
180
180
  } | {
181
181
  type: "folder" | "rootFolder";
@@ -378,7 +378,7 @@ export declare class TVDisplayApi extends JBaseApi {
378
378
  dateModified: string;
379
379
  title: string;
380
380
  _url: string;
381
- privacy: number;
381
+ privacy: import("../..").GroupPrivacy;
382
382
  category: number;
383
383
  } | {
384
384
  type: "folder" | "rootFolder";
@@ -492,7 +492,7 @@ export declare class TVDisplayApi extends JBaseApi {
492
492
  dateModified: string;
493
493
  title: string;
494
494
  _url: string;
495
- privacy: number;
495
+ privacy: import("../..").GroupPrivacy;
496
496
  category: number;
497
497
  } | undefined;
498
498
  }> & {
@@ -537,7 +537,7 @@ export declare class TVDisplayApi extends JBaseApi {
537
537
  dateModified: string;
538
538
  title: string;
539
539
  _url: string;
540
- privacy: number;
540
+ privacy: import("../..").GroupPrivacy;
541
541
  category: number;
542
542
  } | {
543
543
  type: "folder" | "rootFolder";
@@ -651,7 +651,7 @@ export declare class TVDisplayApi extends JBaseApi {
651
651
  dateModified: string;
652
652
  title: string;
653
653
  _url: string;
654
- privacy: number;
654
+ privacy: import("../..").GroupPrivacy;
655
655
  category: number;
656
656
  } | undefined;
657
657
  }> & {
@@ -685,7 +685,7 @@ export declare class TVDisplayApi extends JBaseApi {
685
685
  dateModified: string;
686
686
  title: string;
687
687
  _url: string;
688
- privacy: number;
688
+ privacy: import("../..").GroupPrivacy;
689
689
  category: number;
690
690
  } | {
691
691
  type: "folder" | "rootFolder";
@@ -888,7 +888,7 @@ export declare class TVDisplayApi extends JBaseApi {
888
888
  dateModified: string;
889
889
  title: string;
890
890
  _url: string;
891
- privacy: number;
891
+ privacy: import("../..").GroupPrivacy;
892
892
  category: number;
893
893
  } | {
894
894
  type: "folder" | "rootFolder";
@@ -1002,7 +1002,7 @@ export declare class TVDisplayApi extends JBaseApi {
1002
1002
  dateModified: string;
1003
1003
  title: string;
1004
1004
  _url: string;
1005
- privacy: number;
1005
+ privacy: import("../..").GroupPrivacy;
1006
1006
  category: number;
1007
1007
  } | undefined;
1008
1008
  }> & {