jamespot-user-api 1.0.180 → 1.0.182

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 (130) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +2 -2
  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/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +17 -17
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +10 -8
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/StudioApplicationStatus.html +1 -1
  39. package/documentation/enums/WidgetsName.html +1 -1
  40. package/documentation/enums/_GroupModerateStatus.html +1 -0
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/jest.config.ts +1 -2
  58. package/lib/jamespot-user-api.js +1 -1
  59. package/lib/jamespot-user-api.js.map +1 -1
  60. package/lib/jest.config.d.ts +0 -1
  61. package/lib/jest.config.vm.d.ts +0 -1
  62. package/lib/src/apis/admin/utils.d.ts +1 -1
  63. package/lib/src/apis/article/article.d.ts +3 -1
  64. package/lib/src/apis/file/file.d.ts +2 -2
  65. package/lib/src/apis/filebank/filebank.d.ts +2 -2
  66. package/lib/src/apis/group/group.d.ts +218 -9
  67. package/lib/src/apis/group/group.mock.d.ts +6 -6
  68. package/lib/src/apis/jland/jland.d.ts +2 -31
  69. package/lib/src/apis/jland/jland.mock.d.ts +3 -2
  70. package/lib/src/apis/taxonomy/taxonomy.d.ts +2 -2
  71. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +962 -3
  72. package/lib/src/apis/user/user.d.ts +11 -103
  73. package/lib/src/apis/user/user.mock.d.ts +5 -1
  74. package/lib/src/apis/widget/widget.d.ts +2 -2
  75. package/lib/src/apis/widget/widget.mock.d.ts +2 -2
  76. package/lib/src/types/adminUtils.d.ts +10 -10
  77. package/lib/src/types/article.d.ts +3065 -4796
  78. package/lib/src/types/asei.d.ts +231 -413
  79. package/lib/src/types/assetReservation.d.ts +1051 -1768
  80. package/lib/src/types/autocomplete.d.ts +14 -14
  81. package/lib/src/types/businessContact.d.ts +136 -502
  82. package/lib/src/types/comment.d.ts +231 -413
  83. package/lib/src/types/diapazone.d.ts +4 -4
  84. package/lib/src/types/faq.d.ts +1365 -2277
  85. package/lib/src/types/global.d.ts +2 -2
  86. package/lib/src/types/group.d.ts +1881 -127
  87. package/lib/src/types/hook.d.ts +1 -2
  88. package/lib/src/types/index.d.ts +1 -0
  89. package/lib/src/types/jLand.d.ts +1175 -0
  90. package/lib/src/types/mediaLibrary.d.ts +241 -423
  91. package/lib/src/types/meeting.d.ts +723 -1269
  92. package/lib/src/types/model.d.ts +653 -89
  93. package/lib/src/types/object.d.ts +2 -2
  94. package/lib/src/types/pollSurvey.d.ts +856 -1402
  95. package/lib/src/types/quizz.d.ts +723 -1269
  96. package/lib/src/types/search.d.ts +8 -8
  97. package/lib/src/types/share.d.ts +8 -8
  98. package/lib/src/types/socialEvent.d.ts +723 -1269
  99. package/lib/src/types/support.d.ts +723 -1269
  100. package/lib/src/types/surveyDate.d.ts +726 -1308
  101. package/lib/src/types/tvDisplay.d.ts +18544 -49
  102. package/lib/src/types/uri.d.ts +44 -8
  103. package/lib/src/types/wedoc.d.ts +633 -27
  104. package/lib/src/types/widgets/common.d.ts +1 -18
  105. package/lib/src/types/widgets/default.d.ts +538 -1719
  106. package/lib/src/types/widgets/widgetApi.d.ts +0 -1
  107. package/lib/src/types/widgets/widgetArticleAttachment.d.ts +0 -1
  108. package/lib/src/types/widgets/widgetArticleButton.d.ts +0 -1
  109. package/lib/src/types/widgets/widgetArticleGallery.d.ts +0 -1
  110. package/lib/src/types/widgets/widgetArticleImage.d.ts +0 -1
  111. package/lib/src/types/widgets/widgetArticleSlider.d.ts +0 -1
  112. package/lib/src/types/widgets/widgetArticleText.d.ts +0 -1
  113. package/lib/src/types/widgets/widgetArticleTitle.d.ts +0 -1
  114. package/lib/src/types/widgets/widgetCheckList.d.ts +7 -4
  115. package/lib/src/types/widgets/widgetDatasourceTable.d.ts +0 -1
  116. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +2 -26
  117. package/lib/src/types/widgets.d.ts +3573 -4860
  118. package/lib/src/util/Test.d.ts +5 -498
  119. package/lib/src/util/group.d.ts +2 -2
  120. package/lib/src/util/index.d.ts +1 -0
  121. package/lib/src/util/widget.d.ts +83 -0
  122. package/package.json +1 -1
  123. package/phpunitMock/articleCreate-businessContact.json +23 -0
  124. package/phpunitMock/articleCreate-jLandMap.json +49 -0
  125. package/phpunitMock/articleDelete-businessContact.json +12 -0
  126. package/phpunitMock/articleUpdate-businessContact.json +50 -0
  127. package/phpunitMock/objectListJLandJLandList-success.json +14 -0
  128. package/phpunitMock/userSignIn-success.json +31 -0
  129. package/documentation/enums/GroupModerateStatus.html +0 -1
  130. package/documentation/interfaces/Category.html +0 -1
