jamespot-user-api 1.0.207 → 1.0.209

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 (94) 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/StudioApplicationStatus.html +1 -1
  44. package/documentation/enums/WidgetsName.html +1 -1
  45. package/documentation/index.html +1 -1
  46. package/documentation/interfaces/AccessRightObject.html +1 -1
  47. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  48. package/documentation/interfaces/ApiWrapper.html +1 -1
  49. package/documentation/interfaces/BaseMessage.html +1 -1
  50. package/documentation/interfaces/FileBankProps.html +1 -1
  51. package/documentation/interfaces/FolderProps.html +1 -1
  52. package/documentation/interfaces/ListFilterSpec.html +1 -1
  53. package/documentation/interfaces/OF.html +1 -1
  54. package/documentation/interfaces/PagingResults.html +1 -1
  55. package/documentation/interfaces/RootFolderProps.html +1 -1
  56. package/documentation/interfaces/SpotProps.html +1 -1
  57. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  58. package/documentation/interfaces/WidgetType.html +1 -1
  59. package/documentation/interfaces/WindowInterface.html +1 -1
  60. package/documentation/modules.html +11 -11
  61. package/jest.config.ts +2 -2
  62. package/lib/jamespot-user-api.js +1 -1
  63. package/lib/jamespot-user-api.js.map +1 -1
  64. package/lib/src/apis/article/article.mock.d.ts +1 -0
  65. package/lib/src/apis/community/community.d.ts +9 -0
  66. package/lib/src/apis/community/community.mock.d.ts +5 -0
  67. package/lib/src/apis/community/community.test.d.ts +1 -0
  68. package/lib/src/apis/digitalDesk/digitalDesk.d.ts +8 -0
  69. package/lib/src/apis/digitalDesk/digitalDesk.mock.d.ts +3 -0
  70. package/lib/src/apis/digitalDesk/digitalDesk.test.d.ts +1 -0
  71. package/lib/src/apis/group/group.d.ts +98 -0
  72. package/lib/src/apis/group/group.mock.d.ts +2 -1
  73. package/lib/src/apis/index.d.ts +1 -2
  74. package/lib/src/apis/jamespotUserApi.d.ts +4 -2
  75. package/lib/src/apis/{messenger.d.ts → messenger/messenger.d.ts} +10 -2
  76. package/lib/src/apis/messenger/messenger.mock.d.ts +113 -0
  77. package/lib/src/apis/messenger/messenger.test.d.ts +1 -0
  78. package/lib/src/types/digitalDesk.d.ts +5 -0
  79. package/lib/src/types/group.d.ts +36 -0
  80. package/lib/src/types/index.d.ts +1 -0
  81. package/lib/src/util/Test.d.ts +5 -1
  82. package/lib/src/util/group.d.ts +1 -0
  83. package/lib/src/util/test.test.d.ts +1 -0
  84. package/package.json +1 -1
  85. package/phpunitMock/adminApps-success.json +12 -0
  86. package/phpunitMock/articlePermalink-success.json +16 -0
  87. package/phpunitMock/autocompleteCommunity-success.json +21 -0
  88. package/phpunitMock/communitySendRequest-success.json +7 -0
  89. package/phpunitMock/digitalDeskGetStatistics-default.json +7 -0
  90. package/phpunitMock/messengerGetDiscussion-success.json +102 -0
  91. package/phpunitMock/messengerNewMessage-success.json +51 -0
  92. package/phpunitMock/spotGetWidgets-default.json +10 -0
  93. package/documentation/classes/JMessengerApi.html +0 -1
  94. package/lib/src/apis/community.d.ts +0 -12
@@ -42,3 +42,4 @@ export declare const articleGetRead: ApiWrapper<{
42
42
  count: number;
43
43
  list: UserRead[];
44
44
  }>;
