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.
Files changed (80) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +11 -11
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBookmarkApi.html +1 -1
  11. package/documentation/classes/JCommunityApi.html +1 -1
  12. package/documentation/classes/JDiapazoneApi.html +1 -1
  13. package/documentation/classes/JFileApi.html +5 -5
  14. package/documentation/classes/JFilebankApi.html +1 -1
  15. package/documentation/classes/JGroupApi.html +12 -8
  16. package/documentation/classes/JLandApi.html +1 -1
  17. package/documentation/classes/JMessengerApi.html +1 -1
  18. package/documentation/classes/JSearchApi.html +6 -6
  19. package/documentation/classes/JShareApi.html +1 -1
  20. package/documentation/classes/JTaxonomyApi.html +2 -2
  21. package/documentation/classes/JUserApi.html +4 -4
  22. package/documentation/classes/JWedocApi.html +1 -1
  23. package/documentation/classes/JamespotUserApi.html +1 -1
  24. package/documentation/classes/Network.html +1 -1
  25. package/documentation/classes/WindowBrowser.html +1 -1
  26. package/documentation/enums/StudioApplicationStatus.html +1 -1
  27. package/documentation/index.html +1 -1
  28. package/documentation/interfaces/AccessRightObject.html +1 -1
  29. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  30. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  31. package/documentation/interfaces/ApiWrapper.html +1 -1
  32. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  33. package/documentation/interfaces/BaseMessage.html +1 -1
  34. package/documentation/interfaces/Category.html +1 -1
  35. package/documentation/interfaces/FileBankProps.html +1 -1
  36. package/documentation/interfaces/FolderProps.html +1 -1
  37. package/documentation/interfaces/ListFilterSpec.html +1 -1
  38. package/documentation/interfaces/OF.html +1 -1
  39. package/documentation/interfaces/ObjectListProps.html +1 -1
  40. package/documentation/interfaces/PagingResults.html +1 -1
  41. package/documentation/interfaces/RootFolderProps.html +1 -1
  42. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  43. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  44. package/documentation/interfaces/SearchConfig.html +1 -1
  45. package/documentation/interfaces/SearchFacetModel.html +1 -1
  46. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  47. package/documentation/interfaces/SearchQuery.html +1 -1
  48. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  49. package/documentation/interfaces/SearchQueryOption.html +1 -1
  50. package/documentation/interfaces/SearchQueryResult.html +1 -1
  51. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  52. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  53. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  54. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  55. package/documentation/interfaces/SpotProps.html +1 -1
  56. package/documentation/interfaces/Taxonomy.html +1 -1
  57. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  58. package/documentation/interfaces/WindowInterface.html +1 -1
  59. package/documentation/modules.html +6 -6
  60. package/lib/jamespot-user-api.js +1 -1
  61. package/lib/jamespot-user-api.js.map +1 -1
  62. package/lib/src/apis/community.d.ts +39 -2
  63. package/lib/src/apis/{group.d.ts → group/group.d.ts} +23 -13
  64. package/lib/src/apis/group/group.mock.d.ts +4 -0
  65. package/lib/src/apis/group/group.test.d.ts +1 -0
  66. package/lib/src/apis/group/group.types.d.ts +122 -0
  67. package/lib/src/apis/group/index.d.ts +2 -0
  68. package/lib/src/apis/jamespotUserApi.d.ts +1 -1
  69. package/lib/src/index.d.ts +1 -3
  70. package/lib/src/types/autocomplete.d.ts +12 -0
  71. package/lib/src/types/index.d.ts +0 -1
  72. package/lib/src/types/realtime.d.ts +37 -11
  73. package/lib/src/types/utils.d.ts +1 -1
  74. package/lib/src/util/index.d.ts +4 -0
  75. package/lib/src/util/object.d.ts +1 -0
  76. package/lib/src/util/object.test.d.ts +1 -0
  77. package/package.json +1 -1
  78. package/phpunitMock/spotGet-default.json +25 -0
  79. package/phpunitMock/spotGetProperties-default.json +77 -0
  80. package/lib/src/types/group.d.ts +0 -58
@@ -1,5 +1,6 @@
1
- import { ApiReturn, Category, CreateGroup, Format, GroupList, GroupProperties, GroupView, GroupWidget, PagingResults, UpdateGroup } from '../types';
2
- import { JBaseApi } from './base';
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("../types").ApiWrapper<ApiReturn<T, {
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("../types").BaseMessages>>;
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("../types").ApiWrapper<ApiReturn<T, {
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("../types").BaseMessages>>;
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("../types").ApiWrapper<ApiReturn<T, {
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("../types").BaseMessages>>;
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("../types").ApiWrapper<GroupProperties, import("../types").BaseMessages>>;
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("../types").ApiWrapper<Record<string, GroupWidget>, import("../types").BaseMessages>>;
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("../types").ApiWrapper<Category[], import("../types").BaseMessages>>;
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("../types").ApiWrapper<PagingResults<{
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("../types").BaseMessages>>;
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,4 @@
1
+ import { ApiWrapper } from '../../types';
2
+ import { GroupProperties, GroupView } from './group.types';
3
+ export declare const spot: ApiWrapper<GroupView>;
4
+ export declare const properties: ApiWrapper<GroupProperties>;
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export * from './group';
2
+ export * from './group.types';
@@ -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';
@@ -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/network';
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
+ };
@@ -7,7 +7,6 @@ export * from './autocomplete';
7
7
  export * from './bookmark';
8
8
  export * from './drive';
9
9
  export * from './file';
10
- export * from './group';
11
10
  export * from './mediaLibrary';
12
11
  export * from './model';
13
12
  export * from './search';
@@ -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 RTMessageHandler<T extends keyof Namespaces = 'CUSTOM-ACTION'> = {
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: Namespaces[T];
11
- handler: (message: RTMessage<T>) => any;
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 = 'CUSTOM-ACTION', O extends jObjectBase = jObjectBase> = {
39
+ export declare type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
17
40
  namespace: T;
18
- function: Namespaces[T];
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 AnyRTMessage = {
22
- [K in keyof Namespaces]: RTMessage<K>;
23
- }[keyof Namespaces];
24
- export declare type RTReceivedMessage<T extends keyof Namespaces> = ['message', RTMessage<T>];
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 {};
@@ -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,4 @@
1
+ export * from './ensure';
2
+ export * from './file';
3
+ export * from './network';
4
+ export * from './object';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "scripts": {
5
5
  "build": "npx webpack --env NODE_ENV=production",
6
6
  "build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",
@@ -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
+ }
@@ -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
- };