@@ -14,7 +14,6 @@ declare const Config: {
14
14
  functions: number;
15
15
  };
16
16
  };
17
- coveragePathIgnorePatterns: string[];
18
17
  moduleNameMapper: {
19
18
  '^@phpunitMock/(.*)$': string;
20
19
  };
@@ -17,6 +17,5 @@ declare const ConfigVM: {
17
17
  functions: number;
18
18
  };
19
19
  };
20
- coveragePathIgnorePatterns: string[];
21
20
  };
22
21
  export default ConfigVM;
@@ -12,9 +12,9 @@ export declare class AdminUtilsApi extends JBaseApi {
12
12
  url?: string | undefined;
13
13
  state?: string | undefined;
14
14
  tabs?: {
15
- idDiv: string;
16
15
  label: string;
17
16
  icon: string;
17
+ idDiv: string;
18
18
  href?: string | undefined;
19
19
  sref?: string | undefined;
20
20
  licenseMode?: "classic" | undefined;
@@ -15,7 +15,9 @@ export declare class JArticleApi extends JBaseApi {
15
15
  create<R extends jArticleLittle = jArticleLittle, P extends ArticleCreation = ArticleCreation>(article: MaybeWithToken<P>, format?: FormatList): Promise<ApiWrapper<Array<R>, BaseMessages>>;
16
16
  update<T extends {
17
17
  uri: string;
18
- }, U extends jArticleLittle = jArticleList>(article: T): Promise<ApiWrapper<U, BaseMessages>>;
18
+ }, U extends jArticleLittle = jArticleList>(article: T, options?: {
19
+ format?: FormatList;
20
+ }): Promise<ApiWrapper<U, BaseMessages>>;
19
21
  delete(id: number): Promise<ApiWrapper<boolean, BaseMessages>>;
20
22
  count(type: string): Promise<ApiWrapper<number>>;
21
23
  getAttachments(id: number, type: string, format?: FormatList): Promise<ApiWrapper<jFileLittle[]>>;
@@ -1,4 +1,4 @@
1
- import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle, UserDownload, FormatList, FileCopyParams } from '../../types';
1
+ import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jFileLittle, UserDownload, FormatList, FileCopyParams } from '../../types';
2
2
  import { JBaseApi } from '../base';