45
+ export declare const articlePermalink: ApiWrapper<jArticleLittle>;
@@ -0,0 +1,9 @@
1
+ import { JBaseApi } from '../base';
2
+ import { ApiReturn, ApiWrapper, FormatList } from '../../types/utils';
3
+ import { CommunityAutocomplete } from '../../types/autocomplete';
4
+ import { jObjectLittle } from '../../types/objectBase';
5
+ export declare class JCommunityApi extends JBaseApi {
6
+ get<T extends FormatList = undefined>(idCommunity: string | number, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, jObjectLittle, jObjectLittle, jObjectLittle>, import("../../types/utils").BaseMessages>>;
7
+ sendRequest(message: string, idUserTo: number): Promise<ApiWrapper<boolean>>;
8
+ autocomplete(q: string): Promise<CommunityAutocomplete[]>;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { CommunityAutocomplete } from '../../types/autocomplete';
2
+ import { ApiWrapper } from '../../types/utils';
3
+ export declare const communityGet: {};
4
+ export declare const communitySendRequest: ApiWrapper<boolean>;
5
+ export declare const communityAutocomplete: ApiWrapper<CommunityAutocomplete[]>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { JBaseApi } from '../base';
2
+ import { ApiWrapper } from '../../types/utils';
3
+ import { DigitalDeskStatistics } from '../../types/digitalDesk';
4
+ export declare class JDigitalDeskApi extends JBaseApi {
5
+ statistics(params?: {
6
+ signal?: AbortSignal;
7
+ }): Promise<ApiWrapper<DigitalDeskStatistics>>;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { DigitalDeskStatistics } from '../../types/digitalDesk';
2
+ import { ApiWrapper } from '../../types/utils';
3
+ export declare const digitalDeskGetStatistics: ApiWrapper<DigitalDeskStatistics>;
@@ -0,0 +1 @@
1
+ export {};
@@ -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>;
@@ -7,7 +7,7 @@ export * from './base';
7
7
  export * from './bbb/bbb';
8
8
  export * from './bookmark/bookmark';
9
9
  export * from './businessNetworking/businessNetworking';
10
- export * from './community';
10
+ export * from './community/community';
11
11
  export * from './calendar/calendar';
12
12
  export * from './datasource/datasource';
13
13
  export * from './diapazone/diapazone';
@@ -21,7 +21,6 @@ export * from './jamespotUserApi';
21
21
  export * from './jia/jia';
22
22
  export * from './jitsi/jitsi';
23
23
  export * from './jland/jland';
24
- export * from './messenger';
25
24
  export * from './module/module';
26
25
  export * from './object/object';
27
26
  export * from './socialAction/socialAction';
@@ -4,7 +4,7 @@ import { JArticleApi } from './article/article';
4
4
  import { JAseiApi } from './asei/asei';
5
5
  import { JAssetReservation } from './assetReservation/assetReservation';
6
6
  import { JAudienceApi } from './audience/audience';
7
- import { JCommunityApi } from './community';
7
+ import { JCommunityApi } from './community/community';
8
8
  import { JDatasourceApi } from './datasource/datasource';
9
9
  import { JDiapazoneApi } from './diapazone/diapazone';
10
10
  import { JDriveApi } from './drive/drive';
@@ -13,7 +13,7 @@ import { JFilebankApi } from './filebank/filebank';
13
13
  import { JGroupApi } from './group/group';
14
14
  import { JMediaLibraryApi } from './mediaLibrary/mediaLibrary';
15
15
  import { JLandApi } from './jland/jland';
16
- import { JMessengerApi } from './messenger';
16
+ import { JMessengerApi } from './messenger/messenger';
17
17
  import { JSearchApi } from './search/search';
18
18
  import { JBookmarkApi } from './bookmark/bookmark';
19
19
  import { JTaxonomyApi } from './taxonomy';
@@ -39,6 +39,7 @@ import { JQuestionAnswerApi } from './questionAnswer/questionAnswer';
39
39
  import { JVisioConnectApi } from './visioConnect/visioConnect';
40
40
  import { JModuleApi } from './module/module';
41
41
  import { JExternalAppApi } from './externalApp/externalApp';
42
+ import { JDigitalDeskApi } from './digitalDesk/digitalDesk';
42
43
  import { JitsiApi } from './jitsi/jitsi';
43
44
  /**
44
45
  * In browser usage, 'window' should be the window object.
@@ -69,6 +70,7 @@ export declare class JamespotUserApi {
69
70
  community: JCommunityApi;
70
71
  datasource: JDatasourceApi;
71
72
  diapazone: JDiapazoneApi;
73
+ digitalDesk: JDigitalDeskApi;
72
74
  drive: JDriveApi;
73
75
  externalApp: JExternalAppApi;
74
76
  faq: JFaqApi;
@@ -1,6 +1,14 @@
1
- import { ApiWrapper } from '../types';
2
- import { JBaseApi } from './base';
1
+ import { ApiWrapper } from '../../types/utils';
2
+ import { JBaseApi } from '../base';
3
3
  export declare class JMessengerApi extends JBaseApi {
4
+ /**
5
+ * Warning - Old type format
6
+ * @TODO - Implement new format
7
+ */
4
8
  sendMessage(message: string, idDiscussion: string): Promise<ApiWrapper<Record<string, never>>>;
9
+ /**
10
+ * Warning - Old type format
11
+ * @TODO - Implement new format
12
+ */
5
13
  getOrCreateDiscussion(idSender: number, idUserTo: number): Promise<ApiWrapper<Record<string, never>>>;
6
14
  }
@@ -0,0 +1,113 @@
1
+ export declare const messengerNewMessage: {
2
+ o: string;
3
+ f: string;
4
+ error: number;
5
+ messages: never[];
6
+ result: {
7
+ id: number;
8
+ type: string;
9
+ uri: string;
10
+ uriDiscussion: string;
11
+ description: string;
12
+ preview: {};
13
+ isTechnical: boolean;
14
+ _url: string;
15
+ _right: {
16
+ create: boolean;
17
+ read: boolean;
18
+ publish: boolean;
19
+ administrate: boolean;
20
+ update: boolean;
21
+ delete: boolean;
22
+ comment: boolean;
23
+ member: boolean;
24
+ };
25
+ isArchive: number;
26
+ _user: {
27
+ id: number;
28
+ type: string;
29
+ mainType: string;
30
+ _cssColor: string;
31
+ _cssClass: string;
32
+ uri: string;
33
+ title: string;
34
+ _url: string;
35
+ firstname: string;
36
+ lastname: string;
37
+ company: string;
38
+ mail: string;
39
+ _values: {
40
+ firstname: string;
41
+ lastname: string;
42
+ company: string;
43
+ mail: string;
44
+ dateCreation: string;
45
+ dateModified: string;
46
+ };
47
+ };
48
+ _values: {
49
+ dateCreation: string;
50
+ dateModified: string;
51
+ };
52
+ _idDiscussion: string;
53
+ };
54
+ };
55
+ export declare const messengerGetDiscussion: {
56
+ o: string;
57
+ f: string;
58
+ error: number;
59
+ messages: never[];
60
+ result: {
61
+ id: number;
62
+ type: string;
63
+ mainType: string;
64
+ _cssColor: string;
65
+ _cssClass: string;
66
+ uri: string;
67
+ _url: string;
68
+ idDiscussion: string;
69
+ emoji: null;
70
+ _audience: {
71
+ id: number;
72
+ type: string;
73
+ mainType: string;
74
+ _cssColor: string;
75
+ _cssClass: string;
76
+ uri: string;
77
+ title: string;
78
+ _url: string;
79
+ firstname: string;
80
+ lastname: string;
81
+ company: string;
82
+ mail: string;
83
+ _values: {
84
+ firstname: string;
85
+ lastname: string;
86
+ company: string;
87
+ mail: string;
88
+ dateCreation: string;
89
+ dateModified: string;
90
+ };
91
+ }[];
92
+ _cntUnread: number;
93
+ _right: {
94
+ create: boolean;
95
+ read: boolean;
96
+ publish: boolean;
97
+ administrate: boolean;
98
+ update: boolean;
99
+ delete: boolean;
100
+ comment: boolean;
101
+ member: boolean;
102
+ };
103
+ messages: never[];
104
+ _reads: never[];
105
+ bubbleColor: string;
106
+ title: null;
107
+ image: null;
108
+ _values: {
109
+ dateCreation: string;
110
+ dateModified: string;
111
+ };
112
+ };
113
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type DigitalDeskStatistics = {
2
+ decksCnt: number;
3
+ decksUserCnt: number;
4
+ decksUserAvg: number;
5
+ };
@@ -225,12 +225,15 @@ export type ValueLabel = z.infer<typeof valueLabelSchema>;
225
225
  export declare const groupWidgetLittleSchema: z.ZodObject<{
226
226
  id: z.ZodString;
227
227
  title: z.ZodString;
228
+ enabled: z.ZodOptional<z.ZodBoolean>;
228
229
  }, "strip", z.ZodTypeAny, {
229
230
  id: string;
230
231
  title: string;
232
+ enabled?: boolean | undefined;
231
233
  }, {
232
234
  id: string;
233
235
  title: string;
236
+ enabled?: boolean | undefined;
234
237
  }>;
235
238
  export type GroupWidgetLittle = z.infer<typeof groupWidgetLittleSchema>;
236
239
  export declare const groupCustomWidgetSchema: z.ZodObject<{
@@ -358,12 +361,15 @@ export declare const groupPropertiesOptionsSchema: z.ZodObject<{
358
361
  widgets: z.ZodArray<z.ZodObject<{
359
362
  id: z.ZodString;
360
363
  title: z.ZodString;
364
+ enabled: z.ZodOptional<z.ZodBoolean>;
361
365
  }, "strip", z.ZodTypeAny, {
362
366
  id: string;
363
367
  title: string;
368
+ enabled?: boolean | undefined;
364
369
  }, {
365
370
  id: string;
366
371
  title: string;
372
+ enabled?: boolean | undefined;
367
373
  }>, "many">;
368
374
  custom_widgets: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
369
375
  idSpot: z.ZodString;
@@ -442,6 +448,7 @@ export declare const groupPropertiesOptionsSchema: z.ZodObject<{
442
448
  widgets: {
443
449
  id: string;
444
450
  title: string;
451
+ enabled?: boolean | undefined;
445
452
  }[];
446
453
  custom_widgets: never[] | Record<string, {
447
454
  type: string;
@@ -498,6 +505,7 @@ export declare const groupPropertiesOptionsSchema: z.ZodObject<{
498
505
  widgets: {
499
506
  id: string;
500
507
  title: string;
508
+ enabled?: boolean | undefined;
501
509
  }[];
502
510
  custom_widgets: never[] | Record<string, {
503
511
  type: string;
@@ -718,12 +726,15 @@ export declare const groupPropertiesSchema: z.ZodObject<{
718
726
  widgets: z.ZodArray<z.ZodObject<{
719
727
  id: z.ZodString;
720
728
  title: z.ZodString;
729
+ enabled: z.ZodOptional<z.ZodBoolean>;
721
730
  }, "strip", z.ZodTypeAny, {
722
731
  id: string;
723
732
  title: string;
733
+ enabled?: boolean | undefined;
724
734
  }, {
725
735
  id: string;
726
736
  title: string;
737
+ enabled?: boolean | undefined;
727
738
  }>, "many">;
728
739
  custom_widgets: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
729
740
  idSpot: z.ZodString;
@@ -802,6 +813,7 @@ export declare const groupPropertiesSchema: z.ZodObject<{
802
813
  widgets: {
803
814
  id: string;
804
815
  title: string;
816
+ enabled?: boolean | undefined;
805
817
  }[];
806
818
  custom_widgets: never[] | Record<string, {
807
819
  type: string;
@@ -858,6 +870,7 @@ export declare const groupPropertiesSchema: z.ZodObject<{
858
870
  widgets: {
859
871
  id: string;
860
872
  title: string;
873
+ enabled?: boolean | undefined;
861
874
  }[];
862
875
  custom_widgets: never[] | Record<string, {
863
876
  type: string;
@@ -948,6 +961,7 @@ export declare const groupPropertiesSchema: z.ZodObject<{
948
961
  widgets: {
949
962
  id: string;
950
963
  title: string;
964
+ enabled?: boolean | undefined;
951
965
  }[];
952
966
  custom_widgets: never[] | Record<string, {
953
967
  type: string;
@@ -1038,6 +1052,7 @@ export declare const groupPropertiesSchema: z.ZodObject<{
1038
1052
  widgets: {
1039
1053
  id: string;
1040
1054
  title: string;
1055
+ enabled?: boolean | undefined;
1041
1056
  }[];
1042
1057
  custom_widgets: never[] | Record<string, {
1043
1058
  type: string;
@@ -1058,6 +1073,20 @@ export declare const groupPropertiesSchema: z.ZodObject<{
1058
1073
  lastRssExecution?: Record<string, string> | undefined;
1059
1074
  }>;
1060
1075
  export type GroupProperties = z.infer<typeof groupPropertiesSchema>;
1076
+ export declare const groupWidgetsSchema: z.ZodArray<z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ title: z.ZodString;
1079
+ enabled: z.ZodOptional<z.ZodBoolean>;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ id: string;
1082
+ title: string;
1083
+ enabled?: boolean | undefined;
1084
+ }, {
1085
+ id: string;
1086
+ title: string;
1087
+ enabled?: boolean | undefined;
1088
+ }>, "many">;
1089
+ export type GroupWidgets = z.infer<typeof groupWidgetsSchema>;
1061
1090
  export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1062
1091
  type: z.ZodString;
1063
1092
  title: z.ZodString;
@@ -1207,12 +1236,15 @@ export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
1207
1236
  widgets: z.ZodArray<z.ZodObject<{
1208
1237
  id: z.ZodString;
1209
1238
  title: z.ZodString;
1239
+ enabled: z.ZodOptional<z.ZodBoolean>;
1210
1240
  }, "strip", z.ZodTypeAny, {
1211
1241
  id: string;
1212
1242
  title: string;
1243
+ enabled?: boolean | undefined;
1213
1244
  }, {
1214
1245
  id: string;
1215
1246
  title: string;
1247
+ enabled?: boolean | undefined;
1216
1248
  }>, "many">;
1217
1249
  custom_widgets: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
1218
1250
  idSpot: z.ZodString;
@@ -1291,6 +1323,7 @@ export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
1291
1323
  widgets: {
1292
1324
  id: string;
1293
1325
  title: string;
1326
+ enabled?: boolean | undefined;
1294
1327
  }[];
1295
1328
  custom_widgets: never[] | Record<string, {
1296
1329
  type: string;
@@ -1347,6 +1380,7 @@ export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
1347
1380
  widgets: {
1348
1381
  id: string;
1349
1382
  title: string;
1383
+ enabled?: boolean | undefined;
1350
1384
  }[];
1351
1385
  custom_widgets: never[] | Record<string, {
1352
1386
  type: string;
@@ -1429,6 +1463,7 @@ export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
1429
1463
  widgets: {
1430
1464
  id: string;
1431
1465
  title: string;
1466
+ enabled?: boolean | undefined;
1432
1467
  }[];
1433
1468
  custom_widgets: never[] | Record<string, {
1434
1469
  type: string;
@@ -1511,6 +1546,7 @@ export declare const updateGroupSchema: z.ZodIntersection<z.ZodIntersection<z.Zo
1511
1546
  widgets: {
1512
1547
  id: string;
1513
1548
  title: string;
1549
+ enabled?: boolean | undefined;
1514
1550
  }[];
1515
1551
  custom_widgets: never[] | Record<string, {
1516
1552
  type: string;
@@ -21,6 +21,7 @@ export * from './businessContact';
21
21
  export * from './calendar';
22
22
  export * from './comment';
23
23
  export * from './diapazone';
24
+ export * from './digitalDesk';
24
25
  export * from './drive';
25
26
  export * from './externalApp';
26
27
  export * from './faq';
@@ -143,8 +143,12 @@ export declare const arrayRights: ({
143
143
  t: string;
144
144
  })[];
145
145
  export declare const fetchMock: <T>(data: T) => jest.Mock<Promise<FetchResponseType<T>>, []>;
146
+ export declare const fetchMockCSRF: <T>(data: T) => {
147
+ mock: jest.Mock<Promise<FetchResponseType<T>>, []>;
148
+ mockCSRF: jest.SpyInstance<Promise<import("../types").ApiWrapper<string, import("../types").BaseMessages>>, []>;
149
+ };
146
150
  export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T, excludeFields?: string[]) => void;
147
- export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null) => void;
151
+ export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null | number) => void;
148
152
  export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
149
153
  export declare const validateObject: <T extends {
150
154
  [x: string]: any;
@@ -73,6 +73,7 @@ export declare const checkProperties: (group: jGroupView & GroupProperties, upda
73
73
  widgets: {
74
74
  id: string;
75
75
  title: string;
76
+ enabled?: boolean | undefined;
76
77
  }[];
77
78
  custom_widgets: never[] | Record<string, {
78
79
  type: 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.207",
3
+ "version": "1.0.209",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -227,6 +227,12 @@
227
227
  "idDiv": "admin-tab-advanced-registry",
228
228
  "label": "Param\u00e9trages",
229
229
  "icon": "icon-th"
230
+ },
231
+ {
232
+ "sref": "jAdmin.advanced.logs",
233
+ "idDiv": "admin-tab-advanced-logs",
234
+ "label": "Logs",
235
+ "icon": "icon-book"
230
236
  }
231
237
  ],
232
238
  "access": true
@@ -245,6 +251,12 @@
245
251
  "label": "Param\u00e9trages",
246
252
  "icon": "icon-terminal"
247
253
  },
254
+ {
255
+ "sref": "jAdmin.dev.logs",
256
+ "idDiv": "admin-tab-dev-logs",
257
+ "label": "ADMIN_logs",
258
+ "icon": "icon-book"
259
+ },
248
260
  {
249
261
  "sref": "jAdmin.dev.theme",
250
262
  "idDiv": "admin-dev-theme",
@@ -0,0 +1,16 @@
1
+ {
2
+ "o": "article",
3
+ "f": "permalink",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 38,
8
+ "mainType": "article",
9
+ "type": "mpArticle",
10
+ "uri": "mpArticle/38",
11
+ "dateCreation": "2024-12-17 11:03:19",
12
+ "dateModified": "2024-12-17 11:03:19",
13
+ "title": "Article for permalink",
14
+ "_url": "/article/38"
15
+ }
16
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "o": "autocomplete",
3
+ "f": "community",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": "communityPublic/22",
9
+ "uri": "communityPublic/22",
10
+ "shortUri": "ct22",
11
+ "title": "testAutocompleteCommunity",
12
+ "name": "testAutocompleteCommunity",
13
+ "mainType": "community",
14
+ "type": "communityPublic",
15
+ "label": "testAutocompleteCommunity",
16
+ "cssClass": "globe",
17
+ "cssColor": "#42ac9e",
18
+ "class": ""
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "community",
3
+ "f": "SendRequest",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Votre demande de contact a \u00e9t\u00e9 envoy\u00e9e !" }],
6
+ "result": true
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "digitalDesk",
3
+ "f": "getStatistics",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": { "decksCnt": 4, "decksUserCnt": 3, "decksUserAvg": 1.5 }
7
+ }