jamespot-user-api 1.0.106 → 1.0.107
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/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -8
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +4 -4
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.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 +6 -6
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/community.d.ts +39 -2
- package/lib/src/apis/{group.d.ts → group/group.d.ts} +23 -13
- package/lib/src/apis/group/group.mock.d.ts +4 -0
- package/lib/src/apis/group/group.test.d.ts +1 -0
- package/lib/src/apis/group/group.types.d.ts +122 -0
- package/lib/src/apis/group/index.d.ts +2 -0
- package/lib/src/apis/jamespotUserApi.d.ts +1 -1
- package/lib/src/index.d.ts +1 -3
- package/lib/src/types/autocomplete.d.ts +12 -0
- package/lib/src/types/index.d.ts +0 -1
- package/lib/src/types/realtime.d.ts +37 -11
- package/lib/src/types/utils.d.ts +1 -1
- package/lib/src/util/index.d.ts +4 -0
- package/lib/src/util/object.d.ts +1 -0
- package/lib/src/util/object.test.d.ts +1 -0
- package/package.json +1 -1
- package/phpunitMock/spotGet-default.json +25 -0
- package/phpunitMock/spotGetProperties-default.json +77 -0
- package/lib/src/types/group.d.ts +0 -58
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { JBaseApi } from '
|
|
1
|
+
import { Category, CreateGroup, GroupList, GroupProperties, GroupView, GroupWidget, ResetNotificationConfiguration, UpdateGroup } from './group.types';
|
|
2
|
+
import { JBaseApi } from '../base';
|
|
3
|
+
import { ApiReturn, Format, PagingResults } from '../../types';
|
|
3
4
|
export declare class JGroupApi extends JBaseApi {
|
|
4
5
|
/**
|
|
5
6
|
* Create a group from scratch
|
|
@@ -7,7 +8,7 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
7
8
|
* @param format return format
|
|
8
9
|
* @returns
|
|
9
10
|
*/
|
|
10
|
-
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<import("
|
|
11
|
+
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<import("../../types").ApiWrapper<ApiReturn<T, {
|
|
11
12
|
id: number;
|
|
12
13
|
mainType: string;
|
|
13
14
|
type: string;
|
|
@@ -25,14 +26,14 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
25
26
|
dateModified?: string;
|
|
26
27
|
title: string;
|
|
27
28
|
_url: string;
|
|
28
|
-
}>, import("
|
|
29
|
+
}>, import("../../types").BaseMessages>>;
|
|
29
30
|
/**
|
|
30
31
|
* Update a group
|
|
31
32
|
* @param group group to update. The uri is mandatory and identify the group to update
|
|
32
33
|
* @param format return format
|
|
33
34
|
* @returns
|
|
34
35
|
*/
|
|
35
|
-
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<import("
|
|
36
|
+
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<import("../../types").ApiWrapper<ApiReturn<T, {
|
|
36
37
|
id: number;
|
|
37
38
|
mainType: string;
|
|
38
39
|
type: string;
|
|
@@ -41,14 +42,14 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
41
42
|
dateModified?: string;
|
|
42
43
|
title: string;
|
|
43
44
|
_url: string;
|
|
44
|
-
}, GroupList, GroupView, string>, import("
|
|
45
|
+
}, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
45
46
|
/**
|
|
46
47
|
* Get a spot
|
|
47
48
|
* @param idSpot
|
|
48
49
|
* @param format
|
|
49
50
|
* @returns
|
|
50
51
|
*/
|
|
51
|
-
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<import("
|
|
52
|
+
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<import("../../types").ApiWrapper<ApiReturn<T, {
|
|
52
53
|
id: number;
|
|
53
54
|
mainType: string;
|
|
54
55
|
type: string;
|
|
@@ -57,22 +58,22 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
57
58
|
dateModified?: string;
|
|
58
59
|
title: string;
|
|
59
60
|
_url: string;
|
|
60
|
-
}, GroupList, GroupView, string>, import("
|
|
61
|
+
}, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
61
62
|
/**
|
|
62
63
|
* Get the properties of a group that are not within the model
|
|
63
64
|
* @param idSpot
|
|
64
65
|
* @returns
|
|
65
66
|
*/
|
|
66
|
-
getProperties(idSpot: number | string): Promise<import("
|
|
67
|
+
getProperties(idSpot: number | string): Promise<import("../../types").ApiWrapper<GroupProperties, import("../../types").BaseMessages>>;
|
|
67
68
|
/**
|
|
68
69
|
* Get the available applications that can be added to a group
|
|
69
70
|
*/
|
|
70
|
-
getApplications(): Promise<import("
|
|
71
|
+
getApplications(): Promise<import("../../types").ApiWrapper<Record<string, GroupWidget>, import("../../types").BaseMessages>>;
|
|
71
72
|
/**
|
|
72
73
|
* Get the available group categories
|
|
73
74
|
* @returns
|
|
74
75
|
*/
|
|
75
|
-
getCategories(): Promise<import("
|
|
76
|
+
getCategories(): Promise<import("../../types").ApiWrapper<Category[], import("../../types").BaseMessages>>;
|
|
76
77
|
/**
|
|
77
78
|
* Get the members of a group
|
|
78
79
|
* @param idSpot spot id
|
|
@@ -81,7 +82,7 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
81
82
|
* @param page page number
|
|
82
83
|
* @return array of User
|
|
83
84
|
*/
|
|
84
|
-
getObjectListJamespotSpotMembers(idSpot: number | string, query?: string, limit?: number, page?: number): Promise<import("
|
|
85
|
+
getObjectListJamespotSpotMembers(idSpot: number | string, query?: string, limit?: number, page?: number): Promise<import("../../types").ApiWrapper<PagingResults<{
|
|
85
86
|
id: number;
|
|
86
87
|
mainType: string;
|
|
87
88
|
type: string;
|
|
@@ -90,5 +91,14 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
90
91
|
dateModified?: string;
|
|
91
92
|
title: string;
|
|
92
93
|
_url: string;
|
|
93
|
-
}>, import("
|
|
94
|
+
}>, import("../../types").BaseMessages>>;
|
|
95
|
+
/**
|
|
96
|
+
* Reset the notifications configuration for all users of the group
|
|
97
|
+
* @param config configuration
|
|
98
|
+
* @returns
|
|
99
|
+
*/
|
|
100
|
+
resetNotifications(config: ResetNotificationConfiguration): Promise<import("../../types").ApiWrapper<{
|
|
101
|
+
members: number;
|
|
102
|
+
msg: string;
|
|
103
|
+
}, import("../../types").BaseMessages>>;
|
|
94
104
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jObjectLittle } from '../../types/utils';
|
|
2
|
+
export declare type CreateGroup = {
|
|
3
|
+
type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
privacy: string | number;
|
|
7
|
+
edito: string | null;
|
|
8
|
+
language: string;
|
|
9
|
+
category: string;
|
|
10
|
+
idCommunity?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type SpotBannerImage = {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
size: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
|
|
18
|
+
uri: string;
|
|
19
|
+
image?: string | null;
|
|
20
|
+
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
21
|
+
token?: string;
|
|
22
|
+
uriCommunity?: string;
|
|
23
|
+
custom_widgets?: Record<string, GroupCustomWidget> | [];
|
|
24
|
+
};
|
|
25
|
+
export declare type GroupProperties = {
|
|
26
|
+
edit_access: '' | 'author';
|
|
27
|
+
commentLevel: '-1' | '1' | '2' | '3';
|
|
28
|
+
user_level_signup: '' | '1' | '2' | '3';
|
|
29
|
+
nounsubscribe: '' | '1';
|
|
30
|
+
useTeaser: '' | '1' | '2';
|
|
31
|
+
displayType: string;
|
|
32
|
+
spot_right_user: string;
|
|
33
|
+
rss_feed: Array<RssType> | '';
|
|
34
|
+
spotDefaultPublishType: string;
|
|
35
|
+
mail_frequency: string;
|
|
36
|
+
mail_comment: '1' | '';
|
|
37
|
+
mail_spotit: '1' | '';
|
|
38
|
+
mail_subscriber: '1' | '';
|
|
39
|
+
lock_mail: '1' | '';
|
|
40
|
+
activity: '1' | '0';
|
|
41
|
+
publishFolder: '1' | '0';
|
|
42
|
+
notifyFolder: '1' | '0';
|
|
43
|
+
widgets: Array<string>;
|
|
44
|
+
rss_access: '1' | '0';
|
|
45
|
+
rss_key: string;
|
|
46
|
+
_options: GroupPropertiesOptions;
|
|
47
|
+
_errors: [];
|
|
48
|
+
lastRssExecution?: Record<string, string>;
|
|
49
|
+
};
|
|
50
|
+
export declare type GroupPropertiesOptions = {
|
|
51
|
+
edit_access: Array<ValueLabel & {
|
|
52
|
+
description: string;
|
|
53
|
+
}>;
|
|
54
|
+
commentLevel: Array<ValueLabel & {
|
|
55
|
+
selected?: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
displayType: Array<ValueLabel>;
|
|
58
|
+
user_level_signup: Array<ValueLabel & {
|
|
59
|
+
selected?: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
spot_right_user: Array<ValueLabel & {
|
|
62
|
+
selected?: boolean;
|
|
63
|
+
}>;
|
|
64
|
+
useTeaser: Array<ValueLabel>;
|
|
65
|
+
spotDefaultPublishType: Array<string>;
|
|
66
|
+
mail_frequency: Array<ValueLabel>;
|
|
67
|
+
widgets: Array<GroupWidget>;
|
|
68
|
+
custom_widgets: Record<string, GroupCustomWidget> | [];
|
|
69
|
+
};
|
|
70
|
+
export declare type RssType = {
|
|
71
|
+
url: string;
|
|
72
|
+
idUser: number;
|
|
73
|
+
send: boolean | undefined;
|
|
74
|
+
error?: string;
|
|
75
|
+
};
|
|
76
|
+
export declare type ValueLabel = {
|
|
77
|
+
value: string | number;
|
|
78
|
+
label: string;
|
|
79
|
+
};
|
|
80
|
+
export declare type GroupWidget = {
|
|
81
|
+
id: string;
|
|
82
|
+
title: string;
|
|
83
|
+
};
|
|
84
|
+
export declare type GroupCustomWidget = {
|
|
85
|
+
idSpot: string;
|
|
86
|
+
idOrder: string;
|
|
87
|
+
idWidget: string;
|
|
88
|
+
type: string;
|
|
89
|
+
title: string;
|
|
90
|
+
url: string;
|
|
91
|
+
visible: string;
|
|
92
|
+
};
|
|
93
|
+
export interface Category {
|
|
94
|
+
id: string;
|
|
95
|
+
idorder: number;
|
|
96
|
+
label: string;
|
|
97
|
+
}
|
|
98
|
+
export declare type GroupLittle = jObjectLittle & {
|
|
99
|
+
dateCreation: string;
|
|
100
|
+
dateModified: string;
|
|
101
|
+
};
|
|
102
|
+
export declare type GroupList = GroupLittle & {
|
|
103
|
+
description: string;
|
|
104
|
+
privacy: string | number;
|
|
105
|
+
edito: string | null;
|
|
106
|
+
language: string;
|
|
107
|
+
category: string;
|
|
108
|
+
idCategory: number;
|
|
109
|
+
};
|
|
110
|
+
export declare type GroupView = GroupList & {
|
|
111
|
+
image?: string | null;
|
|
112
|
+
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
113
|
+
idCommunity?: string;
|
|
114
|
+
useTeaser?: string;
|
|
115
|
+
};
|
|
116
|
+
export declare type ResetNotificationConfiguration = {
|
|
117
|
+
idSpot: string | number;
|
|
118
|
+
mailFrequency: string | number;
|
|
119
|
+
mailSpotit: boolean;
|
|
120
|
+
mailComment: boolean;
|
|
121
|
+
mailSubscriber: boolean;
|
|
122
|
+
};
|
|
@@ -8,7 +8,7 @@ import { JCommunityApi } from './community';
|
|
|
8
8
|
import { JDriveApi } from './drive/drive';
|
|
9
9
|
import { JFileApi } from './file';
|
|
10
10
|
import { JFilebankApi } from './filebank';
|
|
11
|
-
import { JGroupApi } from './group';
|
|
11
|
+
import { JGroupApi } from './group/group';
|
|
12
12
|
import { JMediaLibraryApi } from './mediaLibrary/mediaLibrary';
|
|
13
13
|
import { JLandApi } from './jland/jland';
|
|
14
14
|
import { JMessengerApi } from './messenger';
|
package/lib/src/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export { JamespotUserApiInstance };
|
|
|
11
11
|
export default JamespotUserApiInstance;
|
|
12
12
|
export * from './apis';
|
|
13
13
|
export * from './types';
|
|
14
|
-
export * from './util/
|
|
15
|
-
export * from './util/file';
|
|
16
|
-
export * from './util/ensure';
|
|
14
|
+
export * from './util/';
|
|
17
15
|
export * from './window';
|
|
18
16
|
export declare const api: typeof JamespotUserApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jObjectLittle } from './utils';
|
|
1
2
|
export interface BaseAutocomplete {
|
|
2
3
|
id: string;
|
|
3
4
|
uri: string;
|
|
@@ -22,3 +23,14 @@ export declare type jSpotAutocomplete = jObjectAutocomplete & {
|
|
|
22
23
|
};
|
|
23
24
|
export declare type AudienceAutocomplete = jObjectAutocomplete | jUserAutocomplete | jSpotAutocomplete;
|
|
24
25
|
export declare type CommunityAutocomplete = jObjectAutocomplete;
|
|
26
|
+
export declare type Community = jObjectLittle & {
|
|
27
|
+
isTechnical: number;
|
|
28
|
+
status: number;
|
|
29
|
+
image: string;
|
|
30
|
+
isMember: boolean;
|
|
31
|
+
stats: {
|
|
32
|
+
moderators: number;
|
|
33
|
+
members: string;
|
|
34
|
+
};
|
|
35
|
+
_members: Array<jObjectLittle>;
|
|
36
|
+
};
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
|
-
import { jObjectBase } from './utils';
|
|
1
|
+
import { AllKeys, Readable, jObjectBase } from './utils';
|
|
2
2
|
declare type BookmarksFunctions = 'update' | 'add' | 'delete';
|
|
3
3
|
declare type CustomActionFunctions = 'update' | 'add' | 'remove';
|
|
4
|
+
declare type WSFunctions = 'presence' | 'connection' | 'disconnect';
|
|
4
5
|
export declare type Namespaces = {
|
|
5
6
|
BOOKMARKS: BookmarksFunctions;
|
|
6
7
|
'CUSTOM-ACTION': CustomActionFunctions;
|
|
8
|
+
ws: WSFunctions;
|
|
7
9
|
};
|
|
8
|
-
export declare type
|
|
10
|
+
export declare type AllMessages = {
|
|
11
|
+
BOOKMARKS: {
|
|
12
|
+
update: RTMessageObject<'BOOKMARKS', 'update'>;
|
|
13
|
+
add: RTMessageObject<'BOOKMARKS', 'add'>;
|
|
14
|
+
delete: RTMessageObject<'BOOKMARKS', 'delete'>;
|
|
15
|
+
};
|
|
16
|
+
'CUSTOM-ACTION': {
|
|
17
|
+
update: RTMessageObject<'CUSTOM-ACTION', 'update'>;
|
|
18
|
+
add: RTMessageObject<'CUSTOM-ACTION', 'add'>;
|
|
19
|
+
remove: RTMessageObject<'CUSTOM-ACTION', 'remove'>;
|
|
20
|
+
};
|
|
21
|
+
ws: {
|
|
22
|
+
presence: RTMessageWsPresence;
|
|
23
|
+
connection: RTMessage<'ws', 'connection'>;
|
|
24
|
+
disconnect: RTMessage<'ws', 'disconnect'>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare type NamespacesMessages<T extends keyof AllMessages> = Readable<AllMessages[T] & Record<Exclude<AllKeys<AllMessages[keyof AllMessages]>, keyof AllMessages[T]>, never>>;
|
|
28
|
+
declare type AllMessagesInternal = {
|
|
29
|
+
[K in keyof AllMessages]: NamespacesMessages<K>;
|
|
30
|
+
};
|
|
31
|
+
export declare type RTMessageHandler<T extends keyof AllMessages, F extends keyof AllMessages[T]> = {
|
|
9
32
|
namespace: T;
|
|
10
|
-
function:
|
|
11
|
-
handler: (message:
|
|
33
|
+
function: F;
|
|
34
|
+
handler: (message: AllMessagesInternal[T][F]) => void;
|
|
12
35
|
};
|
|
13
36
|
export declare type AnyRTHandlerFunction = {
|
|
14
|
-
[K in keyof Namespaces]: RTMessageHandler<K>['handler'];
|
|
37
|
+
[K in keyof Namespaces]: RTMessageHandler<K, keyof AllMessages[K]>['handler'];
|
|
15
38
|
}[keyof Namespaces];
|
|
16
|
-
export declare type RTMessage<T extends keyof Namespaces
|
|
39
|
+
export declare type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
|
|
17
40
|
namespace: T;
|
|
18
|
-
function:
|
|
41
|
+
function: F;
|
|
42
|
+
};
|
|
43
|
+
export declare type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O extends jObjectBase = jObjectBase> = RTMessage<T, F> & {
|
|
19
44
|
object: O;
|
|
20
45
|
};
|
|
21
|
-
export declare type
|
|
22
|
-
[
|
|
23
|
-
}
|
|
24
|
-
export declare type
|
|
46
|
+
export declare type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
|
|
47
|
+
idUsers: number[];
|
|
48
|
+
};
|
|
49
|
+
export declare type AnyRTMessage = RTMessageObject<'BOOKMARKS', 'update'> | RTMessageObject<'BOOKMARKS', 'add'> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessageObject<'CUSTOM-ACTION', 'update'> | RTMessageObject<'CUSTOM-ACTION', 'add'> | RTMessageObject<'CUSTOM-ACTION', 'remove'> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'>;
|
|
50
|
+
export declare type RTReceivedMessage<T extends keyof Namespaces, F extends Namespaces[T]> = ['message', RTMessage<T, F>];
|
|
25
51
|
export {};
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { jUserLittle } from './user';
|
|
|
9
9
|
export declare type Readable<T> = T extends infer U ? {
|
|
10
10
|
[K in keyof U]: U[K];
|
|
11
11
|
} : never;
|
|
12
|
-
declare type AllKeys<T> = T extends unknown ? keyof T : never;
|
|
12
|
+
export declare type AllKeys<T> = T extends unknown ? keyof T : never;
|
|
13
13
|
declare type _ExclusifyUnion<T, K extends PropertyKey> = T extends unknown ? Readable<T & Partial<Record<Exclude<K, keyof T>, never>>> : never;
|
|
14
14
|
/**
|
|
15
15
|
* Builds an exclusive union type from a union type
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepEqual(a: any, b: any, ignoreAttributes?: Array<string>): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "spot",
|
|
3
|
+
"f": "get",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"id": 2,
|
|
8
|
+
"mainType": "spot",
|
|
9
|
+
"type": "spot",
|
|
10
|
+
"uri": "spot/2",
|
|
11
|
+
"dateCreation": "2019-07-19 18:36:24",
|
|
12
|
+
"dateModified": "2023-06-08 09:19:44",
|
|
13
|
+
"title": "Groupe public",
|
|
14
|
+
"_url": "/group/2",
|
|
15
|
+
"privacy": 1,
|
|
16
|
+
"idCategory": 1,
|
|
17
|
+
"category": "1",
|
|
18
|
+
"description": "",
|
|
19
|
+
"edito": null,
|
|
20
|
+
"language": "fr",
|
|
21
|
+
"image": null,
|
|
22
|
+
"spotBanner": [],
|
|
23
|
+
"useTeaser": ""
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "spot",
|
|
3
|
+
"f": "getProperties",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": {
|
|
7
|
+
"_options": {
|
|
8
|
+
"custom_widgets": [],
|
|
9
|
+
"edit_access": [
|
|
10
|
+
{ "value": "", "label": "Administrateur", "description": "SPOT_Edit_Access_Admin_Description" },
|
|
11
|
+
{
|
|
12
|
+
"value": "author",
|
|
13
|
+
"label": "R\u00e9dacteur",
|
|
14
|
+
"description": "SPOT_Edit_Access_Contributor_Description"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"commentLevel": [
|
|
18
|
+
{ "value": "3", "label": "Member", "selected": true },
|
|
19
|
+
{ "value": "2", "label": "Contributor" },
|
|
20
|
+
{ "value": "1", "label": "Administrator" }
|
|
21
|
+
],
|
|
22
|
+
"user_level_signup": [
|
|
23
|
+
{ "value": "3", "label": "Member" },
|
|
24
|
+
{ "value": "2", "label": "Contributor", "selected": true },
|
|
25
|
+
{ "value": "1", "label": "Administrator" }
|
|
26
|
+
],
|
|
27
|
+
"useTeaser": [
|
|
28
|
+
{ "value": "", "label": "Param\u00e8tres par default" },
|
|
29
|
+
{ "value": 1, "label": "Oui" },
|
|
30
|
+
{ "value": 0, "label": "Non" }
|
|
31
|
+
],
|
|
32
|
+
"displayType": [
|
|
33
|
+
{ "value": "doc", "label": "Documentaire" },
|
|
34
|
+
{ "value": "wall", "label": "Dynamique" }
|
|
35
|
+
],
|
|
36
|
+
"spot_right_user": [
|
|
37
|
+
{ "value": "3", "label": "Member" },
|
|
38
|
+
{ "value": "2", "label": "Contributor", "selected": true },
|
|
39
|
+
{ "value": "1", "label": "Administrator" },
|
|
40
|
+
{ "value": "0", "label": "Creator" }
|
|
41
|
+
],
|
|
42
|
+
"spotDefaultPublishType": ["mpMedia", "mpArticle", "mpSocialFile", "socialQuestion"],
|
|
43
|
+
"mail_frequency": [
|
|
44
|
+
{ "value": -1, "label": "Fr\u00e9quence par d\u00e9faut (Temps r\u00e9el)" },
|
|
45
|
+
{ "value": 0, "label": "Temps r\u00e9el" },
|
|
46
|
+
{ "value": 1, "label": "Quotidien" },
|
|
47
|
+
{ "value": 2, "label": "Hebdomadaire" },
|
|
48
|
+
{ "value": 10, "label": "Jamais" }
|
|
49
|
+
],
|
|
50
|
+
"widgets": [
|
|
51
|
+
{ "id": "fbank_box", "title": "Banque documentaire" },
|
|
52
|
+
{ "id": "spot_tags_box", "title": "Tags" }
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"_errors": [],
|
|
56
|
+
"edit_access": "",
|
|
57
|
+
"commentLevel": "3",
|
|
58
|
+
"user_level_signup": "3",
|
|
59
|
+
"nounsubscribe": "1",
|
|
60
|
+
"useTeaser": "",
|
|
61
|
+
"displayType": "wall",
|
|
62
|
+
"spot_right_user": "2",
|
|
63
|
+
"rss_access": "0",
|
|
64
|
+
"rss_key": "",
|
|
65
|
+
"rss_feed": "",
|
|
66
|
+
"spotDefaultPublishType": "mpArticle",
|
|
67
|
+
"mail_frequency": "-1",
|
|
68
|
+
"mail_comment": "1",
|
|
69
|
+
"mail_spotit": "1",
|
|
70
|
+
"mail_subscriber": "",
|
|
71
|
+
"lock_mail": "",
|
|
72
|
+
"activity": "1",
|
|
73
|
+
"publishFolder": "1",
|
|
74
|
+
"notifyFolder": "1",
|
|
75
|
+
"widgets": []
|
|
76
|
+
}
|
|
77
|
+
}
|
package/lib/src/types/group.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jObjectLittle } from './utils';
|
|
2
|
-
export declare type CreateGroup = {
|
|
3
|
-
type: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
privacy: string;
|
|
7
|
-
edito: string;
|
|
8
|
-
language: string;
|
|
9
|
-
idCategory: string;
|
|
10
|
-
idCommunity?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpotBannerImage = {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
size: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type UpdateGroup = CreateGroup & GroupProperties & {
|
|
18
|
-
uri: string;
|
|
19
|
-
image?: string;
|
|
20
|
-
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
21
|
-
token?: string;
|
|
22
|
-
uriCommunity?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare type GroupProperties = {
|
|
25
|
-
edit_access?: '' | 'author';
|
|
26
|
-
commentLevel?: '-1' | '1' | '2' | '3';
|
|
27
|
-
user_level_signup?: '' | '1' | '2' | '3';
|
|
28
|
-
nounsubscribe?: '' | '1';
|
|
29
|
-
};
|
|
30
|
-
export declare type GroupWidget = {
|
|
31
|
-
idWidget: string;
|
|
32
|
-
title: string;
|
|
33
|
-
url: string;
|
|
34
|
-
type: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
export interface Category {
|
|
39
|
-
id: string;
|
|
40
|
-
idorder: number;
|
|
41
|
-
label: string;
|
|
42
|
-
}
|
|
43
|
-
export declare type GroupLittle = jObjectLittle & {
|
|
44
|
-
dateCreation: string;
|
|
45
|
-
dateModified: string;
|
|
46
|
-
};
|
|
47
|
-
export declare type GroupList = GroupLittle & {
|
|
48
|
-
description: string;
|
|
49
|
-
privacy: string;
|
|
50
|
-
edito: string;
|
|
51
|
-
language: string;
|
|
52
|
-
idCategory: string;
|
|
53
|
-
};
|
|
54
|
-
export declare type GroupView = GroupList & {
|
|
55
|
-
image?: string;
|
|
56
|
-
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
57
|
-
uriCommunity?: string;
|
|
58
|
-
};
|