jamespot-user-api 1.0.208 → 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.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminLogApi.html +1 -1
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCalendarApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JExternalAppApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +16 -14
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JModuleApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/JitsiApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/group/group.d.ts +98 -0
- package/lib/src/apis/group/group.mock.d.ts +2 -1
- package/lib/src/types/group.d.ts +36 -0
- package/lib/src/util/group.d.ts +1 -0
- package/package.json +1 -1
- package/phpunitMock/spotGetWidgets-default.json +10 -0
|
@@ -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>;
|
package/lib/src/types/group.d.ts
CHANGED
|
@@ -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;
|
package/lib/src/util/group.d.ts
CHANGED
package/package.json
CHANGED