3
3
  export declare class JFileApi extends JBaseApi {
4
4
  /**
@@ -44,7 +44,7 @@ export declare class JFileApi extends JBaseApi {
44
44
  token: string;
45
45
  }[]>;
46
46
  get<T extends jFileLittle>(idFile: number, format?: FormatList): Promise<ApiWrapper<T>>;
47
- getParent<T extends jArticleLittle>(idFile: number, format?: FormatList): Promise<ApiWrapper<T>>;
47
+ getParent<T extends jObjectLittle>(idFile: number, format?: FormatList): Promise<ApiWrapper<T>>;
48
48
  getWithHash<T extends jFileLittle>(idFile: number, hash: string, format?: FormatList): Promise<ApiWrapper<T>>;
49
49
  duplicate(idFile: number, title: string, publishTo?: string[]): Promise<ApiWrapper<{
50
50
  idFile: number;
@@ -3,7 +3,7 @@ import { jObjectLittle } from '../../types/objectBase';
3
3
  import { Rights } from '../../types/common';
4
4
  import { jArticleLittle, jArticleView, jFolderList } from '../../types/article';
5
5
  import { ApiPagingResults, ApiWrapper, FormatList } from '../../types/utils';
6
- import { jGroupList } from '../../types/group';
6
+ import { jGroupLittle } from '../../types/group';
7
7
  import { jObjectList } from '../../types/object';
8
8
  export interface RootFolderProps {
9
9
  id: number;
@@ -24,7 +24,7 @@ export interface SpotProps {
24
24
  export interface FileBankProps {
25
25
  recents: jObjectList[];
26
26
  rootFolder: jFolderList;
27
- spot: jGroupList;
27
+ spot: jGroupLittle;
28
28
  }
29
29
  export interface FolderProps extends jObjectLittle {
30
30
  mainType: string;
@@ -1,4 +1,4 @@
1
- import { Category, CreateGroup, GroupList, GroupListConfig, GroupProperties, GroupUserLevel, GroupView, GroupWidget, ResetNotificationConfiguration, UpdateGroup, UserLevelAndRight } from '../../types/group';
1
+ import { CreateGroup, jGroupList, GroupListConfig, GroupUserLevel, ResetNotificationConfiguration, UpdateGroup, UserLevelAndRight } from '../../types/group';
2
2
  import { JBaseApi } from '../base';
3
3
  import { ApiReturn, ApiWrapper, BaseMessages, FormatList, jObjectLittle, jUserLittle, PagingResults } from '../../types';
4
4
  export declare class JGroupApi extends JBaseApi {
@@ -13,11 +13,11 @@ export declare class JGroupApi extends JBaseApi {
13
13
  uri: string;
14
14
  title: string;
15
15
  name: string;
16
+ class: string;
16
17
  label: string;
17
18
  shortUri: string;
18
19
  cssClass: string;
19
20
  cssColor: string;
20
- class: string;
21
21
  idspot: string;
22
22
  }[]>;
23
23
  /**
@@ -26,36 +26,245 @@ export declare class JGroupApi extends JBaseApi {
26
26
  * @param format return format
27
27
  * @returns
28
28
  */
29
- create<T extends FormatList = undefined>(group: CreateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, jObjectLittle>, BaseMessages>>;
29
+ create<T extends FormatList = undefined>(group: CreateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, {
30
+ type: string;
31
+ id: number;
32
+ mainType: string;
33
+ uri: string;
34
+ dateCreation: string;
35
+ dateModified: string;
36
+ title: string;
37
+ _url: string;
38
+ description: string;
39
+ language: string;
40
+ privacy: number;
41
+ edito: string | null;
42
+ category: number;
43
+ }, {
44
+ type: string;
45
+ id: number;
46
+ mainType: string;
47
+ uri: string;
48
+ dateCreation: string;
49
+ dateModified: string;
50
+ title: string;
51
+ _url: string;
52
+ description: string;
53
+ language: string;
54
+ privacy: number;
55
+ edito: string | null;
56
+ category: number;
57
+ image?: string | null | undefined;
58
+ idCommunity?: string | undefined;
59
+ useTeaser?: "" | "0" | "1" | null | undefined;
60
+ spotBanner?: never[] | Record<string, {
61
+ id: string;
62
+ size: string;
63
+ name: string;
64
+ }> | undefined;
65
+ }, jObjectLittle>, BaseMessages>>;
30
66
  /**
31
67
  * Update a group
32
68
  * @param group group to update. The uri is mandatory and identify the group to update
33
69
  * @param format return format
34
70
  * @returns
35
71
  */
36
- update<T extends FormatList = undefined>(group: UpdateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, string>, BaseMessages>>;
72
+ update<T extends FormatList = undefined>(group: UpdateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, {
73
+ type: string;
74
+ id: number;
75
+ mainType: string;
76
+ uri: string;
77
+ dateCreation: string;
78
+ dateModified: string;
79
+ title: string;
80
+ _url: string;
81
+ description: string;
82
+ language: string;
83
+ privacy: number;
84
+ edito: string | null;
85
+ category: number;
86
+ }, {
87
+ type: string;
88
+ id: number;
89
+ mainType: string;
90
+ uri: string;
91
+ dateCreation: string;
92
+ dateModified: string;
93
+ title: string;
94
+ _url: string;
95
+ description: string;
96
+ language: string;
97
+ privacy: number;
98
+ edito: string | null;
99
+ category: number;
100
+ image?: string | null | undefined;
101
+ idCommunity?: string | undefined;
102
+ useTeaser?: "" | "0" | "1" | null | undefined;
103
+ spotBanner?: never[] | Record<string, {
104
+ id: string;
105
+ size: string;
106
+ name: string;
107
+ }> | undefined;
108
+ }, string>, BaseMessages>>;
37
109
  /**
38
110
  * Get a spot
39
111
  * @param idSpot
40
112
  * @param format
41
113
  * @returns
42
114
  */
43
- getSpot<T extends FormatList = undefined>(idSpot: number | string, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, GroupList, GroupView, string>, BaseMessages>>;
115
+ getSpot<T extends FormatList = undefined>(idSpot: number | string, format?: T): Promise<ApiWrapper<ApiReturn<T, jObjectLittle, {
116
+ type: string;
117
+ id: number;
118
+ mainType: string;
119
+ uri: string;
120
+ dateCreation: string;
121
+ dateModified: string;
122
+ title: string;
123
+ _url: string;
124
+ description: string;
125
+ language: string;
126
+ privacy: number;
127
+ edito: string | null;
128
+ category: number;
129
+ }, {
130
+ type: string;
131
+ id: number;
132
+ mainType: string;
133
+ uri: string;
134
+ dateCreation: string;
135
+ dateModified: string;
136
+ title: string;
137
+ _url: string;
138
+ description: string;
139
+ language: string;
140
+ privacy: number;
141
+ edito: string | null;
142
+ category: number;
143
+ image?: string | null | undefined;
144
+ idCommunity?: string | undefined;
145
+ useTeaser?: "" | "0" | "1" | null | undefined;
146
+ spotBanner?: never[] | Record<string, {
147
+ id: string;
148
+ size: string;
149
+ name: string;
150
+ }> | undefined;
151
+ }, string>, BaseMessages>>;
44
152
  /**
45
153
  * Get the properties of a group that are not within the model
46
154
  * @param idSpot
47
155
  * @returns
48
156
  */
49
- getProperties(idSpot: number | string): Promise<ApiWrapper<GroupProperties, BaseMessages>>;
157
+ getProperties(idSpot: number | string): Promise<ApiWrapper<{
158
+ edit_access: "" | "author";
159
+ commentLevel: "1" | "-1" | "2" | "3";
160
+ displayType: string;
161
+ user_level_signup: "" | "1" | "2" | "3";
162
+ spot_right_user: string;
163
+ useTeaser: "" | "0" | "1" | null;
164
+ spotDefaultPublishType: string;
165
+ mail_frequency: string;
166
+ widgets: string[];
167
+ fileSyncVersioningType: "overwrite" | "author-change";
168
+ nounsubscribe: "0" | "1";
169
+ rss_feed: {
170
+ url: string;
171
+ idUser: number;
172
+ date?: string | undefined;
173
+ send?: boolean | undefined;
174
+ _user?: jUserLittle | undefined;
175
+ error?: string | undefined;
176
+ }[] | null;
177
+ mail_comment: "" | "1";
178
+ mail_spotit: "" | "1";
179
+ mail_subscriber: "" | "1";
180
+ lock_mail: "" | "1";
181
+ activity: "0" | "1";
182
+ publishFolder: "0" | "1";
183
+ notifyFolder: "0" | "1";
184
+ rss_access: "0" | "1";
185
+ rss_key: string;
186
+ fileSyncEnabled: "0" | "1";
187
+ fileBankQuota: string;
188
+ _options: {
189
+ edit_access: ({
190
+ value: string | number;
191
+ label: string;
192
+ } & {
193
+ description: string;
194
+ })[];
195
+ commentLevel: ({
196
+ value: string | number;
197
+ label: string;
198
+ } & {
199
+ selected?: boolean | undefined;
200
+ })[];
201
+ displayType: {
202
+ value: string | number;
203
+ label: string;
204
+ }[];
205
+ user_level_signup: ({
206
+ value: string | number;
207
+ label: string;
208
+ } & {
209
+ selected?: boolean | undefined;
210
+ })[];
211
+ spot_right_user: ({
212
+ value: string | number;
213
+ label: string;
214
+ } & {
215
+ selected?: boolean | undefined;
216
+ })[];
217
+ useTeaser: {
218
+ value: string | number;
219
+ label: string;
220
+ }[];
221
+ spotDefaultPublishType: string[];
222
+ mail_frequency: {
223
+ value: string | number;
224
+ label: string;
225
+ }[];
226
+ widgets: {
227
+ id: string;
228
+ title: string;
229
+ }[];
230
+ custom_widgets: never[] | Record<string, {
231
+ type: string;
232
+ title: string;
233
+ url: string;
234
+ idSpot: string;
235
+ idOrder: string;
236
+ idWidget: string;
237
+ visible: string;
238
+ }>;
239
+ isArchive: number;
240
+ fileSyncVersioningType: {
241
+ value: string | number;
242
+ label: string;
243
+ }[];
244
+ };
245
+ _errors: [];
246
+ lastRssExecution?: Record<string, string> | undefined;
247
+ }, BaseMessages>>;
50
248
  /**
51
249
  * Get the available applications that can be added to a group
52
250
  */
53
- getApplications(): Promise<ApiWrapper<Record<string, GroupWidget>, BaseMessages>>;
251
+ getApplications(): Promise<ApiWrapper<Record<string, {
252
+ type: string;
253
+ title: string;
254
+ url: string;
255
+ description: string;
256
+ idWidget: string;
257
+ icon: string;
258
+ }>, BaseMessages>>;
54
259
  /**
55
260
  * Get the available group categories
56
261
  * @returns
57
262
  */
58
- getCategories(): Promise<ApiWrapper<Category[], BaseMessages>>;
263
+ getCategories(): Promise<ApiWrapper<{
264
+ id: string;
265
+ label: string;
266
+ idorder: number;
267
+ }[], BaseMessages>>;
59
268
  /**
60
269
  * Get the members of a group
61
270
  * @param idSpot spot id
@@ -68,7 +277,7 @@ export declare class JGroupApi extends JBaseApi {
68
277
  level: GroupUserLevel;
69
278
  user: jUserLittle;
70
279
  }>, BaseMessages>>;
71
- list<T extends GroupList = GroupList>(config: GroupListConfig): Promise<ApiWrapper<PagingResults<T>>>;
280
+ list<T extends jGroupList = jGroupList>(config: GroupListConfig): Promise<ApiWrapper<PagingResults<T>>>;
72
281
  /**
73
282
  * Reset the notifications configuration for all users of the group
74
283
  * @param config configuration
@@ -1,10 +1,10 @@
1
- import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, jSpotAutocomplete, UserLevelAndRight } from '../../types';
2
- import { Category, GroupMemberLevel, GroupProperties, GroupView, GroupWidget, jGroupList } from '../../types/group';
3
- export declare const spot: ApiWrapper<GroupView>;
1
+ import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, jGroupLittle, jGroupView, jSpotAutocomplete, UserLevelAndRight } from '../../types';
2
+ import { Category, GroupMemberLevel, GroupProperties, GroupWidget } from '../../types/group';
3
+ export declare const spot: ApiWrapper<jGroupView>;
4
4
  export declare const properties: ApiWrapper<GroupProperties>;
5
5
  export declare const groupAutocompleteA: ApiWrapper<jSpotAutocomplete[]>;
6
- export declare const groupCreate: ApiWrapper<GroupView>;
7
- export declare const groupUpdate: ApiWrapper<GroupView>;
6
+ export declare const groupCreate: ApiWrapper<jGroupView>;
7
+ export declare const groupUpdate: ApiWrapper<jGroupView>;
8
8
  export declare const groupGetAvailableWidget: ApiWrapper<Record<string, GroupWidget>>;
9
9
  export declare const groupGetCategories: ApiWrapper<Category[]>;
10
10
  export declare const groupGetUserLevelAndRight: ApiWrapper<UserLevelAndRight>;
@@ -15,7 +15,7 @@ export declare const groupAddToFavoriteSuccess: ApiWrapper<boolean>;
15
15
  export declare const groupAddToFavoriteForbidden: ApiDefaultWrapper;
16
16
  export declare const groupAddToFavoriteBad: ApiDefaultWrapper;
17
17
  export declare const groupObjectListJamespotSpotMembers: ApiPagingResults<GroupMemberLevel>;
18
- export declare const groupList: ApiPagingResults<jGroupList>;
18
+ export declare const groupList: ApiPagingResults<jGroupLittle>;
19
19
  export declare const groupResetNotification: ApiWrapper<{
20
20
  members: number;
21
21
  msg: string;
@@ -1,34 +1,5 @@
1
1
  import { JBaseApi } from '../base';
2
- import { ApiWrapper, jArticleList, License, MaybeWithToken, PagingResults } from '../../types';
3
- import { ArticleCreation } from '../../types/article';
4
- export type JLandLog = {
5
- idLog: number;
6
- slug: string;
7
- dateCreation: string;
8
- map: string;
9
- mail: string;
10
- action: string;
11
- mode: string;
12
- };
13
- export type JLandStat = {
14
- mail: string;
15
- cnt: string;
16
- };
17
- export type JLandMapFlavor = string;
18
- export type JLandMapKind = string;
19
- export type JLandMap = jArticleList & {
20
- jlandMapFlavor: JLandMapFlavor;
21
- jlandMapKind: JLandMapKind;
22
- waMapUrl?: string;
23
- limit?: number;
24
- _extend: {
25
- licenses: Array<License>;
26
- };
27
- };
28
- export type JLandMapCreation = ArticleCreation & {
29
- jlandMapAggregated: string;
30
- type: 'jlandmap';
31
- };
2
+ import { ApiWrapper, JLandLog, JLandMap, JLandMapCreation, JLandMapList, JLandMapLittle, JLandMapView, JLandStat, MaybeWithToken, PagingResults } from '../../types';
32
3
  export declare class JLandApi extends JBaseApi {
33
4
  getLogs({ dateEnd, idLogMax, }: {
34
5
  dateEnd?: string;
@@ -40,5 +11,5 @@ export declare class JLandApi extends JBaseApi {
40
11
  dateEnd?: string;
41
12
  }): Promise<ApiWrapper<Array<JLandStat>>>;
42
13
  getAllMapsAsAdmin(format?: string): Promise<ApiWrapper<PagingResults<JLandMap>>>;
43
- createMap(map: MaybeWithToken<JLandMapCreation>, format?: string): Promise<ApiWrapper<unknown, import("../../types").BaseMessages>>;
14
+ createMap<T extends JLandMapLittle | JLandMapList | JLandMapView = JLandMapList>(map: MaybeWithToken<JLandMapCreation>, format?: string): Promise<ApiWrapper<T[]>>;
44
15
  }
@@ -1,5 +1,6 @@
1
- import { ApiWrapper } from '../../types';
2
- import { JLandLog, JLandStat } from './jland';
1
+ import { ApiWrapper, JLandLog, JLandMap, JLandMapList, JLandStat, PagingResults } from '../../types';
3
2
  export declare const jLandAdminLogsEmpty: ApiWrapper<Array<JLandLog>>;
4
3
  export declare const jLandAdminLogsFull: ApiWrapper<Array<JLandLog>>;
5
4
  export declare const jLandAdminStatsEmpty: ApiWrapper<Array<JLandStat>>;
5
+ export declare const jLandGetAllMapsAsAdmin: ApiWrapper<PagingResults<JLandMap>>;
6
+ export declare const jLandCreateMap: ApiWrapper<JLandMapList[]>;
@@ -19,11 +19,11 @@ export declare class JTaxonomyApi extends JBaseApi {
19
19
  uri: string;
20
20
  title: string;
21
21
  name: string;
22
+ class: string;
22
23
  label: string;
23
24
  shortUri: string;
24
25
  cssClass: string;
25
26
  cssColor: string;
26
- class: string;
27
27
  }[], import("../../types").BaseMessages>>;
28
28
  autocompleteList<T = jObjectAutocomplete>({ format, ...payload }: AutoCompleteList): Promise<ApiWrapper<PagingResults<T>, import("../../types").BaseMessages>>;
29
29
  autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<{
@@ -33,10 +33,10 @@ export declare class JTaxonomyApi extends JBaseApi {
33
33
  uri: string;
34
34
  title: string;
35
35
  name: string;
36
+ class: string;
36
37
  label: string;
37
38
  shortUri: string;
38
39
  cssClass: string;
39
40
  cssColor: string;
40
- class: string;
41
41
  }>, import("../../types").BaseMessages>>;
42
42
  }