jamespot-user-api 1.0.147 → 1.0.149
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 +11 -11
- 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/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.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 +9 -9
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.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 +3 -3
- 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/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.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/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +12 -12
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/article/article.mock.d.ts +20 -2
- package/lib/src/apis/bookmark/bookmark.d.ts +1 -1
- package/lib/src/apis/taxonomy/taxonomy.d.ts +7 -7
- package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +7 -7
- package/lib/src/apis/taxonomy/types.d.ts +3 -81
- package/lib/src/types/faq.d.ts +3 -4
- package/lib/src/types/meeting.d.ts +13 -0
- package/lib/src/types/model.d.ts +1 -1
- package/lib/src/types/pollSurvey.d.ts +27 -0
- package/lib/src/types/quizz.d.ts +15 -0
- package/lib/src/types/search.d.ts +8 -2
- package/lib/src/types/socialEvent.d.ts +18 -0
- package/lib/src/types/support.d.ts +8 -0
- package/lib/src/types/surveyDate.d.ts +9 -0
- package/lib/src/types/utils.d.ts +6 -0
- package/lib/src/util/Test.d.ts +1 -1
- package/package.json +1 -1
- package/phpunitMock/articleGet-meeting-list.json +55 -0
- package/phpunitMock/articleGet-meeting-view.json +65 -0
- package/phpunitMock/articleGet-pollSurvey-list.json +62 -0
- package/phpunitMock/articleGet-pollSurvey-view.json +71 -0
- package/phpunitMock/articleGet-quizz-list.json +42 -0
- package/phpunitMock/articleGet-quizz-view.json +49 -0
- package/phpunitMock/articleGet-socialEvent-list.json +57 -0
- package/phpunitMock/articleGet-socialEvent-view.json +67 -0
- package/phpunitMock/articleGet-support-list.json +42 -0
- package/phpunitMock/articleGet-support-view.json +55 -0
- package/phpunitMock/articleGet-surveyDate-list.json +54 -0
- package/phpunitMock/articleGet-surveyDate-view.json +56 -0
- package/phpunitMock/autocompleteTaxonomy-default.json +2 -2
- package/phpunitMock/objectListTaxonomyConcept-default.json +20 -59
- package/phpunitMock/objectListTaxonomyHierarchyConcept-default.json +4 -3
- package/phpunitMock/taxonomyCreate-default.json +6 -35
- package/phpunitMock/taxonomyList-default.json +24 -247
- package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +2 -0
- package/documentation/interfaces/Taxonomy.html +0 -1
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import { ApiWrapper, BaseMessages, PagingResults, jArticleList, jArticleLittle, jArticleView, jArticleWidgetLittle, jFileLittle, ApiDefaultWrapper } from '../../types';
|
|
1
|
+
import { ApiWrapper, BaseMessages, PagingResults, jArticleExtendView, jArticleList, jArticleLittle, jArticleView, jArticleWidgetLittle, jFileLittle, ApiDefaultWrapper } from '../../types';
|
|
2
2
|
import { jCommentList } from '../../types/comment';
|
|
3
|
+
import { jMeetingList, jMeetingView } from '../../types/meeting';
|
|
4
|
+
import { jPollSurveyList, jPollSurveyView } from '../../types/pollSurvey';
|
|
5
|
+
import { jQuizzList, jQuizzView } from '../../types/quizz';
|
|
6
|
+
import { jSocialEventList, jSocialEventView } from '../../types/socialEvent';
|
|
7
|
+
import { jSupportList, jSupportView } from '../../types/support';
|
|
8
|
+
import { jSurveyDateList, jSurveyDateView } from '../../types/surveyDate';
|
|
3
9
|
export declare const articleGetMpArticleList: ApiWrapper<jArticleList, BaseMessages>;
|
|
4
10
|
export declare const articleCreateMpArticleLittle: ApiWrapper<Array<jArticleLittle>, BaseMessages>;
|
|
5
|
-
export declare const
|
|
11
|
+
export declare const articleGetMeetingList: ApiWrapper<jMeetingList>;
|
|
12
|
+
export declare const articleGetMeetingView: ApiWrapper<jMeetingView & jArticleExtendView>;
|
|
13
|
+
export declare const articleGetPollSurveyList: ApiWrapper<jPollSurveyList>;
|
|
14
|
+
export declare const articleGetPollSurveyView: ApiWrapper<jPollSurveyView & jArticleExtendView>;
|
|
15
|
+
export declare const articleGetQuizzList: ApiWrapper<jQuizzList>;
|
|
16
|
+
export declare const articleGetQuizzView: ApiWrapper<jQuizzView & jArticleExtendView>;
|
|
17
|
+
export declare const articleGetSocialEventList: ApiWrapper<jSocialEventList>;
|
|
18
|
+
export declare const articleGetSocialEventView: ApiWrapper<jSocialEventView & jArticleExtendView>;
|
|
19
|
+
export declare const articleGetSupportList: ApiWrapper<jSupportList>;
|
|
20
|
+
export declare const articleGetSupportView: ApiWrapper<jSupportView & jArticleExtendView>;
|
|
21
|
+
export declare const articleGetSurveyDateList: ApiWrapper<jSurveyDateList>;
|
|
22
|
+
export declare const articleGetSurveyDateView: ApiWrapper<jSurveyDateView & jArticleExtendView>;
|
|
23
|
+
export declare const articleUpdateMpArticleView: ApiWrapper<jArticleView & jArticleExtendView, BaseMessages>;
|
|
6
24
|
export declare const articleCountMpArticle: ApiWrapper<number>;
|
|
7
25
|
export declare const articleWithWidget: ApiWrapper<jArticleWidgetLittle>;
|
|
8
26
|
export declare const objectListJamespotArticleQueryList: ApiWrapper<PagingResults<jArticleLittle>>;
|
|
@@ -10,7 +10,7 @@ export interface ListFilterSpec {
|
|
|
10
10
|
export declare class JBookmarkApi extends JBaseApi {
|
|
11
11
|
getFormattedList<T extends keyof BookmarkTypes>(filterSpecs: ListFilterSpec, format: T): Promise<ApiWrapper<PagingResults<BookmarkTypes[T]>, import("../../types").BaseMessages>>;
|
|
12
12
|
addFormattedLink<T extends keyof BookmarkTypes>(targetId: number, targetType: string, format: T): Promise<ApiWrapper<BookmarkTypes[T], import("../../types").BaseMessages>>;
|
|
13
|
-
addBookmark(bookmark: Pick<BookmarkTypes[keyof BookmarkTypes], 'bookmarkLabel' | 'bookmarkMeta' | 'bookmarkUrl'>, format?: keyof BookmarkTypes): Promise<ApiWrapper<import("../../types").
|
|
13
|
+
addBookmark(bookmark: Pick<BookmarkTypes[keyof BookmarkTypes], 'bookmarkLabel' | 'bookmarkMeta' | 'bookmarkUrl'>, format?: keyof BookmarkTypes): Promise<ApiWrapper<import("../../types").BookmarkList<import("../../types").jObjectLittle> | import("../../types").BookmarkRawList<import("../../types").jObjectLittle | import("../../types").jUserLittle>, BaseMessagesOne>>;
|
|
14
14
|
delete(bookmarkId: number): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
15
15
|
rename(bookmarkID: number, bookmarkLabel: string, bookmarkUrl?: string): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
16
16
|
move(bookmarkID: number, bookmarkReference: number, position: 'before' | 'after'): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, BaseMessagesOne, PagingResults } from '../../types';
|
|
3
|
-
import {
|
|
2
|
+
import { ApiWrapper, BaseMessagesOne, PagingResults, jObjectAutocomplete } from '../../types';
|
|
3
|
+
import { AutocompleteHierarchy, AutoCompleteList, jTaxonomyLittle, TaxonomyCreate } from './types';
|
|
4
4
|
export declare class JTaxonomyApi extends JBaseApi {
|
|
5
5
|
/**
|
|
6
6
|
* list all taxonomies (no pagination)
|
|
7
7
|
*/
|
|
8
|
-
list(): Promise<
|
|
9
|
-
create(taxonomy: TaxonomyCreate): Promise<ApiWrapper<
|
|
8
|
+
list(): Promise<jTaxonomyLittle[]>;
|
|
9
|
+
create<T = jTaxonomyLittle>({ format, ...taxonomy }: TaxonomyCreate): Promise<ApiWrapper<T, BaseMessagesOne>>;
|
|
10
10
|
/**
|
|
11
11
|
* autocomplete return a list of tags
|
|
12
12
|
* @param idTaxonomy taxonomy id
|
|
13
13
|
* @param query search characters
|
|
14
14
|
*/
|
|
15
|
-
autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<
|
|
16
|
-
autocompleteList(payload: AutoCompleteList): Promise<ApiWrapper<PagingResults<
|
|
17
|
-
autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<
|
|
15
|
+
autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<jObjectAutocomplete[], import("../../types").BaseMessages>>;
|
|
16
|
+
autocompleteList<T = jObjectAutocomplete>({ format, ...payload }: AutoCompleteList): Promise<ApiWrapper<PagingResults<T>, import("../../types").BaseMessages>>;
|
|
17
|
+
autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<jObjectAutocomplete>, import("../../types").BaseMessages>>;
|
|
18
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ApiWrapper, BaseMessages, PagingResults } from '../../types';
|
|
3
|
-
export declare const taxonomyList: ApiWrapper<
|
|
1
|
+
import { TaxonomyCreate, jTaxonomyLittle } from './types';
|
|
2
|
+
import { ApiWrapper, jObjectAutocomplete, BaseMessages, PagingResults } from '../../types';
|
|
3
|
+
export declare const taxonomyList: ApiWrapper<jTaxonomyLittle[]>;
|
|
4
4
|
export declare const taxonomyListError: ApiWrapper<undefined, BaseMessages>;
|
|
5
5
|
export declare const taxonomyCreateParam: TaxonomyCreate;
|
|
6
|
-
export declare const taxonomyCreateResponse: ApiWrapper<
|
|
7
|
-
export declare const taxonomyAutocomplete: ApiWrapper<
|
|
8
|
-
export declare const conceptAutocomplete: ApiWrapper<PagingResults<
|
|
9
|
-
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<
|
|
6
|
+
export declare const taxonomyCreateResponse: ApiWrapper<jTaxonomyLittle, BaseMessages>;
|
|
7
|
+
export declare const taxonomyAutocomplete: ApiWrapper<jObjectAutocomplete[]>;
|
|
8
|
+
export declare const conceptAutocomplete: ApiWrapper<PagingResults<jObjectAutocomplete>>;
|
|
9
|
+
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<jObjectAutocomplete>>;
|
|
@@ -1,49 +1,10 @@
|
|
|
1
|
-
import { Filter,
|
|
2
|
-
export
|
|
3
|
-
id: number;
|
|
4
|
-
type: string;
|
|
5
|
-
title: string;
|
|
6
|
-
dateCreation?: string;
|
|
7
|
-
mainTypes?: string[];
|
|
8
|
-
types?: null;
|
|
9
|
-
mandatory?: null;
|
|
10
|
-
public?: null;
|
|
11
|
-
wallFilter?: null;
|
|
12
|
-
jamespot?: string;
|
|
13
|
-
uri: string;
|
|
14
|
-
mainType?: string;
|
|
15
|
-
_cssColor?: string;
|
|
16
|
-
_cssClass?: string;
|
|
17
|
-
_right?: {
|
|
18
|
-
create: boolean;
|
|
19
|
-
read: boolean;
|
|
20
|
-
publish: boolean;
|
|
21
|
-
administrate: boolean;
|
|
22
|
-
update: boolean;
|
|
23
|
-
delete: boolean;
|
|
24
|
-
comment: boolean;
|
|
25
|
-
member: boolean;
|
|
26
|
-
};
|
|
27
|
-
_values?: {
|
|
28
|
-
type: string;
|
|
29
|
-
title: string;
|
|
30
|
-
dateCreation: string;
|
|
31
|
-
mainTypes?: string | null;
|
|
32
|
-
types: string[] | null;
|
|
33
|
-
mandatory: null;
|
|
34
|
-
public: null;
|
|
35
|
-
wallFilter: null;
|
|
36
|
-
jamespot: string | null;
|
|
37
|
-
};
|
|
38
|
-
_timezone?: {
|
|
39
|
-
dateCreation: string;
|
|
40
|
-
};
|
|
41
|
-
_url?: string;
|
|
42
|
-
}
|
|
1
|
+
import { Filter, jObjectLittle } from '../../types';
|
|
2
|
+
export type jTaxonomyLittle = jObjectLittle;
|
|
43
3
|
export interface TaxonomyCreate {
|
|
44
4
|
type: 'taxonomyClose' | 'taxonomyOpen';
|
|
45
5
|
title: string;
|
|
46
6
|
concepts: Array<string>;
|
|
7
|
+
format?: string;
|
|
47
8
|
}
|
|
48
9
|
export type AutoCompleteList = {
|
|
49
10
|
query?: string;
|
|
@@ -74,42 +35,3 @@ export type AutocompleteHierarchy = {
|
|
|
74
35
|
uriTaxonomy: string;
|
|
75
36
|
uriConcept?: string;
|
|
76
37
|
};
|
|
77
|
-
export type AutoCompleteConcept = {
|
|
78
|
-
id: string;
|
|
79
|
-
uri: string;
|
|
80
|
-
shortUri: string;
|
|
81
|
-
title: string;
|
|
82
|
-
name: string;
|
|
83
|
-
mainType: string;
|
|
84
|
-
type: string;
|
|
85
|
-
label: string;
|
|
86
|
-
cssClass: string;
|
|
87
|
-
cssColor: string;
|
|
88
|
-
class: string;
|
|
89
|
-
};
|
|
90
|
-
export type Concept = {
|
|
91
|
-
id: number;
|
|
92
|
-
uri: string;
|
|
93
|
-
title: string;
|
|
94
|
-
type: string;
|
|
95
|
-
idTaxonomy: string;
|
|
96
|
-
dateCreation: string;
|
|
97
|
-
terms: string[];
|
|
98
|
-
_label: string;
|
|
99
|
-
_count: string;
|
|
100
|
-
mainType: string;
|
|
101
|
-
_cssClass: string;
|
|
102
|
-
_cssColor: string;
|
|
103
|
-
_right: Rights;
|
|
104
|
-
_values: {
|
|
105
|
-
type: string;
|
|
106
|
-
title: string;
|
|
107
|
-
idTaxonomy: string;
|
|
108
|
-
dateCreation: string;
|
|
109
|
-
terms: string | null;
|
|
110
|
-
};
|
|
111
|
-
_timezone: {
|
|
112
|
-
dateCreation: string;
|
|
113
|
-
};
|
|
114
|
-
_url: string;
|
|
115
|
-
};
|
package/lib/src/types/faq.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Format, jArticleList, jArticleLittle, MaybeWithToken } from './utils';
|
|
2
|
-
import { AutoCompleteConcept } from '../apis';
|
|
3
2
|
import { ImageSize } from './file';
|
|
4
|
-
import { AudienceAutocomplete } from './autocomplete';
|
|
3
|
+
import { AudienceAutocomplete, jObjectAutocomplete } from './autocomplete';
|
|
5
4
|
import { ArticleCreation } from './article';
|
|
6
5
|
export type FaqView = FaqList & {
|
|
7
6
|
_audience: AudienceAutocomplete[];
|
|
8
|
-
tags?:
|
|
7
|
+
tags?: jObjectAutocomplete[];
|
|
9
8
|
isWeb: boolean;
|
|
10
9
|
faqContent?: {
|
|
11
10
|
title: string;
|
|
@@ -25,7 +24,7 @@ export type ExtendedFaqCategory<T extends FaqList> = T & {
|
|
|
25
24
|
};
|
|
26
25
|
export type FaqItemView = Omit<FaqItemList, 'hierarchy'> & {
|
|
27
26
|
faqResponse: string;
|
|
28
|
-
tags?:
|
|
27
|
+
tags?: jObjectAutocomplete[];
|
|
29
28
|
uriCategory: jArticleLittle[];
|
|
30
29
|
themeId: string;
|
|
31
30
|
_nbAttachedFiles?: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jSocialEventList } from './socialEvent';
|
|
2
|
+
import { jArticleView } from './utils';
|
|
3
|
+
export type jMeetingList = jSocialEventList & {};
|
|
4
|
+
export type jMeetingView = jArticleView & jMeetingList & {
|
|
5
|
+
allDay: null;
|
|
6
|
+
agenda: string;
|
|
7
|
+
useQrcode: null;
|
|
8
|
+
textColor: string;
|
|
9
|
+
bgColor: string;
|
|
10
|
+
report: string;
|
|
11
|
+
reportFile: [];
|
|
12
|
+
urlGestion: null;
|
|
13
|
+
};
|
package/lib/src/types/model.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export type WidgetUri = {
|
|
|
108
108
|
type: string;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetFile;
|
|
111
|
+
export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetTel | WidgetPlace | WidgetColor | WidgetLink | WidgetFile;
|
|
112
112
|
export type WidgetsValue = WidgetActiveValue | WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
|
|
113
113
|
export type FieldConfiguration<T extends string = string> = {
|
|
114
114
|
label: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jArticleList, jArticleView } from './utils';
|
|
2
|
+
export type jPollSurveyList = jArticleList & {
|
|
3
|
+
anonymousResponse: null;
|
|
4
|
+
multipleResponse: number;
|
|
5
|
+
publicResults: null;
|
|
6
|
+
pollProgression: {
|
|
7
|
+
colors: Record<string, string>;
|
|
8
|
+
maxRespondentsValue: number;
|
|
9
|
+
countRespondentsValue: number;
|
|
10
|
+
};
|
|
11
|
+
pollResponseShowProgression: number;
|
|
12
|
+
dateEnd: string;
|
|
13
|
+
status: {
|
|
14
|
+
name: string;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type jPollSurveyView = jArticleView & jPollSurveyList & {
|
|
19
|
+
pollContent: null;
|
|
20
|
+
pollLinks: null;
|
|
21
|
+
pollForceClose: null;
|
|
22
|
+
pollResponseUserVisibility: null;
|
|
23
|
+
pollResponseAuthorVisibility: null;
|
|
24
|
+
pollResponseShowRespondent: null;
|
|
25
|
+
pollBanner: [];
|
|
26
|
+
pollMessage: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jArticleList, jArticleView } from './utils';
|
|
2
|
+
export type jQuizzList = jArticleList & {
|
|
3
|
+
quizzDescription: string | null;
|
|
4
|
+
quizzClosingDate: string | null;
|
|
5
|
+
dateStart: string | null;
|
|
6
|
+
dateEnd: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type jQuizzView = jArticleView & jQuizzList & {
|
|
9
|
+
quizzInvitation: null;
|
|
10
|
+
quizzFormSpec: string;
|
|
11
|
+
quizzRandom: null;
|
|
12
|
+
quizzHideResponses: null;
|
|
13
|
+
quizzStatus: null;
|
|
14
|
+
quizzPublicationDate: string | null;
|
|
15
|
+
};
|
|
@@ -14,11 +14,16 @@ export interface SearchCategoryValue {
|
|
|
14
14
|
count: number;
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
17
|
+
export type FacetMode = 'AND' | 'OR';
|
|
17
18
|
export interface SearchFacetModel {
|
|
18
19
|
facetType: string;
|
|
19
|
-
facetOptions: any
|
|
20
|
+
facetOptions: any | {
|
|
21
|
+
uriTaxonomy: string;
|
|
22
|
+
};
|
|
23
|
+
facetMode?: FacetMode;
|
|
20
24
|
field: string;
|
|
21
25
|
title: string;
|
|
26
|
+
description?: string;
|
|
22
27
|
category?: SearchCategoryModel['id'];
|
|
23
28
|
}
|
|
24
29
|
export interface SearchFacetValueModel {
|
|
@@ -40,8 +45,9 @@ export type SearchFacetValues = {
|
|
|
40
45
|
*/
|
|
41
46
|
export interface SearchQueryFilterModel {
|
|
42
47
|
field: string;
|
|
43
|
-
value: string;
|
|
48
|
+
value: string | string[];
|
|
44
49
|
exclude?: boolean;
|
|
50
|
+
or?: boolean;
|
|
45
51
|
}
|
|
46
52
|
/**
|
|
47
53
|
* Used in search query to specify a filter
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jArticleList, jArticleView } from './utils';
|
|
2
|
+
export type jSocialEventList = jArticleList & {
|
|
3
|
+
place: string;
|
|
4
|
+
address: string;
|
|
5
|
+
dateStart: string;
|
|
6
|
+
dateEnd: string;
|
|
7
|
+
noGestion: null;
|
|
8
|
+
};
|
|
9
|
+
export type jSocialEventView = jArticleView & jSocialEventList & {
|
|
10
|
+
allDay: null;
|
|
11
|
+
useQrcode: null;
|
|
12
|
+
textColor: string;
|
|
13
|
+
bgColor: string;
|
|
14
|
+
socialEventUseCeiling: null;
|
|
15
|
+
socialEventCeiling: null;
|
|
16
|
+
hideFromCalendar: null;
|
|
17
|
+
urlGestion: null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jUserLittle } from './user';
|
|
2
|
+
import { jArticleList, jArticleView } from './utils';
|
|
3
|
+
export type jSupportList = jArticleList & {
|
|
4
|
+
supportStatus: number | string | null;
|
|
5
|
+
supportType: number | string | null;
|
|
6
|
+
supportOwner: jUserLittle[];
|
|
7
|
+
};
|
|
8
|
+
export type jSupportView = jArticleView & jSupportList & {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jArticleList, jArticleLittle, jArticleView } from './utils';
|
|
2
|
+
export type jSurveyDateList = jArticleList & {
|
|
3
|
+
dates: string[];
|
|
4
|
+
dateStart: string | null;
|
|
5
|
+
dateEnd: string;
|
|
6
|
+
};
|
|
7
|
+
export type jSurveyDateView = jArticleView & jSurveyDateList & {
|
|
8
|
+
surveyObjectLink: jArticleLittle[];
|
|
9
|
+
};
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ImageSize } from './file';
|
|
2
2
|
import { GroupLittle } from './group';
|
|
3
3
|
import { jUserLittle } from './user';
|
|
4
|
+
import { WidgetWrapperProps } from './widgets';
|
|
4
5
|
/**
|
|
5
6
|
* Ease usage in IDE by decomposing complex types
|
|
6
7
|
* Decompose combined types into simple object types
|
|
@@ -103,8 +104,13 @@ export type jArticleList = jArticleLittle & {
|
|
|
103
104
|
_right: Rights;
|
|
104
105
|
_audience: Audience[];
|
|
105
106
|
image?: ImageSize;
|
|
107
|
+
articleWidgets?: WidgetWrapperProps[];
|
|
106
108
|
};
|
|
107
109
|
export type jArticleView = jArticleList & {};
|
|
110
|
+
export type jArticleExtendView = {
|
|
111
|
+
processContext?: null;
|
|
112
|
+
uiObjectLink?: jObjectLittle[];
|
|
113
|
+
};
|
|
108
114
|
export type Order = {
|
|
109
115
|
name: string;
|
|
110
116
|
sort: 'ASC' | 'DESC';
|
package/lib/src/util/Test.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export declare const arrayRights: ({
|
|
|
116
116
|
t: string;
|
|
117
117
|
})[];
|
|
118
118
|
export declare const fetchMock: <T>(data: T) => jest.Mock<Promise<FetchResponseType<T>>, []>;
|
|
119
|
-
export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T) => void;
|
|
119
|
+
export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T, excludeFields?: string[]) => void;
|
|
120
120
|
export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null) => void;
|
|
121
121
|
export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
|
|
122
122
|
export declare const validateObject: <T extends {
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 432,
|
|
8
|
+
"mainType": "article",
|
|
9
|
+
"type": "meeting",
|
|
10
|
+
"uri": "meeting/432",
|
|
11
|
+
"dateCreation": "2024-01-26 11:03:59",
|
|
12
|
+
"dateModified": "2024-01-26 11:03:59",
|
|
13
|
+
"title": "Test meeting notifications (live - 1706263439)",
|
|
14
|
+
"_url": "/article/432",
|
|
15
|
+
"_right": {
|
|
16
|
+
"create": true,
|
|
17
|
+
"read": true,
|
|
18
|
+
"publish": false,
|
|
19
|
+
"administrate": true,
|
|
20
|
+
"update": true,
|
|
21
|
+
"delete": true,
|
|
22
|
+
"comment": true,
|
|
23
|
+
"member": true
|
|
24
|
+
},
|
|
25
|
+
"_user": {
|
|
26
|
+
"id": 1,
|
|
27
|
+
"mainType": "user",
|
|
28
|
+
"type": "user",
|
|
29
|
+
"uri": "user/1",
|
|
30
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
31
|
+
"dateModified": "2024-01-25 10:21:28",
|
|
32
|
+
"title": "AdminJenkins",
|
|
33
|
+
"_url": "/user/1",
|
|
34
|
+
"level": 9
|
|
35
|
+
},
|
|
36
|
+
"_audience": [
|
|
37
|
+
{
|
|
38
|
+
"id": 6,
|
|
39
|
+
"mainType": "user",
|
|
40
|
+
"type": "user",
|
|
41
|
+
"uri": "user/6",
|
|
42
|
+
"dateCreation": "2019-07-09 15:49:06",
|
|
43
|
+
"dateModified": "2024-01-25 10:23:18",
|
|
44
|
+
"title": "User1",
|
|
45
|
+
"_url": "/user/6",
|
|
46
|
+
"level": 5
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"place": "",
|
|
50
|
+
"address": "",
|
|
51
|
+
"dateStart": "2024-01-26 11:03:58",
|
|
52
|
+
"dateEnd": "2024-01-26 14:03:58",
|
|
53
|
+
"noGestion": null
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 226,
|
|
8
|
+
"mainType": "article",
|
|
9
|
+
"type": "meeting",
|
|
10
|
+
"uri": "meeting/226",
|
|
11
|
+
"dateCreation": "2024-04-05 16:40:05",
|
|
12
|
+
"dateModified": "2024-04-05 16:40:05",
|
|
13
|
+
"title": "Test meeting notifications (live - 1712328005)",
|
|
14
|
+
"_url": "/article/226",
|
|
15
|
+
"_right": {
|
|
16
|
+
"create": true,
|
|
17
|
+
"read": true,
|
|
18
|
+
"publish": false,
|
|
19
|
+
"administrate": true,
|
|
20
|
+
"update": true,
|
|
21
|
+
"delete": true,
|
|
22
|
+
"comment": true,
|
|
23
|
+
"member": true
|
|
24
|
+
},
|
|
25
|
+
"_user": {
|
|
26
|
+
"id": 1,
|
|
27
|
+
"mainType": "user",
|
|
28
|
+
"type": "user",
|
|
29
|
+
"uri": "user/1",
|
|
30
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
31
|
+
"dateModified": "2019-07-19 09:39:23",
|
|
32
|
+
"title": "AdminJenkins",
|
|
33
|
+
"_url": "/user/1",
|
|
34
|
+
"level": 9
|
|
35
|
+
},
|
|
36
|
+
"_audience": [
|
|
37
|
+
{
|
|
38
|
+
"id": 6,
|
|
39
|
+
"mainType": "user",
|
|
40
|
+
"type": "user",
|
|
41
|
+
"uri": "user/6",
|
|
42
|
+
"dateCreation": "2019-07-09 15:49:06",
|
|
43
|
+
"dateModified": "2019-07-09 15:51:35",
|
|
44
|
+
"title": "User1",
|
|
45
|
+
"_url": "/user/6",
|
|
46
|
+
"level": 5
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"processContext": null,
|
|
50
|
+
"place": "",
|
|
51
|
+
"address": "",
|
|
52
|
+
"dateStart": "2024-04-05 16:40:05",
|
|
53
|
+
"dateEnd": "2024-04-05 19:40:05",
|
|
54
|
+
"allDay": null,
|
|
55
|
+
"agenda": "",
|
|
56
|
+
"noGestion": null,
|
|
57
|
+
"urlGestion": null,
|
|
58
|
+
"useQrcode": null,
|
|
59
|
+
"textColor": "",
|
|
60
|
+
"bgColor": "",
|
|
61
|
+
"report": "",
|
|
62
|
+
"reportFile": [],
|
|
63
|
+
"uiObjectLink": []
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 25,
|
|
8
|
+
"mainType": "article",
|
|
9
|
+
"type": "pollSurvey",
|
|
10
|
+
"uri": "pollSurvey/25",
|
|
11
|
+
"dateCreation": "2024-01-26 11:30:00",
|
|
12
|
+
"dateModified": "2024-01-26 11:30:00",
|
|
13
|
+
"title": "pending survey poll title",
|
|
14
|
+
"_url": "/article/25",
|
|
15
|
+
"_right": {
|
|
16
|
+
"create": true,
|
|
17
|
+
"read": true,
|
|
18
|
+
"publish": false,
|
|
19
|
+
"administrate": true,
|
|
20
|
+
"update": true,
|
|
21
|
+
"delete": true,
|
|
22
|
+
"comment": false,
|
|
23
|
+
"member": true
|
|
24
|
+
},
|
|
25
|
+
"description": "<div class='content-html'></div>",
|
|
26
|
+
"_user": {
|
|
27
|
+
"id": 4,
|
|
28
|
+
"mainType": "user",
|
|
29
|
+
"type": "user",
|
|
30
|
+
"uri": "user/4",
|
|
31
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
32
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
33
|
+
"title": "Admin1",
|
|
34
|
+
"_url": "/user/4",
|
|
35
|
+
"level": 9
|
|
36
|
+
},
|
|
37
|
+
"_audience": [
|
|
38
|
+
{
|
|
39
|
+
"id": 4,
|
|
40
|
+
"mainType": "user",
|
|
41
|
+
"type": "user",
|
|
42
|
+
"uri": "user/4",
|
|
43
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
44
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
45
|
+
"title": "Admin1",
|
|
46
|
+
"_url": "/user/4",
|
|
47
|
+
"level": 9
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"anonymousResponse": null,
|
|
51
|
+
"multipleResponse": 1,
|
|
52
|
+
"publicResults": null,
|
|
53
|
+
"pollProgression": {
|
|
54
|
+
"colors": { "0-49": "#FFC670", "50-99": "#71ABFF", "100": "#50D0BC" },
|
|
55
|
+
"maxRespondentsValue": 1,
|
|
56
|
+
"countRespondentsValue": 0
|
|
57
|
+
},
|
|
58
|
+
"pollResponseShowProgression": 0,
|
|
59
|
+
"dateEnd": "2024-01-27 11:30:00",
|
|
60
|
+
"status": { "name": "Se termine dans 0 jour(s)", "value": 0 }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 25,
|
|
8
|
+
"mainType": "article",
|
|
9
|
+
"type": "pollSurvey",
|
|
10
|
+
"uri": "pollSurvey/25",
|
|
11
|
+
"dateCreation": "2024-01-26 11:30:00",
|
|
12
|
+
"dateModified": "2024-01-26 11:30:00",
|
|
13
|
+
"title": "pending survey poll title",
|
|
14
|
+
"_url": "/article/25",
|
|
15
|
+
"_right": {
|
|
16
|
+
"create": true,
|
|
17
|
+
"read": true,
|
|
18
|
+
"publish": false,
|
|
19
|
+
"administrate": true,
|
|
20
|
+
"update": true,
|
|
21
|
+
"delete": true,
|
|
22
|
+
"comment": false,
|
|
23
|
+
"member": true
|
|
24
|
+
},
|
|
25
|
+
"description": "<div class='content-html'></div>",
|
|
26
|
+
"_user": {
|
|
27
|
+
"id": 4,
|
|
28
|
+
"mainType": "user",
|
|
29
|
+
"type": "user",
|
|
30
|
+
"uri": "user/4",
|
|
31
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
32
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
33
|
+
"title": "Admin1",
|
|
34
|
+
"_url": "/user/4",
|
|
35
|
+
"level": 9
|
|
36
|
+
},
|
|
37
|
+
"_audience": [
|
|
38
|
+
{
|
|
39
|
+
"id": 4,
|
|
40
|
+
"mainType": "user",
|
|
41
|
+
"type": "user",
|
|
42
|
+
"uri": "user/4",
|
|
43
|
+
"dateCreation": "2019-07-09 15:48:26",
|
|
44
|
+
"dateModified": "2019-07-09 15:51:24",
|
|
45
|
+
"title": "Admin1",
|
|
46
|
+
"_url": "/user/4",
|
|
47
|
+
"level": 9
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"anonymousResponse": null,
|
|
51
|
+
"multipleResponse": 1,
|
|
52
|
+
"publicResults": null,
|
|
53
|
+
"pollProgression": {
|
|
54
|
+
"colors": { "0-49": "#FFC670", "50-99": "#71ABFF", "100": "#50D0BC" },
|
|
55
|
+
"maxRespondentsValue": 1,
|
|
56
|
+
"countRespondentsValue": 0
|
|
57
|
+
},
|
|
58
|
+
"pollResponseShowProgression": 0,
|
|
59
|
+
"dateEnd": "2024-01-27 11:30:00",
|
|
60
|
+
"status": { "name": "Se termine dans 0 jour(s)", "value": 0 },
|
|
61
|
+
"processContext": null,
|
|
62
|
+
"pollContent": null,
|
|
63
|
+
"pollLinks": null,
|
|
64
|
+
"pollForceClose": null,
|
|
65
|
+
"pollResponseUserVisibility": null,
|
|
66
|
+
"pollResponseAuthorVisibility": null,
|
|
67
|
+
"pollResponseShowRespondent": null,
|
|
68
|
+
"pollBanner": [],
|
|
69
|
+
"pollMessage": ""
|
|
70
|
+
}
|
|
71
|
+
}
|