jamespot-user-api 1.0.201 → 1.0.203
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/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 +2 -2
- 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 -0
- 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 -0
- 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 +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JModuleApi.html +1 -0
- 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/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/jest.config.ts +2 -2
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/application/types.d.ts +1 -1
- package/lib/src/apis/article/article.mock.d.ts +8 -1
- package/lib/src/apis/bbb/bbb.d.ts +3 -0
- package/lib/src/apis/calendar/calendar.d.ts +18 -0
- package/lib/src/apis/calendar/calendar.mock.d.ts +4 -0
- package/lib/src/apis/calendar/calendar.test.d.ts +1 -0
- package/lib/src/apis/externalApp/externalApp.d.ts +13 -0
- package/lib/src/apis/externalApp/externalApp.mock.d.ts +4 -0
- package/lib/src/apis/externalApp/externalApp.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +3 -0
- package/lib/src/apis/jamespotUserApi.d.ts +6 -0
- package/lib/src/apis/module/module.d.ts +13 -0
- package/lib/src/apis/module/module.mock.d.ts +4 -0
- package/lib/src/apis/module/module.test.d.ts +1 -0
- package/lib/src/apis/user/user.d.ts +15 -4
- package/lib/src/apis/user/user.mock.d.ts +2 -1
- package/lib/src/apis/widget/widget.mock.d.ts +4 -2
- package/lib/src/types/animations.d.ts +4 -4
- package/lib/src/types/autocomplete.d.ts +6 -0
- package/lib/src/types/calendar.d.ts +83 -0
- package/lib/src/types/externalApp.d.ts +13 -0
- package/lib/src/types/faq.d.ts +5 -0
- package/lib/src/types/index.d.ts +3 -0
- package/lib/src/types/mediaLibrary.d.ts +5 -0
- package/lib/src/types/meeting.d.ts +105 -0
- package/lib/src/types/module.d.ts +17 -0
- package/lib/src/types/search.d.ts +139 -22
- package/lib/src/types/socialEvent.d.ts +105 -0
- package/lib/src/types/widgets.d.ts +5 -0
- package/package.json +1 -1
- package/phpunitMock/articleGetRead-default.json +10 -0
- package/phpunitMock/autocompleteUser-a.json +8 -4
- package/phpunitMock/bigBlueButtonVideoRecordingDelete-default.json +1 -0
- package/phpunitMock/calendarGetEvents-spot.json +24 -0
- package/phpunitMock/calendarGetEvents-user.json +24 -0
- package/phpunitMock/calendarGetLastEvents-raw-list.json +205 -0
- package/phpunitMock/externalAppList-default.json +21 -0
- package/phpunitMock/externalAppSave-default.json +19 -0
- package/phpunitMock/moduleGetConfiguration-DigitalDeskHook.json +45 -0
- package/phpunitMock/moduleSetConfiguration-DigitalDeskHook.json +1 -0
- package/phpunitMock/studioGet-install-V2.json +1 -1
- package/phpunitMock/studioInstall-V2.json +1 -1
- package/phpunitMock/studioList-install-V2.json +1 -1
- package/phpunitMock/studioList-testUserApiList.json +1 -1
- package/phpunitMock/studioRestart-V2.json +1 -1
- package/phpunitMock/studioSuspend-V2.json +1 -1
- package/phpunitMock/userGetSpots-rawLittle.json +32 -0
- package/phpunitMock/widgetQuickSurveyRespond-default.json +1 -0
- package/phpunitMock/widgetResponseUserList-default.json +118 -0
- package/phpunitMock/widgetUpdateWidget-quickSurvey.json +16 -6
- package/phpunitMock/widgetUpdateWidget-checkList.json +0 -23
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jArticleExtendView, jArticleList, jArticleLittle, jArticleView, UserRead } from '../../types/article';
|
|
2
2
|
import { jCommentList } from '../../types/comment';
|
|
3
|
+
import { jFileLittle } from '../../types/file';
|
|
3
4
|
import { jMeetingList, jMeetingView } from '../../types/meeting';
|
|
4
5
|
import { jPollSurveyList, jPollSurveyView } from '../../types/pollSurvey';
|
|
5
6
|
import { jQuizzList, jQuizzView } from '../../types/quizz';
|
|
6
7
|
import { jSocialEventList, jSocialEventView } from '../../types/socialEvent';
|
|
7
8
|
import { jSupportList, jSupportView } from '../../types/support';
|
|
8
9
|
import { jSurveyDateList, jSurveyDateView } from '../../types/surveyDate';
|
|
10
|
+
import { ApiDefaultWrapper, ApiWrapper, BaseMessages, PagingResults } from '../../types/utils';
|
|
11
|
+
import { jArticleWidgetLittle } from '../../types/widgets';
|
|
9
12
|
export declare const articleGetMpArticleList: ApiWrapper<jArticleList, BaseMessages>;
|
|
10
13
|
export declare const articleCreateMpArticleLittle: ApiWrapper<Array<jArticleLittle>, BaseMessages>;
|
|
11
14
|
export declare const articleGetMeetingList: ApiWrapper<jMeetingList>;
|
|
@@ -35,3 +38,7 @@ export declare const articleAddComment: ApiWrapper<jCommentList>;
|
|
|
35
38
|
export declare const articleUpdateComment: ApiWrapper<jCommentList>;
|
|
36
39
|
export declare const articleDeleteComment: ApiDefaultWrapper;
|
|
37
40
|
export declare const articleGetWithAttachments: ApiWrapper<jArticleExtendView>;
|
|
41
|
+
export declare const articleGetRead: ApiWrapper<{
|
|
42
|
+
count: number;
|
|
43
|
+
list: UserRead[];
|
|
44
|
+
}>;
|
|
@@ -4,4 +4,7 @@ import { JBaseApi } from '../base';
|
|
|
4
4
|
export declare class JBbbApi extends JBaseApi {
|
|
5
5
|
publicWebinarFullname(params: PublicWebinarFullnameRequest): Promise<ApiWrapper<PublicWebinarUrl>>;
|
|
6
6
|
getPublicWebinarData(params: GetPublicWebinarDataRequest): Promise<ApiWrapper<PublicWebinarData>>;
|
|
7
|
+
recordingDelete(id: number, filename: string, options?: {
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}): Promise<ApiWrapper<boolean>>;
|
|
7
10
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiWrapper, Format } from '../../types/utils';
|
|
3
|
+
import { CalendarCombinedEventsList, CalendarOldEvent } from 'src/types/calendar';
|
|
4
|
+
export declare class JCalendarApi extends JBaseApi {
|
|
5
|
+
getEvents(params: {
|
|
6
|
+
end?: string;
|
|
7
|
+
start?: string;
|
|
8
|
+
mode?: 'spot' | 'user';
|
|
9
|
+
idSpot?: number;
|
|
10
|
+
idArticle?: number;
|
|
11
|
+
}): Promise<ApiWrapper<CalendarOldEvent[]>>;
|
|
12
|
+
getLastEvents(params: {
|
|
13
|
+
uriContext?: string;
|
|
14
|
+
page?: number;
|
|
15
|
+
limit?: number;
|
|
16
|
+
format?: Format;
|
|
17
|
+
}): Promise<ApiWrapper<CalendarCombinedEventsList[]>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CalendarCombinedEventsList, CalendarOldEvent } from 'src/types/calendar';
|
|
2
|
+
import { ApiWrapper } from '../../types/utils';
|
|
3
|
+
export declare const calendarGetEvents: ApiWrapper<CalendarOldEvent[]>;
|
|
4
|
+
export declare const calendarGetLastEvents: ApiWrapper<CalendarCombinedEventsList[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiWrapper } from '../../types';
|
|
3
|
+
import { ExternalAppType } from '../../types/externalApp';
|
|
4
|
+
export declare class JExternalAppApi extends JBaseApi {
|
|
5
|
+
save(payload: Omit<ExternalAppType, 'id'> & {
|
|
6
|
+
id?: string;
|
|
7
|
+
}, params?: {
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}): Promise<ApiWrapper<ExternalAppType>>;
|
|
10
|
+
list(params?: {
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}): Promise<ApiWrapper<Record<string, ExternalAppType>>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ export * from './bbb/bbb';
|
|
|
8
8
|
export * from './bookmark/bookmark';
|
|
9
9
|
export * from './businessNetworking/businessNetworking';
|
|
10
10
|
export * from './community';
|
|
11
|
+
export * from './calendar/calendar';
|
|
11
12
|
export * from './datasource/datasource';
|
|
12
13
|
export * from './diapazone/diapazone';
|
|
14
|
+
export * from './externalApp/externalApp';
|
|
13
15
|
export * from './file/file';
|
|
14
16
|
export * from './faq/faq';
|
|
15
17
|
export * from './filebank/filebank';
|
|
@@ -19,6 +21,7 @@ export * from './jamespotUserApi';
|
|
|
19
21
|
export * from './jia/jia';
|
|
20
22
|
export * from './jland/jland';
|
|
21
23
|
export * from './messenger';
|
|
24
|
+
export * from './module/module';
|
|
22
25
|
export * from './object/object';
|
|
23
26
|
export * from './socialAction/socialAction';
|
|
24
27
|
export * from './search/search';
|
|
@@ -34,8 +34,11 @@ import { JIAApi } from './jia/jia';
|
|
|
34
34
|
import { JWidgetApi } from './widget/widget';
|
|
35
35
|
import { JMagicPadApi } from './magicPad/magicPad';
|
|
36
36
|
import { JBbbApi } from './bbb/bbb';
|
|
37
|
+
import { JCalendarApi } from './calendar/calendar';
|
|
37
38
|
import { JQuestionAnswerApi } from './questionAnswer/questionAnswer';
|
|
38
39
|
import { JVisioConnectApi } from './visioConnect/visioConnect';
|
|
40
|
+
import { JModuleApi } from './module/module';
|
|
41
|
+
import { JExternalAppApi } from './externalApp/externalApp';
|
|
39
42
|
/**
|
|
40
43
|
* In browser usage, 'window' should be the window object.
|
|
41
44
|
* In server side usage, 'window' object given must implement the fetch method, used by the Apis.
|
|
@@ -60,10 +63,12 @@ export declare class JamespotUserApi {
|
|
|
60
63
|
bbb: JBbbApi;
|
|
61
64
|
bookmark: JBookmarkApi;
|
|
62
65
|
businessNetworking: JBusinessNetworkingApi;
|
|
66
|
+
calendar: JCalendarApi;
|
|
63
67
|
community: JCommunityApi;
|
|
64
68
|
datasource: JDatasourceApi;
|
|
65
69
|
diapazone: JDiapazoneApi;
|
|
66
70
|
drive: JDriveApi;
|
|
71
|
+
externalApp: JExternalAppApi;
|
|
67
72
|
faq: JFaqApi;
|
|
68
73
|
file: JFileApi;
|
|
69
74
|
filebank: JFilebankApi;
|
|
@@ -75,6 +80,7 @@ export declare class JamespotUserApi {
|
|
|
75
80
|
magicPad: JMagicPadApi;
|
|
76
81
|
mediaLibrary: JMediaLibraryApi;
|
|
77
82
|
messenger: JMessengerApi;
|
|
83
|
+
module: JModuleApi;
|
|
78
84
|
object: JObjectApi;
|
|
79
85
|
questionAnswer: JQuestionAnswerApi;
|
|
80
86
|
search: JSearchApi;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiDefaultWrapper, ApiWrapper } from '../../types/utils';
|
|
3
|
+
import { ModuleConfiguration, ModuleConfigurationFields } from '../../types/module';
|
|
4
|
+
export declare class JModuleApi extends JBaseApi {
|
|
5
|
+
getConfiguration(payload: {
|
|
6
|
+
moduleName: string;
|
|
7
|
+
}, params?: {
|
|
8
|
+
signal?: AbortSignal;
|
|
9
|
+
}): Promise<ApiWrapper<ModuleConfigurationFields>>;
|
|
10
|
+
setConfiguration(payload: ModuleConfiguration, params?: {
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}): Promise<ApiDefaultWrapper>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jBusinessContactList, jBusinessContactLittle } from '../../types/businessContact';
|
|
3
|
+
import { jObjectLittle } from '../../types/objectBase';
|
|
4
|
+
import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, FormatExtension, FormatList, ObjectListProps, Readable } from '../../types/utils';
|
|
5
|
+
import { BusinessContact, jUserLittle, jUserValues, jUserView, UserDirectoryConfiguration, UserFieldsConfigurationType, UserFieldsType, UserMapModel } from '../../types/user';
|
|
6
|
+
import { jArticleLittle } from '../../types/article';
|
|
7
|
+
import { jGroupLittle } from '../../types/group';
|
|
4
8
|
export declare class JUserApi extends JBaseApi {
|
|
5
9
|
/**
|
|
6
10
|
* autocomplete return a list users
|
|
@@ -12,6 +16,7 @@ export declare class JUserApi extends JBaseApi {
|
|
|
12
16
|
mainType: string;
|
|
13
17
|
uri: string;
|
|
14
18
|
title: string;
|
|
19
|
+
_url: string;
|
|
15
20
|
name: string;
|
|
16
21
|
Pseudo: string;
|
|
17
22
|
class: string;
|
|
@@ -65,7 +70,7 @@ export declare class JUserApi extends JBaseApi {
|
|
|
65
70
|
}>, options?: {
|
|
66
71
|
format?: FormatList;
|
|
67
72
|
}): Promise<ApiWrapper<T>>;
|
|
68
|
-
userDeleteBusinessContact(idArticle: number): Promise<ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
73
|
+
userDeleteBusinessContact(idArticle: number): Promise<ApiWrapper<boolean, import("../../types/utils").BaseMessages>>;
|
|
69
74
|
userAddContact(idUser: number): Promise<ApiDefaultWrapper>;
|
|
70
75
|
userRemoveContact(idUser: number): Promise<ApiDefaultWrapper>;
|
|
71
76
|
/**
|
|
@@ -78,5 +83,11 @@ export declare class JUserApi extends JBaseApi {
|
|
|
78
83
|
getFields(idUser: number, fieldsType: UserFieldsType): Promise<ApiWrapper<{
|
|
79
84
|
value: string | Record<string, any>;
|
|
80
85
|
name: string;
|
|
81
|
-
}[], import("../../types").BaseMessages>>;
|
|
86
|
+
}[], import("../../types/utils").BaseMessages>>;
|
|
87
|
+
getSpots<T extends jGroupLittle = jGroupLittle>({ format, ...payload }?: {
|
|
88
|
+
idUser?: number;
|
|
89
|
+
format?: FormatList;
|
|
90
|
+
}, { signal }?: {
|
|
91
|
+
signal?: AbortSignal;
|
|
92
|
+
}): Promise<ApiWrapper<T[]>>;
|
|
82
93
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, UserMapModel, jUserAutocomplete, jUserList, jUserView, jUserLittle, UserFieldsConfigurationType, UserField, UserDirectoryConfiguration, UserValues, jArticleLittle } from '../../types';
|
|
1
|
+
import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, UserMapModel, jUserAutocomplete, jUserList, jUserView, jUserLittle, UserFieldsConfigurationType, UserField, UserDirectoryConfiguration, UserValues, jArticleLittle, jGroupLittle } from '../../types';
|
|
2
2
|
import { jBusinessContactList } from '../../types/businessContact';
|
|
3
3
|
export declare const userAutocompleteA: ApiWrapper<jUserAutocomplete[]>;
|
|
4
4
|
export declare const userGetUser1: ApiWrapper<jUserView>;
|
|
@@ -20,3 +20,4 @@ export declare const userCreateBusinessContact: ApiWrapper<jArticleLittle[]>;
|
|
|
20
20
|
export declare const userUpdateBusinessContact: ApiWrapper<jBusinessContactList>;
|
|
21
21
|
export declare const userDeleteBusinessContact: ApiWrapper<boolean>;
|
|
22
22
|
export declare const userSignIn: ApiWrapper<jUserView>;
|
|
23
|
+
export declare const userGetSpots: ApiWrapper<jGroupLittle[]>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ApiWrapper, WidgetCheckListType, WidgetPresenceResponse, WidgetPresenceResponseUserList, WidgetQuickSurveyResponse, WidgetQuickSurveyResponseUserList, WidgetQuickSurveyType, WidgetWrapperGeneric } from '../../types';
|
|
1
|
+
import { ApiWrapper, jUserLittle, WidgetCheckListType, WidgetPresenceResponse, WidgetPresenceResponseUserList, WidgetQuickSurveyResponse, WidgetQuickSurveyResponseUserList, WidgetQuickSurveyType, WidgetWrapperGeneric } from '../../types';
|
|
2
2
|
export declare const widgetResponseRemoveWidget: ApiWrapper<boolean>;
|
|
3
3
|
export declare const widgetResponseCheckListRespond: ApiWrapper<boolean>;
|
|
4
4
|
export declare const widgetCheckListGetResponseNoResponse: ApiWrapper<WidgetCheckListType>;
|
|
5
5
|
export declare const widgetCheckListGetResponseIndex0: ApiWrapper<WidgetCheckListType>;
|
|
6
6
|
export declare const widgetPresenceCancel: ApiWrapper<boolean>;
|
|
7
7
|
export declare const widgetPresenceRespondAvailable: ApiWrapper<[]>;
|
|
8
|
-
export declare const widgetResponseUpdateWidget: ApiWrapper<Pick<WidgetWrapperGeneric<
|
|
8
|
+
export declare const widgetResponseUpdateWidget: ApiWrapper<Pick<WidgetWrapperGeneric<WidgetQuickSurveyType>, 'widget' | 'title'>[]>;
|
|
9
9
|
export declare const widgetPresenceGetResponseAvailable: ApiWrapper<WidgetPresenceResponse>;
|
|
10
10
|
export declare const widgetPresenceGetResponseUnavailable: ApiWrapper<WidgetPresenceResponse>;
|
|
11
11
|
export declare const widgetQuickSurveyGetResponse: ApiWrapper<WidgetQuickSurveyResponse>;
|
|
@@ -13,3 +13,5 @@ export declare const widgetQuickSurveyGetResponseUserList: ApiWrapper<WidgetQuic
|
|
|
13
13
|
export declare const widgetPresenceGetResponseUserList: ApiWrapper<WidgetPresenceResponseUserList>;
|
|
14
14
|
export declare const widgetQuickSurveyAddEntryArticleQuickSurvey: ApiWrapper<boolean>;
|
|
15
15
|
export declare const widgetGetWidgetArticleQuickSurvey: ApiWrapper<WidgetQuickSurveyType>;
|
|
16
|
+
export declare const WidgetQuickSurveyRespond: ApiWrapper<[]>;
|
|
17
|
+
export declare const WidgetResponseUserList: ApiWrapper<jUserLittle[]>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const animationVariantSchema: z.ZodUnion<[z.ZodLiteral<"Halloween">, z.ZodLiteral<"Celebration">, z.ZodLiteral<"Olympics">, z.ZodLiteral<"Maythefourth">, z.ZodLiteral<"Spring">, z.ZodLiteral<"MusicFestival">, z.ZodLiteral<"EasterEggs">, z.ZodLiteral<"CustomAnimation">]>;
|
|
2
|
+
export declare const animationVariantSchema: z.ZodUnion<[z.ZodLiteral<"Christmas">, z.ZodLiteral<"Halloween">, z.ZodLiteral<"Celebration">, z.ZodLiteral<"Olympics">, z.ZodLiteral<"Maythefourth">, z.ZodLiteral<"Spring">, z.ZodLiteral<"MusicFestival">, z.ZodLiteral<"EasterEggs">, z.ZodLiteral<"CustomAnimation">]>;
|
|
3
3
|
export type AnimationVariant = z.infer<typeof animationVariantSchema>;
|
|
4
4
|
export declare const animationConfigurationTypeSchema: z.ZodObject<{
|
|
5
|
-
name: z.ZodUnion<[z.ZodLiteral<"Halloween">, z.ZodLiteral<"Celebration">, z.ZodLiteral<"Olympics">, z.ZodLiteral<"Maythefourth">, z.ZodLiteral<"Spring">, z.ZodLiteral<"MusicFestival">, z.ZodLiteral<"EasterEggs">, z.ZodLiteral<"CustomAnimation">]>;
|
|
5
|
+
name: z.ZodUnion<[z.ZodLiteral<"Christmas">, z.ZodLiteral<"Halloween">, z.ZodLiteral<"Celebration">, z.ZodLiteral<"Olympics">, z.ZodLiteral<"Maythefourth">, z.ZodLiteral<"Spring">, z.ZodLiteral<"MusicFestival">, z.ZodLiteral<"EasterEggs">, z.ZodLiteral<"CustomAnimation">]>;
|
|
6
6
|
activeClickEffect: z.ZodNumber;
|
|
7
7
|
activeDecor: z.ZodNumber;
|
|
8
8
|
auto: z.ZodBoolean;
|
|
9
9
|
audience: z.ZodArray<z.ZodString, "many">;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
name: "Halloween" | "Celebration" | "Olympics" | "Maythefourth" | "Spring" | "MusicFestival" | "EasterEggs" | "CustomAnimation";
|
|
11
|
+
name: "Christmas" | "Halloween" | "Celebration" | "Olympics" | "Maythefourth" | "Spring" | "MusicFestival" | "EasterEggs" | "CustomAnimation";
|
|
12
12
|
audience: string[];
|
|
13
13
|
activeClickEffect: number;
|
|
14
14
|
activeDecor: number;
|
|
15
15
|
auto: boolean;
|
|
16
16
|
}, {
|
|
17
|
-
name: "Halloween" | "Celebration" | "Olympics" | "Maythefourth" | "Spring" | "MusicFestival" | "EasterEggs" | "CustomAnimation";
|
|
17
|
+
name: "Christmas" | "Halloween" | "Celebration" | "Olympics" | "Maythefourth" | "Spring" | "MusicFestival" | "EasterEggs" | "CustomAnimation";
|
|
18
18
|
audience: string[];
|
|
19
19
|
activeClickEffect: number;
|
|
20
20
|
activeDecor: number;
|
|
@@ -93,12 +93,14 @@ export declare const jUserAutocompleteSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
93
93
|
title: z.ZodString;
|
|
94
94
|
}>, {
|
|
95
95
|
Pseudo: z.ZodString;
|
|
96
|
+
_url: z.ZodString;
|
|
96
97
|
}>, "strip", z.ZodTypeAny, {
|
|
97
98
|
type: string;
|
|
98
99
|
id: string;
|
|
99
100
|
mainType: string;
|
|
100
101
|
uri: string;
|
|
101
102
|
title: string;
|
|
103
|
+
_url: string;
|
|
102
104
|
name: string;
|
|
103
105
|
Pseudo: string;
|
|
104
106
|
class: string;
|
|
@@ -112,6 +114,7 @@ export declare const jUserAutocompleteSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
112
114
|
mainType: string;
|
|
113
115
|
uri: string;
|
|
114
116
|
title: string;
|
|
117
|
+
_url: string;
|
|
115
118
|
name: string;
|
|
116
119
|
Pseudo: string;
|
|
117
120
|
class: string;
|
|
@@ -219,12 +222,14 @@ export declare const audienceAutocompleteSchema: z.ZodUnion<[z.ZodObject<z.objec
|
|
|
219
222
|
title: z.ZodString;
|
|
220
223
|
}>, {
|
|
221
224
|
Pseudo: z.ZodString;
|
|
225
|
+
_url: z.ZodString;
|
|
222
226
|
}>, "strip", z.ZodTypeAny, {
|
|
223
227
|
type: string;
|
|
224
228
|
id: string;
|
|
225
229
|
mainType: string;
|
|
226
230
|
uri: string;
|
|
227
231
|
title: string;
|
|
232
|
+
_url: string;
|
|
228
233
|
name: string;
|
|
229
234
|
Pseudo: string;
|
|
230
235
|
class: string;
|
|
@@ -238,6 +243,7 @@ export declare const audienceAutocompleteSchema: z.ZodUnion<[z.ZodObject<z.objec
|
|
|
238
243
|
mainType: string;
|
|
239
244
|
uri: string;
|
|
240
245
|
title: string;
|
|
246
|
+
_url: string;
|
|
241
247
|
name: string;
|
|
242
248
|
Pseudo: string;
|
|
243
249
|
class: string;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { jMeetingList } from './meeting';
|
|
3
|
+
import { jSocialEventList } from './socialEvent';
|
|
4
|
+
export declare const calendarOldEventSchema: z.ZodObject<{
|
|
5
|
+
idArticle: z.ZodNumber;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
start: z.ZodString;
|
|
8
|
+
end: z.ZodString;
|
|
9
|
+
url: z.ZodString;
|
|
10
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
11
|
+
color: z.ZodOptional<z.ZodString>;
|
|
12
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
14
|
+
subscribe: z.ZodBoolean;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
title: string;
|
|
17
|
+
url: string;
|
|
18
|
+
start: string;
|
|
19
|
+
end: string;
|
|
20
|
+
idArticle: number;
|
|
21
|
+
subscribe: boolean;
|
|
22
|
+
color?: string | undefined;
|
|
23
|
+
backgroundColor?: string | undefined;
|
|
24
|
+
textColor?: string | undefined;
|
|
25
|
+
bgColor?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
title: string;
|
|
28
|
+
url: string;
|
|
29
|
+
start: string;
|
|
30
|
+
end: string;
|
|
31
|
+
idArticle: number;
|
|
32
|
+
subscribe: boolean;
|
|
33
|
+
color?: string | undefined;
|
|
34
|
+
backgroundColor?: string | undefined;
|
|
35
|
+
textColor?: string | undefined;
|
|
36
|
+
bgColor?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type CalendarOldEvent = z.infer<typeof calendarOldEventSchema>;
|
|
39
|
+
export declare const ensureIsCalendarOldEvent: (o: unknown) => o is {
|
|
40
|
+
title: string;
|
|
41
|
+
url: string;
|
|
42
|
+
start: string;
|
|
43
|
+
end: string;
|
|
44
|
+
idArticle: number;
|
|
45
|
+
subscribe: boolean;
|
|
46
|
+
color?: string | undefined;
|
|
47
|
+
backgroundColor?: string | undefined;
|
|
48
|
+
textColor?: string | undefined;
|
|
49
|
+
bgColor?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
export declare const calendarEventsExtension: z.ZodObject<{
|
|
52
|
+
maxdate: z.ZodOptional<z.ZodString>;
|
|
53
|
+
subscribers: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
54
|
+
id: z.ZodType<number, z.ZodTypeDef, number>;
|
|
55
|
+
mainType: z.ZodType<string, z.ZodTypeDef, string>;
|
|
56
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
57
|
+
uri: z.ZodType<string, z.ZodTypeDef, string>;
|
|
58
|
+
dateCreation: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
|
|
59
|
+
dateModified: z.ZodOptionalType<z.ZodType<string | null | undefined, z.ZodTypeDef, string | null | undefined>>;
|
|
60
|
+
}, {
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
_url: z.ZodString;
|
|
63
|
+
level: z.ZodNativeEnum<{
|
|
64
|
+
readonly ADMIN: 9;
|
|
65
|
+
readonly USER: 5;
|
|
66
|
+
readonly EXTERNAL: 3;
|
|
67
|
+
readonly GUEST: 0;
|
|
68
|
+
}>;
|
|
69
|
+
dateCreation: z.ZodString;
|
|
70
|
+
dateModified: z.ZodString;
|
|
71
|
+
}>, "strip", z.ZodUnion<[z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString]>, import("./user").jUserLittle, import("./user").jUserLittle>, "many">;
|
|
72
|
+
subscribersTotal: z.ZodNumber;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
subscribers: import("./user").jUserLittle[];
|
|
75
|
+
subscribersTotal: number;
|
|
76
|
+
maxdate?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
subscribers: import("./user").jUserLittle[];
|
|
79
|
+
subscribersTotal: number;
|
|
80
|
+
maxdate?: string | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export type CalendarEventsExtension = z.infer<typeof calendarEventsExtension>;
|
|
83
|
+
export type CalendarCombinedEventsList = (jMeetingList & CalendarEventsExtension) | (jSocialEventList & CalendarEventsExtension);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ExternalAppType = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
color: string;
|
|
7
|
+
mode: string;
|
|
8
|
+
url: string;
|
|
9
|
+
urlTarget: boolean;
|
|
10
|
+
urlNoReferrer: boolean;
|
|
11
|
+
accessRight: number;
|
|
12
|
+
accessRightSelector: string[];
|
|
13
|
+
};
|
package/lib/src/types/faq.d.ts
CHANGED
|
@@ -1813,12 +1813,14 @@ export declare const faqViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObj
|
|
|
1813
1813
|
title: z.ZodString;
|
|
1814
1814
|
}>, {
|
|
1815
1815
|
Pseudo: z.ZodString;
|
|
1816
|
+
_url: z.ZodString;
|
|
1816
1817
|
}>, "strip", z.ZodTypeAny, {
|
|
1817
1818
|
type: string;
|
|
1818
1819
|
id: string;
|
|
1819
1820
|
mainType: string;
|
|
1820
1821
|
uri: string;
|
|
1821
1822
|
title: string;
|
|
1823
|
+
_url: string;
|
|
1822
1824
|
name: string;
|
|
1823
1825
|
Pseudo: string;
|
|
1824
1826
|
class: string;
|
|
@@ -1832,6 +1834,7 @@ export declare const faqViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObj
|
|
|
1832
1834
|
mainType: string;
|
|
1833
1835
|
uri: string;
|
|
1834
1836
|
title: string;
|
|
1837
|
+
_url: string;
|
|
1835
1838
|
name: string;
|
|
1836
1839
|
Pseudo: string;
|
|
1837
1840
|
class: string;
|
|
@@ -1954,6 +1957,7 @@ export declare const faqViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObj
|
|
|
1954
1957
|
mainType: string;
|
|
1955
1958
|
uri: string;
|
|
1956
1959
|
title: string;
|
|
1960
|
+
_url: string;
|
|
1957
1961
|
name: string;
|
|
1958
1962
|
Pseudo: string;
|
|
1959
1963
|
class: string;
|
|
@@ -2013,6 +2017,7 @@ export declare const faqViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObj
|
|
|
2013
2017
|
mainType: string;
|
|
2014
2018
|
uri: string;
|
|
2015
2019
|
title: string;
|
|
2020
|
+
_url: string;
|
|
2016
2021
|
name: string;
|
|
2017
2022
|
Pseudo: string;
|
|
2018
2023
|
class: string;
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -17,9 +17,11 @@ export * from './assetReservation';
|
|
|
17
17
|
export * from './autocomplete';
|
|
18
18
|
export * from './bbb';
|
|
19
19
|
export * from './businessContact';
|
|
20
|
+
export * from './calendar';
|
|
20
21
|
export * from './comment';
|
|
21
22
|
export * from './diapazone';
|
|
22
23
|
export * from './drive';
|
|
24
|
+
export * from './externalApp';
|
|
23
25
|
export * from './faq';
|
|
24
26
|
export * from './file';
|
|
25
27
|
export * from './global';
|
|
@@ -29,6 +31,7 @@ export * from './jLand';
|
|
|
29
31
|
export * from './license';
|
|
30
32
|
export * from './mediaLibrary';
|
|
31
33
|
export * from './meeting';
|
|
34
|
+
export * from './module';
|
|
32
35
|
export * from './network';
|
|
33
36
|
export * from './pollSurvey';
|
|
34
37
|
export * from './questionAnswer';
|
|
@@ -555,12 +555,14 @@ export declare const mediaLibraryListSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
555
555
|
title: z.ZodString;
|
|
556
556
|
}>, {
|
|
557
557
|
Pseudo: z.ZodString;
|
|
558
|
+
_url: z.ZodString;
|
|
558
559
|
}>, "strip", z.ZodTypeAny, {
|
|
559
560
|
type: string;
|
|
560
561
|
id: string;
|
|
561
562
|
mainType: string;
|
|
562
563
|
uri: string;
|
|
563
564
|
title: string;
|
|
565
|
+
_url: string;
|
|
564
566
|
name: string;
|
|
565
567
|
Pseudo: string;
|
|
566
568
|
class: string;
|
|
@@ -574,6 +576,7 @@ export declare const mediaLibraryListSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
574
576
|
mainType: string;
|
|
575
577
|
uri: string;
|
|
576
578
|
title: string;
|
|
579
|
+
_url: string;
|
|
577
580
|
name: string;
|
|
578
581
|
Pseudo: string;
|
|
579
582
|
class: string;
|
|
@@ -662,6 +665,7 @@ export declare const mediaLibraryListSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
662
665
|
mainType: string;
|
|
663
666
|
uri: string;
|
|
664
667
|
title: string;
|
|
668
|
+
_url: string;
|
|
665
669
|
name: string;
|
|
666
670
|
Pseudo: string;
|
|
667
671
|
class: string;
|
|
@@ -791,6 +795,7 @@ export declare const mediaLibraryListSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
791
795
|
mainType: string;
|
|
792
796
|
uri: string;
|
|
793
797
|
title: string;
|
|
798
|
+
_url: string;
|
|
794
799
|
name: string;
|
|
795
800
|
Pseudo: string;
|
|
796
801
|
class: string;
|
|
@@ -570,6 +570,111 @@ export declare const jMeetingListSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
570
570
|
} & import("./widgets").WidgetQuickSurveyType)>[] | undefined;
|
|
571
571
|
}>;
|
|
572
572
|
export type jMeetingList = z.infer<typeof jMeetingListSchema>;
|
|
573
|
+
export declare const ensureIsMeetingList: (o: unknown) => o is {
|
|
574
|
+
type: string;
|
|
575
|
+
id: number;
|
|
576
|
+
mainType: string;
|
|
577
|
+
uri: string;
|
|
578
|
+
dateCreation: string;
|
|
579
|
+
dateModified: string;
|
|
580
|
+
title: string;
|
|
581
|
+
_url: string;
|
|
582
|
+
place: string;
|
|
583
|
+
_user: import("./objectBase").jObjectBase & {
|
|
584
|
+
title: string;
|
|
585
|
+
_url: string;
|
|
586
|
+
} & {
|
|
587
|
+
[key: string]: string | number | null;
|
|
588
|
+
level: 0 | 3 | 5 | 9;
|
|
589
|
+
dateCreation: string;
|
|
590
|
+
dateModified: string;
|
|
591
|
+
};
|
|
592
|
+
_right: import("./common").Rights;
|
|
593
|
+
dateStart: string;
|
|
594
|
+
dateEnd: string;
|
|
595
|
+
_audience: (import("./user").jUserLittle | {
|
|
596
|
+
type: string;
|
|
597
|
+
id: number;
|
|
598
|
+
mainType: string;
|
|
599
|
+
uri: string;
|
|
600
|
+
dateCreation: string;
|
|
601
|
+
dateModified: string;
|
|
602
|
+
title: string;
|
|
603
|
+
_url: string;
|
|
604
|
+
privacy: number;
|
|
605
|
+
category: number;
|
|
606
|
+
} | {
|
|
607
|
+
type: "folder" | "rootFolder";
|
|
608
|
+
id: number;
|
|
609
|
+
mainType: string;
|
|
610
|
+
uri: string;
|
|
611
|
+
title: string;
|
|
612
|
+
_url: string;
|
|
613
|
+
dateCreation?: string | undefined;
|
|
614
|
+
dateModified?: string | null | undefined;
|
|
615
|
+
folderColor?: string | undefined;
|
|
616
|
+
})[];
|
|
617
|
+
address: string;
|
|
618
|
+
noGestion: boolean;
|
|
619
|
+
description?: string | null | undefined;
|
|
620
|
+
image?: {
|
|
621
|
+
width: number;
|
|
622
|
+
height: number;
|
|
623
|
+
} | undefined;
|
|
624
|
+
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
625
|
+
layers?: string[] | undefined;
|
|
626
|
+
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
627
|
+
layers?: string[] | undefined;
|
|
628
|
+
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
629
|
+
layers?: string[] | undefined;
|
|
630
|
+
} & import("./widgets").WidgetArticleGalleryType) | ({
|
|
631
|
+
layers?: string[] | undefined;
|
|
632
|
+
} & import("./widgets").WidgetArticleImageType) | ({
|
|
633
|
+
layers?: string[] | undefined;
|
|
634
|
+
} & import("./widgets").WidgetArticleTitleType) | ({
|
|
635
|
+
layers?: string[] | undefined;
|
|
636
|
+
} & import("./widgets").WidgetArticleTextType) | ({
|
|
637
|
+
layers?: string[] | undefined;
|
|
638
|
+
} & import("./widgets").WidgetArticleSliderType) | ({
|
|
639
|
+
layers?: string[] | undefined;
|
|
640
|
+
} & import("./widgets").WidgetType<{
|
|
641
|
+
widgets?: import("./widgets").WidgetBaseType[] | undefined;
|
|
642
|
+
arr?: import("./widgets").WidgetCheckListContentArr[] | undefined;
|
|
643
|
+
css?: Record<string, string> | undefined;
|
|
644
|
+
edit?: boolean | undefined;
|
|
645
|
+
}>) | ({
|
|
646
|
+
layers?: string[] | undefined;
|
|
647
|
+
} & import("./widgets").WidgetDatasourceTableType) | ({
|
|
648
|
+
layers?: string[] | undefined;
|
|
649
|
+
} & {
|
|
650
|
+
name: import("./widgets").WidgetsName.ExcelDatasourceTable;
|
|
651
|
+
uniqid: string;
|
|
652
|
+
content: {
|
|
653
|
+
uri?: string | undefined;
|
|
654
|
+
limit?: number | boolean | undefined;
|
|
655
|
+
tableColumnsData?: {
|
|
656
|
+
name?: string | undefined;
|
|
657
|
+
label?: string | undefined;
|
|
658
|
+
isVisible?: boolean | undefined;
|
|
659
|
+
textEllipsis?: boolean | undefined;
|
|
660
|
+
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
661
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
662
|
+
}[] | undefined;
|
|
663
|
+
tableHeadColor?: string | undefined;
|
|
664
|
+
tableHeadTextColor?: string | undefined;
|
|
665
|
+
tableHeadIconColor?: string | undefined;
|
|
666
|
+
tableRowColor?: string | undefined;
|
|
667
|
+
tableRowTextColor?: string | undefined;
|
|
668
|
+
tableBorderRadius?: number | undefined;
|
|
669
|
+
tableSizedColumns?: boolean | undefined;
|
|
670
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
671
|
+
};
|
|
672
|
+
}) | ({
|
|
673
|
+
layers?: string[] | undefined;
|
|
674
|
+
} & import("./widgets").WidgetPresenceType) | ({
|
|
675
|
+
layers?: string[] | undefined;
|
|
676
|
+
} & import("./widgets").WidgetQuickSurveyType)>[] | undefined;
|
|
677
|
+
};
|
|
573
678
|
export declare const jMeetingViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
574
679
|
id: z.ZodType<number, z.ZodTypeDef, number>;
|
|
575
680
|
mainType: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AudienceAutocomplete } from './autocomplete';
|
|
2
|
+
import { ValueOf } from './utils';
|
|
3
|
+
export declare const moduleRestrictionMode: {
|
|
4
|
+
readonly all: 0;
|
|
5
|
+
readonly admin: 1;
|
|
6
|
+
readonly custom: 2;
|
|
7
|
+
};
|
|
8
|
+
export type ModuleRestrictionModeValues = ValueOf<typeof moduleRestrictionMode>;
|
|
9
|
+
export type ModuleConfiguration = {
|
|
10
|
+
moduleName: string;
|
|
11
|
+
active: boolean;
|
|
12
|
+
accessRight?: ModuleRestrictionModeValues;
|
|
13
|
+
accessRightSelector?: Array<AudienceAutocomplete>;
|
|
14
|
+
writeRight?: ModuleRestrictionModeValues;
|
|
15
|
+
writeRightSelector?: Array<AudienceAutocomplete>;
|
|
16
|
+
};
|
|
17
|
+
export type ModuleConfigurationFields = Omit<ModuleConfiguration, 'moduleName'>;
|