jamespot-user-api 1.0.146 → 1.0.147
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 +10 -10
- 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 +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/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/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +13 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/animations/animations.d.ts +7 -11
- package/lib/src/apis/animations/animations.mock.d.ts +8 -3
- package/lib/src/apis/drive/drive.d.ts +1 -1
- package/lib/src/apis/group/group.d.ts +11 -10
- package/lib/src/apis/group/group.mock.d.ts +2 -1
- package/lib/src/types/animations.d.ts +8 -0
- package/lib/src/types/drive.d.ts +1 -0
- package/lib/src/types/group.d.ts +11 -1
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/realtime.d.ts +10 -1
- package/lib/src/types/widgets.d.ts +22 -2
- package/lib/src/util/file.d.ts +1 -1
- package/package.json +1 -1
- package/phpunitMock/animationsDeleteAnimation-default.json +1 -0
- package/phpunitMock/animationsGetAnimationActive-default.json +1 -0
- package/phpunitMock/animationsGetConfiguration-default.json +2 -2
- package/phpunitMock/animationsGetConfiguration-get-animation-without-me-in.json +1 -0
- package/phpunitMock/animationsGetConfigurationApp-default.json +13 -0
- package/phpunitMock/animationsGetConfigurationApp-without-me-in.json +13 -0
- package/phpunitMock/animationsSaveConfiguration-default.json +13 -1
- package/phpunitMock/animationsToggleAnimationActive-default.json +7 -0
- package/phpunitMock/objectListJamespotSpotQueryList-raw-list.json +51 -0
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper } from '../../types';
|
|
3
|
-
export type AnimationVariant = 'Olympics' | 'Maythefourth' | 'Spring' | 'MusicFestival' | 'EasterEggs' | 'CustomAnimation';
|
|
4
|
-
export type AnimationConfigurationType = {
|
|
5
|
-
name: AnimationVariant;
|
|
6
|
-
activeClickEffect: number;
|
|
7
|
-
activeDecor: number;
|
|
8
|
-
auto: number;
|
|
9
|
-
audience: string[];
|
|
10
|
-
};
|
|
2
|
+
import { AnimationConfigurationType, ApiWrapper } from '../../types';
|
|
11
3
|
export declare class JAnimationsApi extends JBaseApi {
|
|
12
|
-
SaveAnimationConfiguration(animation: Object
|
|
13
|
-
|
|
4
|
+
SaveAnimationConfiguration(animation: Object): Promise<ApiWrapper<AnimationConfigurationType>>;
|
|
5
|
+
DeleteAnimation(): Promise<ApiWrapper<boolean>>;
|
|
6
|
+
GetCurrentAnimation(): Promise<ApiWrapper<AnimationConfigurationType | null>>;
|
|
7
|
+
GetCurrentAnimationApp(): Promise<ApiWrapper<AnimationConfigurationType | null>>;
|
|
8
|
+
ToggleAnimationActive(): Promise<ApiWrapper<boolean>>;
|
|
9
|
+
GetAnimationActive(): Promise<ApiWrapper<boolean>>;
|
|
14
10
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { ApiWrapper } from '../../types';
|
|
2
|
-
|
|
3
|
-
export declare const animationsSaveConfiguration: ApiWrapper<boolean>;
|
|
1
|
+
import { AnimationConfigurationType, ApiWrapper } from '../../types';
|
|
2
|
+
export declare const animationsSaveConfiguration: ApiWrapper<AnimationConfigurationType>;
|
|
4
3
|
export declare const animationsGetConfiguration: ApiWrapper<AnimationConfigurationType>;
|
|
4
|
+
export declare const animationsGetConfigurationWithoutMe: ApiWrapper<null>;
|
|
5
|
+
export declare const animationsDeleteCurrentAnimations: ApiWrapper<boolean>;
|
|
6
|
+
export declare const animationsGetConfigurationApp: ApiWrapper<AnimationConfigurationType>;
|
|
7
|
+
export declare const animationsGetConfigurationAppWithoutMeIn: ApiWrapper<AnimationConfigurationType>;
|
|
8
|
+
export declare const animationsGetAnimationActive: ApiWrapper<boolean>;
|
|
9
|
+
export declare const animationsToggleAnimationActive: ApiWrapper<boolean>;
|
|
@@ -10,7 +10,7 @@ export declare class JDriveApi extends JBaseApi {
|
|
|
10
10
|
* Microsoft graph only
|
|
11
11
|
* @returns
|
|
12
12
|
*/
|
|
13
|
-
groups(): Promise<ApiWrapper<MSGroupEntity[]>>;
|
|
13
|
+
groups(query?: string, filter?: string): Promise<ApiWrapper<MSGroupEntity[]>>;
|
|
14
14
|
/**
|
|
15
15
|
* Microsoft graph only
|
|
16
16
|
* @returns
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Category, CreateGroup, GroupList, GroupProperties, GroupUserLevel, GroupView, GroupWidget, ResetNotificationConfiguration, UpdateGroup } from '../../types/group';
|
|
1
|
+
import { Category, CreateGroup, GroupList, GroupListConfig, GroupProperties, GroupUserLevel, GroupView, GroupWidget, ResetNotificationConfiguration, UpdateGroup } from '../../types/group';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
|
-
import { ApiReturn, Format, PagingResults, jObjectLittle, jSpotAutocomplete, jUserLittle } from '../../types';
|
|
3
|
+
import { ApiReturn, ApiWrapper, Format, PagingResults, jObjectLittle, jSpotAutocomplete, jUserLittle } from '../../types';
|
|
4
4
|
export declare class JGroupApi extends JBaseApi {
|
|
5
5
|
/**
|
|
6
6
|
* autocomplete return a list of groups
|
|
@@ -13,36 +13,36 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
13
13
|
* @param format return format
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<
|
|
16
|
+
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, jObjectLittle>, import("../../types").BaseMessages>>;
|
|
17
17
|
/**
|
|
18
18
|
* Update a group
|
|
19
19
|
* @param group group to update. The uri is mandatory and identify the group to update
|
|
20
20
|
* @param format return format
|
|
21
21
|
* @returns
|
|
22
22
|
*/
|
|
23
|
-
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<
|
|
23
|
+
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
24
24
|
/**
|
|
25
25
|
* Get a spot
|
|
26
26
|
* @param idSpot
|
|
27
27
|
* @param format
|
|
28
28
|
* @returns
|
|
29
29
|
*/
|
|
30
|
-
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<
|
|
30
|
+
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
31
31
|
/**
|
|
32
32
|
* Get the properties of a group that are not within the model
|
|
33
33
|
* @param idSpot
|
|
34
34
|
* @returns
|
|
35
35
|
*/
|
|
36
|
-
getProperties(idSpot: number | string): Promise<
|
|
36
|
+
getProperties(idSpot: number | string): Promise<ApiWrapper<GroupProperties, import("../../types").BaseMessages>>;
|
|
37
37
|
/**
|
|
38
38
|
* Get the available applications that can be added to a group
|
|
39
39
|
*/
|
|
40
|
-
getApplications(): Promise<
|
|
40
|
+
getApplications(): Promise<ApiWrapper<Record<string, GroupWidget>, import("../../types").BaseMessages>>;
|
|
41
41
|
/**
|
|
42
42
|
* Get the available group categories
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
getCategories(): Promise<
|
|
45
|
+
getCategories(): Promise<ApiWrapper<Category[], import("../../types").BaseMessages>>;
|
|
46
46
|
/**
|
|
47
47
|
* Get the members of a group
|
|
48
48
|
* @param idSpot spot id
|
|
@@ -51,16 +51,17 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
51
51
|
* @param page page number
|
|
52
52
|
* @return array of User
|
|
53
53
|
*/
|
|
54
|
-
getObjectListJamespotSpotMembers(idSpot: number | string, query?: string, limit?: number, page?: number): Promise<
|
|
54
|
+
getObjectListJamespotSpotMembers(idSpot: number | string, query?: string, limit?: number, page?: number): Promise<ApiWrapper<PagingResults<{
|
|
55
55
|
level: GroupUserLevel;
|
|
56
56
|
user: jUserLittle;
|
|
57
57
|
}>, import("../../types").BaseMessages>>;
|
|
58
|
+
list<T extends GroupList = GroupList>(config: GroupListConfig): Promise<ApiWrapper<PagingResults<T>>>;
|
|
58
59
|
/**
|
|
59
60
|
* Reset the notifications configuration for all users of the group
|
|
60
61
|
* @param config configuration
|
|
61
62
|
* @returns
|
|
62
63
|
*/
|
|
63
|
-
resetNotifications(config: ResetNotificationConfiguration): Promise<
|
|
64
|
+
resetNotifications(config: ResetNotificationConfiguration): Promise<ApiWrapper<{
|
|
64
65
|
members: number;
|
|
65
66
|
msg: string;
|
|
66
67
|
}, import("../../types").BaseMessages>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiPagingResults, ApiWrapper, jSpotAutocomplete } from '../../types';
|
|
2
|
-
import { Category, GroupMemberLevel, GroupProperties, GroupView, GroupWidget } from '../../types/group';
|
|
2
|
+
import { Category, GroupMemberLevel, GroupProperties, GroupView, GroupWidget, jGroupList } from '../../types/group';
|
|
3
3
|
export declare const spot: ApiWrapper<GroupView>;
|
|
4
4
|
export declare const properties: ApiWrapper<GroupProperties>;
|
|
5
5
|
export declare const groupAutocompleteA: ApiWrapper<jSpotAutocomplete[]>;
|
|
@@ -8,6 +8,7 @@ export declare const groupUpdate: ApiWrapper<GroupView>;
|
|
|
8
8
|
export declare const groupGetAvailableWidget: ApiWrapper<Record<string, GroupWidget>>;
|
|
9
9
|
export declare const groupGetCategories: ApiWrapper<Category[]>;
|
|
10
10
|
export declare const groupObjectListJamespotSpotMembers: ApiPagingResults<GroupMemberLevel>;
|
|
11
|
+
export declare const groupList: ApiPagingResults<jGroupList>;
|
|
11
12
|
export declare const groupResetNotification: ApiWrapper<{
|
|
12
13
|
members: number;
|
|
13
14
|
msg: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type AnimationVariant = 'Olympics' | 'Maythefourth' | 'Spring' | 'MusicFestival' | 'EasterEggs' | 'CustomAnimation';
|
|
2
|
+
export type AnimationConfigurationType = {
|
|
3
|
+
name: AnimationVariant;
|
|
4
|
+
activeClickEffect: number;
|
|
5
|
+
activeDecor: number;
|
|
6
|
+
auto: boolean;
|
|
7
|
+
audience: string[];
|
|
8
|
+
};
|
package/lib/src/types/drive.d.ts
CHANGED
package/lib/src/types/group.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { jObjectLittle } from './utils';
|
|
2
|
+
import { Filters, Orders, jObjectBase, jObjectLittle } from './utils';
|
|
3
3
|
export type CreateGroup = {
|
|
4
4
|
type: string;
|
|
5
5
|
title: string;
|
|
@@ -117,6 +117,7 @@ export interface Category {
|
|
|
117
117
|
idorder: number;
|
|
118
118
|
label: string;
|
|
119
119
|
}
|
|
120
|
+
export type jGroupList = jObjectBase & GroupLittle;
|
|
120
121
|
export type GroupLittle = jObjectLittle & {
|
|
121
122
|
dateCreation: string;
|
|
122
123
|
dateModified: string;
|
|
@@ -141,3 +142,12 @@ export type ResetNotificationConfiguration = {
|
|
|
141
142
|
mailComment: boolean;
|
|
142
143
|
mailSubscriber: boolean;
|
|
143
144
|
};
|
|
145
|
+
export type GroupListConfig = {
|
|
146
|
+
type?: string;
|
|
147
|
+
format?: string;
|
|
148
|
+
query?: string;
|
|
149
|
+
limit?: number;
|
|
150
|
+
page?: number;
|
|
151
|
+
orders?: Orders;
|
|
152
|
+
filters?: Filters | undefined;
|
|
153
|
+
};
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AllKeys, Readable, jObjectBase } from './utils';
|
|
2
2
|
type BookmarksFunctions = 'update' | 'add' | 'delete';
|
|
3
|
+
type AnimationsFunctions = 'update' | 'add' | 'delete' | 'toggle' | 'getAnimationActive';
|
|
3
4
|
type CustomActionFunctions = 'update' | 'add' | 'remove';
|
|
4
5
|
type JamespotFunctions = 'comment-create' | 'comment-delete' | 'comment-update';
|
|
5
6
|
type WSFunctions = 'presence' | 'connection' | 'disconnect';
|
|
6
7
|
export type Namespaces = {
|
|
7
8
|
BOOKMARKS: BookmarksFunctions;
|
|
9
|
+
ANIMATIONS: AnimationsFunctions;
|
|
8
10
|
'CUSTOM-ACTION': CustomActionFunctions;
|
|
9
11
|
JAMESPOT: JamespotFunctions;
|
|
10
12
|
ws: WSFunctions;
|
|
@@ -15,6 +17,13 @@ export type AllMessages = {
|
|
|
15
17
|
add: RTMessageObject<'BOOKMARKS', 'add'>;
|
|
16
18
|
delete: RTMessageObject<'BOOKMARKS', 'delete'>;
|
|
17
19
|
};
|
|
20
|
+
ANIMATIONS: {
|
|
21
|
+
update: RTMessage<'ANIMATIONS', 'update'>;
|
|
22
|
+
add: RTMessage<'ANIMATIONS', 'add'>;
|
|
23
|
+
delete: RTMessage<'ANIMATIONS', 'delete'>;
|
|
24
|
+
toggle: RTMessage<'ANIMATIONS', 'toggle'>;
|
|
25
|
+
getAnimationActive: RTMessage<'ANIMATIONS', 'getAnimationActive'>;
|
|
26
|
+
};
|
|
18
27
|
'CUSTOM-ACTION': {
|
|
19
28
|
update: RTMessageObject<'CUSTOM-ACTION', 'update'>;
|
|
20
29
|
add: RTMessageObject<'CUSTOM-ACTION', 'add'>;
|
|
@@ -53,6 +62,6 @@ export type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T],
|
|
|
53
62
|
export type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
|
|
54
63
|
idUsers: number[];
|
|
55
64
|
};
|
|
56
|
-
export type AnyRTMessage<T = {}> = RTMessageObject<'BOOKMARKS', 'update', T> | RTMessageObject<'BOOKMARKS', 'add', T> | RTMessageObject<'BOOKMARKS', 'delete',
|
|
65
|
+
export type AnyRTMessage<T = {}> = RTMessageObject<'BOOKMARKS', 'update', T> | RTMessageObject<'BOOKMARKS', 'add', T> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessage<'ANIMATIONS', 'update'> | RTMessage<'ANIMATIONS', 'add'> | RTMessage<'ANIMATIONS', 'delete'> | RTMessage<'ANIMATIONS', 'toggle'> | RTMessage<'ANIMATIONS', 'getAnimationActive'> | RTMessageObject<'CUSTOM-ACTION', 'update', T> | RTMessageObject<'CUSTOM-ACTION', 'add', T> | RTMessageObject<'CUSTOM-ACTION', 'remove', T> | RTMessageObject<'JAMESPOT', 'comment-create', T> | RTMessageObject<'JAMESPOT', 'comment-delete', T> | RTMessageObject<'JAMESPOT', 'comment-update', T> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'>;
|
|
57
66
|
export type RTReceivedMessage<T extends keyof Namespaces, F extends Namespaces[T]> = ['message', RTMessage<T, F>];
|
|
58
67
|
export {};
|
|
@@ -34,6 +34,7 @@ export type WidgetTypeKeys = {
|
|
|
34
34
|
'widget-article-text': WidgetArticleTextType;
|
|
35
35
|
'widget-article-image': WidgetArticleImageType;
|
|
36
36
|
'widget-article-attachment': WidgetArticleAttachmentType;
|
|
37
|
+
'widget-api': WidgetApiType;
|
|
37
38
|
'widget-article-slider': WidgetArticleSliderType;
|
|
38
39
|
};
|
|
39
40
|
export type WidgetContentKeys = {
|
|
@@ -43,12 +44,18 @@ export type WidgetContentKeys = {
|
|
|
43
44
|
'widget-article-text': WidgetArticleTextContent;
|
|
44
45
|
'widget-article-image': WidgetArticleImageContent;
|
|
45
46
|
'widget-article-attachment': WidgetArticleAttachmentContent;
|
|
47
|
+
'widget-api': WidgetApiContent;
|
|
46
48
|
'widget-article-slider': WidgetArticleSliderContent;
|
|
47
49
|
};
|
|
48
50
|
export type WidgetKeys = keyof WidgetTypeKeys;
|
|
49
51
|
export type WidgetExtendedType = {
|
|
50
52
|
layers?: string[];
|
|
51
53
|
};
|
|
54
|
+
export type WidgetApiType = {
|
|
55
|
+
name: 'widget-api';
|
|
56
|
+
uniqid: string;
|
|
57
|
+
content: WidgetApiContent;
|
|
58
|
+
};
|
|
52
59
|
export type WidgetArticleButtonType = {
|
|
53
60
|
name: 'widget-article-button';
|
|
54
61
|
uniqid: string;
|
|
@@ -109,6 +116,12 @@ export type WidgetArticleTextContent = {
|
|
|
109
116
|
lineHeight?: string;
|
|
110
117
|
linkColor?: string;
|
|
111
118
|
};
|
|
119
|
+
export type WidgetApiContent = {
|
|
120
|
+
url?: string;
|
|
121
|
+
keys?: string[];
|
|
122
|
+
order?: string;
|
|
123
|
+
orderBy?: string;
|
|
124
|
+
};
|
|
112
125
|
export type OpeningTypeLink = {
|
|
113
126
|
url: string;
|
|
114
127
|
target: string;
|
|
@@ -120,7 +133,10 @@ export type OpeningTypePopup = {
|
|
|
120
133
|
title: string;
|
|
121
134
|
widgets: WidgetWrapperProps[];
|
|
122
135
|
};
|
|
123
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Widget button base properties
|
|
138
|
+
*/
|
|
139
|
+
export type WidgetButtonProps = {
|
|
124
140
|
text?: string;
|
|
125
141
|
color?: string;
|
|
126
142
|
backgroundColor?: string;
|
|
@@ -128,6 +144,10 @@ export type WidgetArticleButtonContent = {
|
|
|
128
144
|
fontSize?: string;
|
|
129
145
|
buttonSize?: VariantSizeType;
|
|
130
146
|
variant?: VariantType;
|
|
147
|
+
url?: string;
|
|
148
|
+
target?: string;
|
|
149
|
+
};
|
|
150
|
+
export type WidgetArticleButtonContent = WidgetButtonProps & {
|
|
131
151
|
openingType?: OpeningType;
|
|
132
152
|
openingTypeLink?: OpeningTypeLink;
|
|
133
153
|
openingTypeAnchor?: OpeningTypeAnchor;
|
|
@@ -158,7 +178,7 @@ export type WidgetArticleSliderContent = {
|
|
|
158
178
|
};
|
|
159
179
|
export type CombinedWidgetContent = {
|
|
160
180
|
widgets?: WidgetWrapperProps[];
|
|
161
|
-
} & (WidgetArticleTextContent | WidgetArticleImageContent | WidgetArticleTitleContent | WidgetArticleButtonContent | WidgetArticleGalleryContent | WidgetArticleAttachmentContent | WidgetArticleSliderContent);
|
|
181
|
+
} & (WidgetArticleTextContent | WidgetArticleImageContent | WidgetArticleTitleContent | WidgetArticleButtonContent | WidgetArticleGalleryContent | WidgetArticleAttachmentContent | WidgetApiContent | WidgetArticleSliderContent);
|
|
162
182
|
export type WidgetStateProps = {
|
|
163
183
|
busy?: boolean | undefined;
|
|
164
184
|
loading?: boolean | undefined;
|
package/lib/src/util/file.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export declare const resolveFilePath: (file: jFileLittle, size?: string) => stri
|
|
|
21
21
|
export declare const getFileFamilyFromName: (name: string) => fileFamilyTypes;
|
|
22
22
|
export declare function getFileFamily(mimetype: string | undefined): fileFamilyTypes;
|
|
23
23
|
export declare const resolveFileUrl: (idFile: number, hash: string, mode?: 'ng' | 'rr') => string;
|
|
24
|
-
export declare const resolveFileMimetype: (file: jFileLittle) => string;
|
|
24
|
+
export declare const resolveFileMimetype: (file: Pick<jFileLittle, 'mimetype' | 'title'>) => string;
|
|
25
25
|
export declare const resolveFileFamily: (file: jFileLittle) => fileFamilyTypes;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "animations", "f": "deleteAnimation", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "animations", "f": "getAnimationActive", "error": 0, "messages": [], "result": true }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "animations", "f": "getConfiguration", "error": 0, "messages": [], "result": null }
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"o": "animations",
|
|
3
|
+
"f": "saveConfiguration",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
|
|
6
|
+
"result": {
|
|
7
|
+
"name": "MusicFestival",
|
|
8
|
+
"activeClickEffect": 1,
|
|
9
|
+
"activeDecor": 0,
|
|
10
|
+
"auto": true,
|
|
11
|
+
"audience": ["networkPublic/1"]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "objectList",
|
|
3
|
+
"f": "jamespotSpotQueryList",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"limit": 50,
|
|
8
|
+
"page": 1,
|
|
9
|
+
"cnt": 3,
|
|
10
|
+
"data": [
|
|
11
|
+
{
|
|
12
|
+
"id": 1,
|
|
13
|
+
"mainType": "spot",
|
|
14
|
+
"type": "spot",
|
|
15
|
+
"uri": "spot/1",
|
|
16
|
+
"dateCreation": "2019-07-18 18:36:24",
|
|
17
|
+
"dateModified": "2024-02-16 11:02:19",
|
|
18
|
+
"title": "Groupe public",
|
|
19
|
+
"_url": "/group/1",
|
|
20
|
+
"privacy": 1,
|
|
21
|
+
"category": 1
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": 2,
|
|
25
|
+
"mainType": "spot",
|
|
26
|
+
"type": "spot",
|
|
27
|
+
"uri": "spot/2",
|
|
28
|
+
"dateCreation": "2019-07-18 18:36:38",
|
|
29
|
+
"dateModified": "2024-02-16 11:02:19",
|
|
30
|
+
"title": "Groupe priv\u00e9",
|
|
31
|
+
"_url": "/group/2",
|
|
32
|
+
"privacy": 0,
|
|
33
|
+
"category": 1
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": 3,
|
|
37
|
+
"mainType": "spot",
|
|
38
|
+
"type": "spot",
|
|
39
|
+
"uri": "spot/3",
|
|
40
|
+
"dateCreation": "2019-07-19 09:35:53",
|
|
41
|
+
"dateModified": "2024-02-16 11:02:19",
|
|
42
|
+
"title": "Groupe mod\u00e9r\u00e9",
|
|
43
|
+
"_url": "/group/3",
|
|
44
|
+
"privacy": 2,
|
|
45
|
+
"category": 1
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"facets": null,
|
|
49
|
+
"idQuery": null
|
|
50
|
+
}
|
|
51
|
+
}
|