jamespot-user-api 1.0.181 → 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.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +2 -2
- 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/JBbbApi.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/JDatasourceApi.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 +17 -17
- 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 +10 -8
- 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/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/enums/_GroupModerateStatus.html +1 -0
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.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/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/jest.config.ts +1 -2
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/jest.config.d.ts +0 -1
- package/lib/jest.config.vm.d.ts +0 -1
- package/lib/src/apis/admin/utils.d.ts +1 -1
- package/lib/src/apis/article/article.d.ts +3 -1
- package/lib/src/apis/filebank/filebank.d.ts +2 -2
- package/lib/src/apis/group/group.d.ts +218 -9
- package/lib/src/apis/group/group.mock.d.ts +6 -6
- package/lib/src/apis/jland/jland.d.ts +2 -31
- package/lib/src/apis/jland/jland.mock.d.ts +3 -2
- package/lib/src/apis/taxonomy/taxonomy.d.ts +2 -2
- package/lib/src/apis/tvDisplay/tvDisplay.d.ts +962 -3
- package/lib/src/apis/user/user.d.ts +11 -103
- package/lib/src/apis/user/user.mock.d.ts +5 -1
- package/lib/src/apis/widget/widget.d.ts +2 -2
- package/lib/src/apis/widget/widget.mock.d.ts +2 -2
- package/lib/src/types/adminUtils.d.ts +10 -10
- package/lib/src/types/article.d.ts +3065 -4796
- package/lib/src/types/asei.d.ts +231 -413
- package/lib/src/types/assetReservation.d.ts +1051 -1768
- package/lib/src/types/autocomplete.d.ts +14 -14
- package/lib/src/types/businessContact.d.ts +136 -502
- package/lib/src/types/comment.d.ts +231 -413
- package/lib/src/types/diapazone.d.ts +4 -4
- package/lib/src/types/faq.d.ts +1365 -2277
- package/lib/src/types/global.d.ts +2 -2
- package/lib/src/types/group.d.ts +1881 -127
- package/lib/src/types/hook.d.ts +1 -2
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/jLand.d.ts +1175 -0
- package/lib/src/types/mediaLibrary.d.ts +241 -423
- package/lib/src/types/meeting.d.ts +723 -1269
- package/lib/src/types/model.d.ts +653 -89
- package/lib/src/types/object.d.ts +2 -2
- package/lib/src/types/pollSurvey.d.ts +856 -1402
- package/lib/src/types/quizz.d.ts +723 -1269
- package/lib/src/types/search.d.ts +8 -8
- package/lib/src/types/share.d.ts +8 -8
- package/lib/src/types/socialEvent.d.ts +723 -1269
- package/lib/src/types/support.d.ts +723 -1269
- package/lib/src/types/surveyDate.d.ts +726 -1308
- package/lib/src/types/tvDisplay.d.ts +18544 -49
- package/lib/src/types/uri.d.ts +44 -8
- package/lib/src/types/wedoc.d.ts +633 -27
- package/lib/src/types/widgets/common.d.ts +1 -18
- package/lib/src/types/widgets/default.d.ts +538 -1719
- package/lib/src/types/widgets/widgetApi.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleAttachment.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleButton.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleGallery.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleImage.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleSlider.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleText.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleTitle.d.ts +0 -1
- package/lib/src/types/widgets/widgetCheckList.d.ts +7 -4
- package/lib/src/types/widgets/widgetDatasourceTable.d.ts +0 -1
- package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +2 -26
- package/lib/src/types/widgets.d.ts +3573 -4860
- package/lib/src/util/Test.d.ts +5 -498
- package/lib/src/util/group.d.ts +2 -2
- package/lib/src/util/index.d.ts +1 -0
- package/lib/src/util/widget.d.ts +83 -0
- package/package.json +1 -1
- package/phpunitMock/articleCreate-businessContact.json +23 -0
- package/phpunitMock/articleCreate-jLandMap.json +49 -0
- package/phpunitMock/articleDelete-businessContact.json +12 -0
- package/phpunitMock/articleUpdate-businessContact.json +50 -0
- package/phpunitMock/objectListJLandJLandList-success.json +14 -0
- package/phpunitMock/userSignIn-success.json +31 -0
- package/documentation/enums/GroupModerateStatus.html +0 -1
- package/documentation/interfaces/Category.html +0 -1
package/lib/src/util/Test.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JamespotUserApi } from '../apis';
|
|
2
|
-
import { ApiDefaultWrapper, PagingResults } from '../types';
|
|
2
|
+
import { ApiDefaultWrapper, PagingResults, jArticleList, jArticleLittle } from '../types';
|
|
3
3
|
import { FetchResponseType, WindowBrowser } from '../window';
|
|
4
4
|
import { Network } from './network';
|
|
5
5
|
export declare const windowBrowser: WindowBrowser;
|
|
@@ -143,16 +143,7 @@ export declare const arrayRights: ({
|
|
|
143
143
|
t: string;
|
|
144
144
|
})[];
|
|
145
145
|
export declare const fetchMock: <T>(data: T) => jest.Mock<Promise<FetchResponseType<T>>, []>;
|
|
146
|
-
export declare const validateJArticle: <T extends
|
|
147
|
-
type: string;
|
|
148
|
-
id: number;
|
|
149
|
-
mainType: string;
|
|
150
|
-
uri: string;
|
|
151
|
-
dateCreation: string;
|
|
152
|
-
dateModified: string;
|
|
153
|
-
title: string;
|
|
154
|
-
_url: string;
|
|
155
|
-
}>(received: T, expected: T, excludeFields?: string[]) => void;
|
|
146
|
+
export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T, excludeFields?: string[]) => void;
|
|
156
147
|
export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null) => void;
|
|
157
148
|
export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
|
|
158
149
|
export declare const validateObject: <T extends {
|
|
@@ -161,334 +152,7 @@ export declare const validateObject: <T extends {
|
|
|
161
152
|
n: string;
|
|
162
153
|
t: string;
|
|
163
154
|
}>) => void;
|
|
164
|
-
export declare const validateArticleIsFormatList: <T extends
|
|
165
|
-
type: string;
|
|
166
|
-
id: number;
|
|
167
|
-
mainType: string;
|
|
168
|
-
uri: string;
|
|
169
|
-
dateCreation: string;
|
|
170
|
-
dateModified: string;
|
|
171
|
-
title: string;
|
|
172
|
-
_url: string;
|
|
173
|
-
_user: import("../types").jObjectBase & {
|
|
174
|
-
title: string;
|
|
175
|
-
_url: string;
|
|
176
|
-
} & {
|
|
177
|
-
[key: string]: string | number | null;
|
|
178
|
-
level: 0 | 3 | 5 | 9;
|
|
179
|
-
dateCreation: string;
|
|
180
|
-
dateModified: string;
|
|
181
|
-
};
|
|
182
|
-
_right: import("../types").Rights;
|
|
183
|
-
_audience: (import("../types").jUserLittle | {
|
|
184
|
-
type: string;
|
|
185
|
-
id: number;
|
|
186
|
-
mainType: string;
|
|
187
|
-
uri: string;
|
|
188
|
-
dateCreation: string;
|
|
189
|
-
dateModified: string;
|
|
190
|
-
title: string;
|
|
191
|
-
_url: string;
|
|
192
|
-
category: number;
|
|
193
|
-
privacy: number;
|
|
194
|
-
} | {
|
|
195
|
-
type: "folder" | "rootFolder";
|
|
196
|
-
id: number;
|
|
197
|
-
mainType: string;
|
|
198
|
-
uri: string;
|
|
199
|
-
title: string;
|
|
200
|
-
_url: string;
|
|
201
|
-
dateCreation?: string | undefined;
|
|
202
|
-
dateModified?: string | null | undefined;
|
|
203
|
-
folderColor?: string | undefined;
|
|
204
|
-
})[];
|
|
205
|
-
description?: string | null | undefined;
|
|
206
|
-
image?: {
|
|
207
|
-
width: number;
|
|
208
|
-
height: number;
|
|
209
|
-
} | undefined;
|
|
210
|
-
articleWidgets?: {
|
|
211
|
-
title: string;
|
|
212
|
-
widget: {
|
|
213
|
-
layers?: string[] | undefined;
|
|
214
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
215
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
216
|
-
uniqid: string;
|
|
217
|
-
content: {
|
|
218
|
-
uri?: string | undefined;
|
|
219
|
-
limit?: number | undefined;
|
|
220
|
-
tableColumnsData?: {
|
|
221
|
-
name?: string | undefined;
|
|
222
|
-
label?: string | undefined;
|
|
223
|
-
isVisible?: boolean | undefined;
|
|
224
|
-
textEllipsis?: boolean | undefined;
|
|
225
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
226
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
227
|
-
}[] | undefined;
|
|
228
|
-
tableHeadColor?: string | undefined;
|
|
229
|
-
tableHeadTextColor?: string | undefined;
|
|
230
|
-
tableHeadIconColor?: string | undefined;
|
|
231
|
-
tableRowColor?: string | undefined;
|
|
232
|
-
tableRowTextColor?: string | undefined;
|
|
233
|
-
tableBorderRadius?: number | undefined;
|
|
234
|
-
tableSizedColumns?: boolean | undefined;
|
|
235
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
236
|
-
};
|
|
237
|
-
});
|
|
238
|
-
}[] | undefined;
|
|
239
|
-
} = {
|
|
240
|
-
type: string;
|
|
241
|
-
id: number;
|
|
242
|
-
mainType: string;
|
|
243
|
-
uri: string;
|
|
244
|
-
dateCreation: string;
|
|
245
|
-
dateModified: string;
|
|
246
|
-
title: string;
|
|
247
|
-
_url: string;
|
|
248
|
-
_user: import("../types").jObjectBase & {
|
|
249
|
-
title: string;
|
|
250
|
-
_url: string;
|
|
251
|
-
} & {
|
|
252
|
-
[key: string]: string | number | null;
|
|
253
|
-
level: 0 | 3 | 5 | 9;
|
|
254
|
-
dateCreation: string;
|
|
255
|
-
dateModified: string;
|
|
256
|
-
};
|
|
257
|
-
_right: import("../types").Rights;
|
|
258
|
-
_audience: (import("../types").jUserLittle | {
|
|
259
|
-
type: string;
|
|
260
|
-
id: number;
|
|
261
|
-
mainType: string;
|
|
262
|
-
uri: string;
|
|
263
|
-
dateCreation: string;
|
|
264
|
-
dateModified: string;
|
|
265
|
-
title: string;
|
|
266
|
-
_url: string;
|
|
267
|
-
category: number;
|
|
268
|
-
privacy: number;
|
|
269
|
-
} | {
|
|
270
|
-
type: "folder" | "rootFolder";
|
|
271
|
-
id: number;
|
|
272
|
-
mainType: string;
|
|
273
|
-
uri: string;
|
|
274
|
-
title: string;
|
|
275
|
-
_url: string;
|
|
276
|
-
dateCreation?: string | undefined;
|
|
277
|
-
dateModified?: string | null | undefined;
|
|
278
|
-
folderColor?: string | undefined;
|
|
279
|
-
})[];
|
|
280
|
-
description?: string | null | undefined;
|
|
281
|
-
image?: {
|
|
282
|
-
width: number;
|
|
283
|
-
height: number;
|
|
284
|
-
} | undefined;
|
|
285
|
-
articleWidgets?: {
|
|
286
|
-
title: string;
|
|
287
|
-
widget: {
|
|
288
|
-
layers?: string[] | undefined;
|
|
289
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
290
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
291
|
-
uniqid: string;
|
|
292
|
-
content: {
|
|
293
|
-
uri?: string | undefined;
|
|
294
|
-
limit?: number | undefined;
|
|
295
|
-
tableColumnsData?: {
|
|
296
|
-
name?: string | undefined;
|
|
297
|
-
label?: string | undefined;
|
|
298
|
-
isVisible?: boolean | undefined;
|
|
299
|
-
textEllipsis?: boolean | undefined;
|
|
300
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
301
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
302
|
-
}[] | undefined;
|
|
303
|
-
tableHeadColor?: string | undefined;
|
|
304
|
-
tableHeadTextColor?: string | undefined;
|
|
305
|
-
tableHeadIconColor?: string | undefined;
|
|
306
|
-
tableRowColor?: string | undefined;
|
|
307
|
-
tableRowTextColor?: string | undefined;
|
|
308
|
-
tableBorderRadius?: number | undefined;
|
|
309
|
-
tableSizedColumns?: boolean | undefined;
|
|
310
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
311
|
-
};
|
|
312
|
-
});
|
|
313
|
-
}[] | undefined;
|
|
314
|
-
}>(object: T) => void;
|
|
315
|
-
export declare const validateArticleIsFormatView: <T extends {
|
|
316
|
-
type: string;
|
|
317
|
-
id: number;
|
|
318
|
-
mainType: string;
|
|
319
|
-
uri: string;
|
|
320
|
-
dateCreation: string;
|
|
321
|
-
dateModified: string;
|
|
322
|
-
title: string;
|
|
323
|
-
_url: string;
|
|
324
|
-
_user: import("../types").jObjectBase & {
|
|
325
|
-
title: string;
|
|
326
|
-
_url: string;
|
|
327
|
-
} & {
|
|
328
|
-
[key: string]: string | number | null;
|
|
329
|
-
level: 0 | 3 | 5 | 9;
|
|
330
|
-
dateCreation: string;
|
|
331
|
-
dateModified: string;
|
|
332
|
-
};
|
|
333
|
-
_right: import("../types").Rights;
|
|
334
|
-
_audience: (import("../types").jUserLittle | {
|
|
335
|
-
type: string;
|
|
336
|
-
id: number;
|
|
337
|
-
mainType: string;
|
|
338
|
-
uri: string;
|
|
339
|
-
dateCreation: string;
|
|
340
|
-
dateModified: string;
|
|
341
|
-
title: string;
|
|
342
|
-
_url: string;
|
|
343
|
-
category: number;
|
|
344
|
-
privacy: number;
|
|
345
|
-
} | {
|
|
346
|
-
type: "folder" | "rootFolder";
|
|
347
|
-
id: number;
|
|
348
|
-
mainType: string;
|
|
349
|
-
uri: string;
|
|
350
|
-
title: string;
|
|
351
|
-
_url: string;
|
|
352
|
-
dateCreation?: string | undefined;
|
|
353
|
-
dateModified?: string | null | undefined;
|
|
354
|
-
folderColor?: string | undefined;
|
|
355
|
-
})[];
|
|
356
|
-
_attachedFiles: {
|
|
357
|
-
type: string;
|
|
358
|
-
id: number;
|
|
359
|
-
mainType: string;
|
|
360
|
-
uri: string;
|
|
361
|
-
dateCreation: string;
|
|
362
|
-
dateModified: string | null;
|
|
363
|
-
title: string;
|
|
364
|
-
_url: string;
|
|
365
|
-
mimetype: string;
|
|
366
|
-
size: number;
|
|
367
|
-
path?: string | undefined;
|
|
368
|
-
}[];
|
|
369
|
-
description?: string | null | undefined;
|
|
370
|
-
image?: {
|
|
371
|
-
width: number;
|
|
372
|
-
height: number;
|
|
373
|
-
} | undefined;
|
|
374
|
-
articleWidgets?: {
|
|
375
|
-
title: string;
|
|
376
|
-
widget: {
|
|
377
|
-
layers?: string[] | undefined;
|
|
378
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
379
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
380
|
-
uniqid: string;
|
|
381
|
-
content: {
|
|
382
|
-
uri?: string | undefined;
|
|
383
|
-
limit?: number | undefined;
|
|
384
|
-
tableColumnsData?: {
|
|
385
|
-
name?: string | undefined;
|
|
386
|
-
label?: string | undefined;
|
|
387
|
-
isVisible?: boolean | undefined;
|
|
388
|
-
textEllipsis?: boolean | undefined;
|
|
389
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
390
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
391
|
-
}[] | undefined;
|
|
392
|
-
tableHeadColor?: string | undefined;
|
|
393
|
-
tableHeadTextColor?: string | undefined;
|
|
394
|
-
tableHeadIconColor?: string | undefined;
|
|
395
|
-
tableRowColor?: string | undefined;
|
|
396
|
-
tableRowTextColor?: string | undefined;
|
|
397
|
-
tableBorderRadius?: number | undefined;
|
|
398
|
-
tableSizedColumns?: boolean | undefined;
|
|
399
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
400
|
-
};
|
|
401
|
-
});
|
|
402
|
-
}[] | undefined;
|
|
403
|
-
} = {
|
|
404
|
-
type: string;
|
|
405
|
-
id: number;
|
|
406
|
-
mainType: string;
|
|
407
|
-
uri: string;
|
|
408
|
-
dateCreation: string;
|
|
409
|
-
dateModified: string;
|
|
410
|
-
title: string;
|
|
411
|
-
_url: string;
|
|
412
|
-
_user: import("../types").jObjectBase & {
|
|
413
|
-
title: string;
|
|
414
|
-
_url: string;
|
|
415
|
-
} & {
|
|
416
|
-
[key: string]: string | number | null;
|
|
417
|
-
level: 0 | 3 | 5 | 9;
|
|
418
|
-
dateCreation: string;
|
|
419
|
-
dateModified: string;
|
|
420
|
-
};
|
|
421
|
-
_right: import("../types").Rights;
|
|
422
|
-
_audience: (import("../types").jUserLittle | {
|
|
423
|
-
type: string;
|
|
424
|
-
id: number;
|
|
425
|
-
mainType: string;
|
|
426
|
-
uri: string;
|
|
427
|
-
dateCreation: string;
|
|
428
|
-
dateModified: string;
|
|
429
|
-
title: string;
|
|
430
|
-
_url: string;
|
|
431
|
-
category: number;
|
|
432
|
-
privacy: number;
|
|
433
|
-
} | {
|
|
434
|
-
type: "folder" | "rootFolder";
|
|
435
|
-
id: number;
|
|
436
|
-
mainType: string;
|
|
437
|
-
uri: string;
|
|
438
|
-
title: string;
|
|
439
|
-
_url: string;
|
|
440
|
-
dateCreation?: string | undefined;
|
|
441
|
-
dateModified?: string | null | undefined;
|
|
442
|
-
folderColor?: string | undefined;
|
|
443
|
-
})[];
|
|
444
|
-
_attachedFiles: {
|
|
445
|
-
type: string;
|
|
446
|
-
id: number;
|
|
447
|
-
mainType: string;
|
|
448
|
-
uri: string;
|
|
449
|
-
dateCreation: string;
|
|
450
|
-
dateModified: string | null;
|
|
451
|
-
title: string;
|
|
452
|
-
_url: string;
|
|
453
|
-
mimetype: string;
|
|
454
|
-
size: number;
|
|
455
|
-
path?: string | undefined;
|
|
456
|
-
}[];
|
|
457
|
-
description?: string | null | undefined;
|
|
458
|
-
image?: {
|
|
459
|
-
width: number;
|
|
460
|
-
height: number;
|
|
461
|
-
} | undefined;
|
|
462
|
-
articleWidgets?: {
|
|
463
|
-
title: string;
|
|
464
|
-
widget: {
|
|
465
|
-
layers?: string[] | undefined;
|
|
466
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
467
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
468
|
-
uniqid: string;
|
|
469
|
-
content: {
|
|
470
|
-
uri?: string | undefined;
|
|
471
|
-
limit?: number | undefined;
|
|
472
|
-
tableColumnsData?: {
|
|
473
|
-
name?: string | undefined;
|
|
474
|
-
label?: string | undefined;
|
|
475
|
-
isVisible?: boolean | undefined;
|
|
476
|
-
textEllipsis?: boolean | undefined;
|
|
477
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
478
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
479
|
-
}[] | undefined;
|
|
480
|
-
tableHeadColor?: string | undefined;
|
|
481
|
-
tableHeadTextColor?: string | undefined;
|
|
482
|
-
tableHeadIconColor?: string | undefined;
|
|
483
|
-
tableRowColor?: string | undefined;
|
|
484
|
-
tableRowTextColor?: string | undefined;
|
|
485
|
-
tableBorderRadius?: number | undefined;
|
|
486
|
-
tableSizedColumns?: boolean | undefined;
|
|
487
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
488
|
-
};
|
|
489
|
-
});
|
|
490
|
-
}[] | undefined;
|
|
491
|
-
}>(object: T) => void;
|
|
155
|
+
export declare const validateArticleIsFormatList: <T extends jArticleList = jArticleList>(object: T) => void;
|
|
492
156
|
export declare const validateObjectIsFormatAutocomplete: <T extends {
|
|
493
157
|
type: string;
|
|
494
158
|
id: string;
|
|
@@ -496,11 +160,11 @@ export declare const validateObjectIsFormatAutocomplete: <T extends {
|
|
|
496
160
|
uri: string;
|
|
497
161
|
title: string;
|
|
498
162
|
name: string;
|
|
163
|
+
class: string;
|
|
499
164
|
label: string;
|
|
500
165
|
shortUri: string;
|
|
501
166
|
cssClass: string;
|
|
502
167
|
cssColor: string;
|
|
503
|
-
class: string;
|
|
504
168
|
} = {
|
|
505
169
|
type: string;
|
|
506
170
|
id: string;
|
|
@@ -508,168 +172,11 @@ export declare const validateObjectIsFormatAutocomplete: <T extends {
|
|
|
508
172
|
uri: string;
|
|
509
173
|
title: string;
|
|
510
174
|
name: string;
|
|
175
|
+
class: string;
|
|
511
176
|
label: string;
|
|
512
177
|
shortUri: string;
|
|
513
178
|
cssClass: string;
|
|
514
179
|
cssColor: string;
|
|
515
|
-
class: string;
|
|
516
|
-
}>(object: T) => void;
|
|
517
|
-
export declare const validateCommentIsFormatList: <T extends {
|
|
518
|
-
type: string;
|
|
519
|
-
id: number;
|
|
520
|
-
mainType: string;
|
|
521
|
-
uri: string;
|
|
522
|
-
dateCreation: string;
|
|
523
|
-
dateModified: string | null;
|
|
524
|
-
description: string | null;
|
|
525
|
-
_user: import("../types").jObjectBase & {
|
|
526
|
-
title: string;
|
|
527
|
-
_url: string;
|
|
528
|
-
} & {
|
|
529
|
-
[key: string]: string | number | null;
|
|
530
|
-
level: 0 | 3 | 5 | 9;
|
|
531
|
-
dateCreation: string;
|
|
532
|
-
dateModified: string;
|
|
533
|
-
};
|
|
534
|
-
_right: import("../types").Rights;
|
|
535
|
-
_attachedFiles?: {
|
|
536
|
-
type: string;
|
|
537
|
-
id: number;
|
|
538
|
-
mainType: string;
|
|
539
|
-
uri: string;
|
|
540
|
-
dateCreation: string;
|
|
541
|
-
dateModified: string | null;
|
|
542
|
-
title: string;
|
|
543
|
-
_url: string;
|
|
544
|
-
mimetype: string;
|
|
545
|
-
size: number;
|
|
546
|
-
path?: string | undefined;
|
|
547
|
-
}[] | undefined;
|
|
548
|
-
_actions?: Record<string, {
|
|
549
|
-
type: string;
|
|
550
|
-
label: string;
|
|
551
|
-
stats: {
|
|
552
|
-
total: number;
|
|
553
|
-
};
|
|
554
|
-
cssClass: string;
|
|
555
|
-
cssColor: string;
|
|
556
|
-
class: string;
|
|
557
|
-
isActive: boolean;
|
|
558
|
-
struct: {
|
|
559
|
-
type: string;
|
|
560
|
-
targetId: number;
|
|
561
|
-
targetType: string;
|
|
562
|
-
action: string;
|
|
563
|
-
do: string;
|
|
564
|
-
};
|
|
565
|
-
}> | undefined;
|
|
566
|
-
_widgets?: {
|
|
567
|
-
title: string;
|
|
568
|
-
widget: {
|
|
569
|
-
layers?: string[] | undefined;
|
|
570
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
571
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
572
|
-
uniqid: string;
|
|
573
|
-
content: {
|
|
574
|
-
uri?: string | undefined;
|
|
575
|
-
limit?: number | undefined;
|
|
576
|
-
tableColumnsData?: {
|
|
577
|
-
name?: string | undefined;
|
|
578
|
-
label?: string | undefined;
|
|
579
|
-
isVisible?: boolean | undefined;
|
|
580
|
-
textEllipsis?: boolean | undefined;
|
|
581
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
582
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
583
|
-
}[] | undefined;
|
|
584
|
-
tableHeadColor?: string | undefined;
|
|
585
|
-
tableHeadTextColor?: string | undefined;
|
|
586
|
-
tableHeadIconColor?: string | undefined;
|
|
587
|
-
tableRowColor?: string | undefined;
|
|
588
|
-
tableRowTextColor?: string | undefined;
|
|
589
|
-
tableBorderRadius?: number | undefined;
|
|
590
|
-
tableSizedColumns?: boolean | undefined;
|
|
591
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
592
|
-
};
|
|
593
|
-
});
|
|
594
|
-
}[] | undefined;
|
|
595
|
-
} = {
|
|
596
|
-
type: string;
|
|
597
|
-
id: number;
|
|
598
|
-
mainType: string;
|
|
599
|
-
uri: string;
|
|
600
|
-
dateCreation: string;
|
|
601
|
-
dateModified: string | null;
|
|
602
|
-
description: string | null;
|
|
603
|
-
_user: import("../types").jObjectBase & {
|
|
604
|
-
title: string;
|
|
605
|
-
_url: string;
|
|
606
|
-
} & {
|
|
607
|
-
[key: string]: string | number | null;
|
|
608
|
-
level: 0 | 3 | 5 | 9;
|
|
609
|
-
dateCreation: string;
|
|
610
|
-
dateModified: string;
|
|
611
|
-
};
|
|
612
|
-
_right: import("../types").Rights;
|
|
613
|
-
_attachedFiles?: {
|
|
614
|
-
type: string;
|
|
615
|
-
id: number;
|
|
616
|
-
mainType: string;
|
|
617
|
-
uri: string;
|
|
618
|
-
dateCreation: string;
|
|
619
|
-
dateModified: string | null;
|
|
620
|
-
title: string;
|
|
621
|
-
_url: string;
|
|
622
|
-
mimetype: string;
|
|
623
|
-
size: number;
|
|
624
|
-
path?: string | undefined;
|
|
625
|
-
}[] | undefined;
|
|
626
|
-
_actions?: Record<string, {
|
|
627
|
-
type: string;
|
|
628
|
-
label: string;
|
|
629
|
-
stats: {
|
|
630
|
-
total: number;
|
|
631
|
-
};
|
|
632
|
-
cssClass: string;
|
|
633
|
-
cssColor: string;
|
|
634
|
-
class: string;
|
|
635
|
-
isActive: boolean;
|
|
636
|
-
struct: {
|
|
637
|
-
type: string;
|
|
638
|
-
targetId: number;
|
|
639
|
-
targetType: string;
|
|
640
|
-
action: string;
|
|
641
|
-
do: string;
|
|
642
|
-
};
|
|
643
|
-
}> | undefined;
|
|
644
|
-
_widgets?: {
|
|
645
|
-
title: string;
|
|
646
|
-
widget: {
|
|
647
|
-
layers?: string[] | undefined;
|
|
648
|
-
} & (import("../types").WidgetArticleButtonType | import("../types").WidgetArticleGalleryType | import("../types").WidgetArticleTitleType | import("../types").WidgetArticleTextType | import("../types").WidgetArticleImageType | import("../types").WidgetArticleAttachmentType | import("../types").WidgetApiType | import("../types").WidgetArticleSliderType | import("../types").WidgetType<import("../types").WidgetCheckListContent & import("../types").LegacyAngularJSType> | import("../types").WidgetDatasourceTableType | {
|
|
649
|
-
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
650
|
-
uniqid: string;
|
|
651
|
-
content: {
|
|
652
|
-
uri?: string | undefined;
|
|
653
|
-
limit?: number | undefined;
|
|
654
|
-
tableColumnsData?: {
|
|
655
|
-
name?: string | undefined;
|
|
656
|
-
label?: string | undefined;
|
|
657
|
-
isVisible?: boolean | undefined;
|
|
658
|
-
textEllipsis?: boolean | undefined;
|
|
659
|
-
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
660
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
661
|
-
}[] | undefined;
|
|
662
|
-
tableHeadColor?: string | undefined;
|
|
663
|
-
tableHeadTextColor?: string | undefined;
|
|
664
|
-
tableHeadIconColor?: string | undefined;
|
|
665
|
-
tableRowColor?: string | undefined;
|
|
666
|
-
tableRowTextColor?: string | undefined;
|
|
667
|
-
tableBorderRadius?: number | undefined;
|
|
668
|
-
tableSizedColumns?: boolean | undefined;
|
|
669
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
670
|
-
};
|
|
671
|
-
});
|
|
672
|
-
}[] | undefined;
|
|
673
180
|
}>(object: T) => void;
|
|
674
181
|
export declare const expectToHaveProperties: <T>(props: string[], payload: T[]) => void;
|
|
675
182
|
export declare const expectToBeArray: <T>(arr: T[]) => void;
|
package/lib/src/util/group.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GroupProperties,
|
|
2
|
-
export declare const prepareGroupForUpdate: (group:
|
|
1
|
+
import { GroupProperties, jGroupView, UpdateGroup } from '../types/group';
|
|
2
|
+
export declare const prepareGroupForUpdate: (group: jGroupView & GroupProperties) => UpdateGroup;
|
package/lib/src/util/index.d.ts
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ZodSchema } from 'zod';
|
|
2
|
+
import { WidgetApiType, WidgetArticleAttachmentType, WidgetArticleButtonType, WidgetArticleGalleryType, WidgetArticleImageType, WidgetArticleSliderType, WidgetArticleTextType, WidgetArticleTitleType, WidgetCheckListType, WidgetDatasourceTableType } from '../types';
|
|
3
|
+
export declare const ensureWidgetType: (widget: unknown, schema: ZodSchema) => boolean;
|
|
4
|
+
export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../types").WidgetWrapperGeneric<({
|
|
5
|
+
layers?: string[] | undefined;
|
|
6
|
+
} & WidgetApiType) | ({
|
|
7
|
+
layers?: string[] | undefined;
|
|
8
|
+
} & WidgetArticleAttachmentType) | ({
|
|
9
|
+
layers?: string[] | undefined;
|
|
10
|
+
} & WidgetArticleButtonType) | ({
|
|
11
|
+
layers?: string[] | undefined;
|
|
12
|
+
} & WidgetArticleGalleryType) | ({
|
|
13
|
+
layers?: string[] | undefined;
|
|
14
|
+
} & WidgetArticleImageType) | ({
|
|
15
|
+
layers?: string[] | undefined;
|
|
16
|
+
} & WidgetArticleTitleType) | ({
|
|
17
|
+
layers?: string[] | undefined;
|
|
18
|
+
} & WidgetArticleTextType) | ({
|
|
19
|
+
layers?: string[] | undefined;
|
|
20
|
+
} & WidgetArticleSliderType) | ({
|
|
21
|
+
layers?: string[] | undefined;
|
|
22
|
+
} & import("../types").WidgetType<import("../types").WidgetCheckListContent>) | ({
|
|
23
|
+
layers?: string[] | undefined;
|
|
24
|
+
} & WidgetDatasourceTableType) | ({
|
|
25
|
+
layers?: string[] | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
28
|
+
uniqid: string;
|
|
29
|
+
content: {
|
|
30
|
+
uri?: string | undefined;
|
|
31
|
+
limit?: number | undefined;
|
|
32
|
+
tableColumnsData?: {
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
label?: string | undefined;
|
|
35
|
+
isVisible?: boolean | undefined;
|
|
36
|
+
textEllipsis?: boolean | undefined;
|
|
37
|
+
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
38
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
tableHeadColor?: string | undefined;
|
|
41
|
+
tableHeadTextColor?: string | undefined;
|
|
42
|
+
tableHeadIconColor?: string | undefined;
|
|
43
|
+
tableRowColor?: string | undefined;
|
|
44
|
+
tableRowTextColor?: string | undefined;
|
|
45
|
+
tableBorderRadius?: number | undefined;
|
|
46
|
+
tableSizedColumns?: boolean | undefined;
|
|
47
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
48
|
+
};
|
|
49
|
+
})>;
|
|
50
|
+
export declare const ensureWidgetApiType: (widget: unknown) => widget is WidgetApiType;
|
|
51
|
+
export declare const ensureWidgetArticleAttachmentType: (widget: unknown) => widget is WidgetArticleAttachmentType;
|
|
52
|
+
export declare const ensureWidgetArticleButtonType: (widget: unknown) => widget is WidgetArticleButtonType;
|
|
53
|
+
export declare const ensureWidgetArticleGalleryType: (widget: unknown) => widget is WidgetArticleGalleryType;
|
|
54
|
+
export declare const ensureWidgetArticleImageType: (widget: unknown) => widget is WidgetArticleImageType;
|
|
55
|
+
export declare const ensureWidgetArticleSliderType: (widget: unknown) => widget is WidgetArticleSliderType;
|
|
56
|
+
export declare const ensureWidgetArticleTextType: (widget: unknown) => widget is WidgetArticleTextType;
|
|
57
|
+
export declare const ensureWidgetArticleTitleType: (widget: unknown) => widget is WidgetArticleTitleType;
|
|
58
|
+
export declare const ensureWidgetCheckListType: (widget: unknown) => widget is WidgetCheckListType;
|
|
59
|
+
export declare const ensureWidgetDatasourceTableType: (widget: unknown) => widget is WidgetDatasourceTableType;
|
|
60
|
+
export declare const ensureWidgetExcelDatasourceTableType: (widget: unknown) => widget is {
|
|
61
|
+
name: import("../types").WidgetsName.ExcelDatasourceTable;
|
|
62
|
+
uniqid: string;
|
|
63
|
+
content: {
|
|
64
|
+
uri?: string | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
tableColumnsData?: {
|
|
67
|
+
name?: string | undefined;
|
|
68
|
+
label?: string | undefined;
|
|
69
|
+
isVisible?: boolean | undefined;
|
|
70
|
+
textEllipsis?: boolean | undefined;
|
|
71
|
+
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
72
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
tableHeadColor?: string | undefined;
|
|
75
|
+
tableHeadTextColor?: string | undefined;
|
|
76
|
+
tableHeadIconColor?: string | undefined;
|
|
77
|
+
tableRowColor?: string | undefined;
|
|
78
|
+
tableRowTextColor?: string | undefined;
|
|
79
|
+
tableBorderRadius?: number | undefined;
|
|
80
|
+
tableSizedColumns?: boolean | undefined;
|
|
81
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "article",
|
|
3
|
+
"f": "create",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [
|
|
6
|
+
{
|
|
7
|
+
"code": 200,
|
|
8
|
+
"msg": "Enregistrement r\u00e9ussi"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"result": [
|
|
12
|
+
{
|
|
13
|
+
"id": 23,
|
|
14
|
+
"mainType": "article",
|
|
15
|
+
"type": "businessContactCard",
|
|
16
|
+
"uri": "businessContactCard/23",
|
|
17
|
+
"dateCreation": "2024-08-24 16:15:11",
|
|
18
|
+
"dateModified": "2024-08-24 16:15:11",
|
|
19
|
+
"title": "Lastname Firstname",
|
|
20
|
+
"_url": "/article/23"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|