jamespot-user-api 1.0.149 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +11 -11
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +6 -6
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +11 -11
- 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 +3 -3
- package/documentation/classes/JUserApi.html +8 -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/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/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +10 -12
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/bookmark/bookmark.d.ts +34 -1
- package/lib/src/apis/community.d.ts +38 -2
- package/lib/src/apis/file/file.d.ts +6 -4
- package/lib/src/apis/group/group.d.ts +40 -4
- package/lib/src/apis/user/user.d.ts +2 -2
- package/lib/src/types/asei.d.ts +3 -1
- package/lib/src/types/autocomplete.d.ts +1 -1
- package/lib/src/types/bookmark.d.ts +2 -1
- package/lib/src/types/comment.d.ts +3 -1
- package/lib/src/types/common.d.ts +31 -0
- package/lib/src/types/diapazone.d.ts +2 -1
- package/lib/src/types/faq.d.ts +3 -1
- package/lib/src/types/file.d.ts +3 -1
- package/lib/src/types/group.d.ts +2 -1
- package/lib/src/types/index.d.ts +2 -0
- package/lib/src/types/model.d.ts +15 -11
- package/lib/src/types/object.d.ts +249 -0
- package/lib/src/types/realtime.d.ts +2 -1
- package/lib/src/types/search.d.ts +1 -1
- package/lib/src/types/share.d.ts +1 -1
- package/lib/src/types/tvDisplay.d.ts +2 -1
- package/lib/src/types/user.d.ts +49 -8
- package/lib/src/types/utils.d.ts +6 -37
- package/lib/src/types/wedoc.d.ts +3 -1
- package/lib/src/util/Test.d.ts +7 -8
- package/lib/src/util/file.mock.d.ts +78 -52
- package/lib/src/util/network.d.ts +3 -2
- package/package.json +4 -1
- package/phpunitMock/articleCreate-faq-category.json +1 -0
- package/phpunitMock/articleCreate-faq-item.json +1 -0
- package/phpunitMock/articleGet-faq-category.json +1 -0
- package/phpunitMock/articleGet-meeting-view.json +2 -1
- package/phpunitMock/articleGet-pollSurvey-view.json +2 -1
- package/phpunitMock/articleGet-quizz-view.json +2 -1
- package/phpunitMock/articleGet-socialEvent-view.json +2 -1
- package/phpunitMock/articleGet-support-view.json +2 -1
- package/phpunitMock/articleGet-surveyDate-view.json +2 -1
- package/phpunitMock/articleGet-with-widgets.json +188 -184
- package/phpunitMock/articleGetAttachment-success.json +20 -19
- package/phpunitMock/articleUpdate-faq-category.json +1 -0
- package/phpunitMock/articleUpdate-faq-item.json +1 -0
- package/phpunitMock/articleUpdate-mpArticleView.json +2 -1
- package/phpunitMock/aseiSetStatus-default.json +2 -1
- package/phpunitMock/faqAddEntry-success.json +1 -0
- package/phpunitMock/faqAddTheme-success.json +1 -0
- package/phpunitMock/faqDeleteTheme-success.json +1 -0
- package/phpunitMock/faqGetEntry-success.json +1 -0
- package/phpunitMock/faqMoveEntry-success.json +1 -0
- package/phpunitMock/faqMoveTheme-success.json +2 -0
- package/phpunitMock/fileCreate-rawLittle.json +18 -17
- package/phpunitMock/fileGet-default.json +18 -17
- package/phpunitMock/fileUpdate-rawLittle.json +27 -18
- package/phpunitMock/objectListJamespotArticleQueryList-aseiClearanceTicket-view.json +2 -1
- package/phpunitMock/tvDisplayGetChannel-slideshow.json +94 -92
- package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +91 -86
|
@@ -10,7 +10,40 @@ export interface ListFilterSpec {
|
|
|
10
10
|
export declare class JBookmarkApi extends JBaseApi {
|
|
11
11
|
getFormattedList<T extends keyof BookmarkTypes>(filterSpecs: ListFilterSpec, format: T): Promise<ApiWrapper<PagingResults<BookmarkTypes[T]>, import("../../types").BaseMessages>>;
|
|
12
12
|
addFormattedLink<T extends keyof BookmarkTypes>(targetId: number, targetType: string, format: T): Promise<ApiWrapper<BookmarkTypes[T], import("../../types").BaseMessages>>;
|
|
13
|
-
addBookmark(bookmark: Pick<BookmarkTypes[keyof BookmarkTypes], 'bookmarkLabel' | 'bookmarkMeta' | 'bookmarkUrl'>, format?: keyof BookmarkTypes): Promise<ApiWrapper<import("../../types").BookmarkList<
|
|
13
|
+
addBookmark(bookmark: Pick<BookmarkTypes[keyof BookmarkTypes], 'bookmarkLabel' | 'bookmarkMeta' | 'bookmarkUrl'>, format?: keyof BookmarkTypes): Promise<ApiWrapper<import("../../types").BookmarkList<{
|
|
14
|
+
type: string;
|
|
15
|
+
id: number;
|
|
16
|
+
mainType: string;
|
|
17
|
+
uri: string;
|
|
18
|
+
title: string;
|
|
19
|
+
_url: string;
|
|
20
|
+
dateCreation?: string | undefined;
|
|
21
|
+
dateModified?: string | null | undefined;
|
|
22
|
+
}> | import("../../types").BookmarkRawList<{
|
|
23
|
+
type: string;
|
|
24
|
+
id: number;
|
|
25
|
+
mainType: string;
|
|
26
|
+
uri: string;
|
|
27
|
+
title: string;
|
|
28
|
+
_url: string;
|
|
29
|
+
dateCreation?: string | undefined;
|
|
30
|
+
dateModified?: string | null | undefined;
|
|
31
|
+
} | import("zod").objectOutputType<{
|
|
32
|
+
type: import("zod").ZodString;
|
|
33
|
+
id: import("zod").ZodNumber;
|
|
34
|
+
mainType: import("zod").ZodString;
|
|
35
|
+
uri: import("zod").ZodString;
|
|
36
|
+
title: import("zod").ZodString;
|
|
37
|
+
_url: import("zod").ZodString;
|
|
38
|
+
level: import("zod").ZodNativeEnum<{
|
|
39
|
+
readonly ADMIN: 9;
|
|
40
|
+
readonly USER: 5;
|
|
41
|
+
readonly EXTERNAL: 3;
|
|
42
|
+
readonly GUEST: 0;
|
|
43
|
+
}>;
|
|
44
|
+
dateCreation: import("zod").ZodString;
|
|
45
|
+
dateModified: import("zod").ZodString;
|
|
46
|
+
}, import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNullable<import("zod").ZodString>, import("zod").ZodNullable<import("zod").ZodString>, import("zod").ZodNullable<import("zod").ZodString>, import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodNullable<import("zod").ZodString>, import("zod").ZodString, import("zod").ZodString]>, "strip">>, BaseMessagesOne>>;
|
|
14
47
|
delete(bookmarkId: number): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
15
48
|
rename(bookmarkID: number, bookmarkLabel: string, bookmarkUrl?: string): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
16
49
|
move(bookmarkID: number, bookmarkReference: number, position: 'before' | 'after'): Promise<ApiWrapper<null, BaseMessagesOne>>;
|
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
import { ApiReturn, CommunityAutocomplete, Format
|
|
1
|
+
import { ApiReturn, CommunityAutocomplete, Format } from '../types';
|
|
2
2
|
import { JBaseApi } from './base';
|
|
3
3
|
export declare class JCommunityApi extends JBaseApi {
|
|
4
|
-
get<T extends Format = undefined>(idCommunity: string | number, format?: T): Promise<import("../types").ApiWrapper<ApiReturn<T,
|
|
4
|
+
get<T extends Format = undefined>(idCommunity: string | number, format?: T): Promise<import("../types").ApiWrapper<ApiReturn<T, {
|
|
5
|
+
type: string;
|
|
6
|
+
id: number;
|
|
7
|
+
mainType: string;
|
|
8
|
+
uri: string;
|
|
9
|
+
title: string;
|
|
10
|
+
_url: string;
|
|
11
|
+
dateCreation?: string | undefined;
|
|
12
|
+
dateModified?: string | null | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
type: string;
|
|
15
|
+
id: number;
|
|
16
|
+
mainType: string;
|
|
17
|
+
uri: string;
|
|
18
|
+
title: string;
|
|
19
|
+
_url: string;
|
|
20
|
+
dateCreation?: string | undefined;
|
|
21
|
+
dateModified?: string | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
type: string;
|
|
24
|
+
id: number;
|
|
25
|
+
mainType: string;
|
|
26
|
+
uri: string;
|
|
27
|
+
title: string;
|
|
28
|
+
_url: string;
|
|
29
|
+
dateCreation?: string | undefined;
|
|
30
|
+
dateModified?: string | null | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
type: string;
|
|
33
|
+
id: number;
|
|
34
|
+
mainType: string;
|
|
35
|
+
uri: string;
|
|
36
|
+
title: string;
|
|
37
|
+
_url: string;
|
|
38
|
+
dateCreation?: string | undefined;
|
|
39
|
+
dateModified?: string | null | undefined;
|
|
40
|
+
}>, import("../types").BaseMessages>>;
|
|
5
41
|
sendRequest(message: string, idUserTo: number): Promise<import("../types").ApiWrapper<boolean, {
|
|
6
42
|
code: number;
|
|
7
43
|
msg: string;
|
|
@@ -7,16 +7,17 @@ export declare class JFileApi extends JBaseApi {
|
|
|
7
7
|
*/
|
|
8
8
|
upload(config: UploadConfig): Promise<{
|
|
9
9
|
response: ApiWrapper<{
|
|
10
|
-
|
|
10
|
+
type: string;
|
|
11
11
|
id: number;
|
|
12
12
|
mainType: string;
|
|
13
|
-
|
|
13
|
+
uri: string;
|
|
14
14
|
dateCreation: string;
|
|
15
15
|
title: string;
|
|
16
16
|
_url: string;
|
|
17
17
|
dateModified: string | null;
|
|
18
18
|
mimetype: string;
|
|
19
19
|
path?: string;
|
|
20
|
+
size: number;
|
|
20
21
|
}, import("../../types").BaseMessages>;
|
|
21
22
|
token: string;
|
|
22
23
|
}>;
|
|
@@ -28,16 +29,17 @@ export declare class JFileApi extends JBaseApi {
|
|
|
28
29
|
*/
|
|
29
30
|
uploadMany(configArray: Array<UploadConfig>): Promise<{
|
|
30
31
|
response: ApiWrapper<{
|
|
31
|
-
|
|
32
|
+
type: string;
|
|
32
33
|
id: number;
|
|
33
34
|
mainType: string;
|
|
34
|
-
|
|
35
|
+
uri: string;
|
|
35
36
|
dateCreation: string;
|
|
36
37
|
title: string;
|
|
37
38
|
_url: string;
|
|
38
39
|
dateModified: string | null;
|
|
39
40
|
mimetype: string;
|
|
40
41
|
path?: string;
|
|
42
|
+
size: number;
|
|
41
43
|
}, import("../../types").BaseMessages>;
|
|
42
44
|
token: string;
|
|
43
45
|
}[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Category, CreateGroup, GroupList, GroupListConfig, GroupProperties, GroupUserLevel, GroupView, GroupWidget, ResetNotificationConfiguration, UpdateGroup } from '../../types/group';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
|
-
import { ApiReturn, ApiWrapper, Format, PagingResults,
|
|
3
|
+
import { ApiReturn, ApiWrapper, Format, PagingResults, jSpotAutocomplete, jUserLittle } from '../../types';
|
|
4
4
|
export declare class JGroupApi extends JBaseApi {
|
|
5
5
|
/**
|
|
6
6
|
* autocomplete return a list of groups
|
|
@@ -13,21 +13,57 @@ export declare class JGroupApi extends JBaseApi {
|
|
|
13
13
|
* @param format return format
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T,
|
|
16
|
+
create<T extends Format = undefined>(group: CreateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, {
|
|
17
|
+
type: string;
|
|
18
|
+
id: number;
|
|
19
|
+
mainType: string;
|
|
20
|
+
uri: string;
|
|
21
|
+
title: string;
|
|
22
|
+
_url: string;
|
|
23
|
+
dateCreation?: string | undefined;
|
|
24
|
+
dateModified?: string | null | undefined;
|
|
25
|
+
}, GroupList, GroupView, {
|
|
26
|
+
type: string;
|
|
27
|
+
id: number;
|
|
28
|
+
mainType: string;
|
|
29
|
+
uri: string;
|
|
30
|
+
title: string;
|
|
31
|
+
_url: string;
|
|
32
|
+
dateCreation?: string | undefined;
|
|
33
|
+
dateModified?: string | null | undefined;
|
|
34
|
+
}>, import("../../types").BaseMessages>>;
|
|
17
35
|
/**
|
|
18
36
|
* Update a group
|
|
19
37
|
* @param group group to update. The uri is mandatory and identify the group to update
|
|
20
38
|
* @param format return format
|
|
21
39
|
* @returns
|
|
22
40
|
*/
|
|
23
|
-
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T,
|
|
41
|
+
update<T extends Format = undefined>(group: UpdateGroup, format?: T): Promise<ApiWrapper<ApiReturn<T, {
|
|
42
|
+
type: string;
|
|
43
|
+
id: number;
|
|
44
|
+
mainType: string;
|
|
45
|
+
uri: string;
|
|
46
|
+
title: string;
|
|
47
|
+
_url: string;
|
|
48
|
+
dateCreation?: string | undefined;
|
|
49
|
+
dateModified?: string | null | undefined;
|
|
50
|
+
}, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
24
51
|
/**
|
|
25
52
|
* Get a spot
|
|
26
53
|
* @param idSpot
|
|
27
54
|
* @param format
|
|
28
55
|
* @returns
|
|
29
56
|
*/
|
|
30
|
-
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<ApiWrapper<ApiReturn<T,
|
|
57
|
+
getSpot<T extends Format = undefined>(idSpot: number | string, format?: T): Promise<ApiWrapper<ApiReturn<T, {
|
|
58
|
+
type: string;
|
|
59
|
+
id: number;
|
|
60
|
+
mainType: string;
|
|
61
|
+
uri: string;
|
|
62
|
+
title: string;
|
|
63
|
+
_url: string;
|
|
64
|
+
dateCreation?: string | undefined;
|
|
65
|
+
dateModified?: string | null | undefined;
|
|
66
|
+
}, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
|
|
31
67
|
/**
|
|
32
68
|
* Get the properties of a group that are not within the model
|
|
33
69
|
* @param idSpot
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper,
|
|
3
|
-
export type User =
|
|
2
|
+
import { ApiWrapper, jObjectLittle, UserModel, UserMapModel, jUserAutocomplete, ApiPagingResults, ApiDefaultWrapper, jUserLittle, Readable, jUserValues, UserFieldsConfigurationType, UserFieldsType, UserField } from '../../types';
|
|
3
|
+
export type User = jObjectLittle & {
|
|
4
4
|
id: string;
|
|
5
5
|
shortUri: string;
|
|
6
6
|
name: string;
|
package/lib/src/types/asei.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { jArticleLittle, jArticleView
|
|
2
|
+
import { jArticleLittle, jArticleView } from './utils';
|
|
3
|
+
import { jObjectLittle } from './object';
|
|
4
|
+
import { Rights } from './common';
|
|
3
5
|
export type AseiTicketStatus = 'created' | 'validated' | 'handled';
|
|
4
6
|
export type AseiTicket = jArticleView & {
|
|
5
7
|
aseiClearanceTicketValidator: jUserLittle[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { jLinkList
|
|
2
|
+
import { jLinkList } from './utils';
|
|
3
|
+
import { jObjectBase, jObjectLittle } from './object';
|
|
3
4
|
export type BookmarkRawList<T extends jObjectBase = jObjectLittle | jUserLittle> = jLinkList<T> & {
|
|
4
5
|
bookmarkUrl?: string | null;
|
|
5
6
|
bookmarkOrder?: number;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { Readable
|
|
2
|
+
import { Readable } from './utils';
|
|
3
3
|
import { jFileLittle } from './file';
|
|
4
4
|
import { SocialAction } from './global';
|
|
5
|
+
import { jObjectBase } from './object';
|
|
6
|
+
import { Rights } from './common';
|
|
5
7
|
export type jCommentLittle = Readable<Omit<jObjectBase, 'dateModified'> & {
|
|
6
8
|
dateCreation: string;
|
|
7
9
|
dateModified: string | null;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rightsSchema: z.ZodObject<{
|
|
3
|
+
create: z.ZodBoolean;
|
|
4
|
+
read: z.ZodBoolean;
|
|
5
|
+
publish: z.ZodBoolean;
|
|
6
|
+
administrate: z.ZodBoolean;
|
|
7
|
+
update: z.ZodBoolean;
|
|
8
|
+
delete: z.ZodBoolean;
|
|
9
|
+
comment: z.ZodBoolean;
|
|
10
|
+
member: z.ZodBoolean;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
create: boolean;
|
|
13
|
+
read: boolean;
|
|
14
|
+
publish: boolean;
|
|
15
|
+
administrate: boolean;
|
|
16
|
+
update: boolean;
|
|
17
|
+
delete: boolean;
|
|
18
|
+
comment: boolean;
|
|
19
|
+
member: boolean;
|
|
20
|
+
}, {
|
|
21
|
+
create: boolean;
|
|
22
|
+
read: boolean;
|
|
23
|
+
publish: boolean;
|
|
24
|
+
administrate: boolean;
|
|
25
|
+
update: boolean;
|
|
26
|
+
delete: boolean;
|
|
27
|
+
comment: boolean;
|
|
28
|
+
member: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
export type Rights = z.infer<typeof rightsSchema>;
|
|
31
|
+
export declare const validateIsFormatRights: (object: object) => boolean;
|
package/lib/src/types/faq.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Format, jArticleList, jArticleLittle, MaybeWithToken } from './utils';
|
|
2
|
-
import { ImageSize } from './file';
|
|
2
|
+
import { ImageSize, jFileLittle } from './file';
|
|
3
3
|
import { AudienceAutocomplete, jObjectAutocomplete } from './autocomplete';
|
|
4
4
|
import { ArticleCreation } from './article';
|
|
5
5
|
export type FaqView = FaqList & {
|
|
@@ -11,6 +11,7 @@ export type FaqView = FaqList & {
|
|
|
11
11
|
id?: string;
|
|
12
12
|
items: string[];
|
|
13
13
|
}[];
|
|
14
|
+
_attachedFiles: jFileLittle[];
|
|
14
15
|
};
|
|
15
16
|
export type FaqList = jArticleList & {
|
|
16
17
|
faqColor?: string;
|
|
@@ -28,6 +29,7 @@ export type FaqItemView = Omit<FaqItemList, 'hierarchy'> & {
|
|
|
28
29
|
uriCategory: jArticleLittle[];
|
|
29
30
|
themeId: string;
|
|
30
31
|
_nbAttachedFiles?: number;
|
|
32
|
+
_attachedFiles: jFileLittle[];
|
|
31
33
|
uiObjectLink: unknown;
|
|
32
34
|
};
|
|
33
35
|
export type FaqItemList = jArticleList & {
|
package/lib/src/types/file.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Readable
|
|
1
|
+
import { Readable } from './utils';
|
|
2
|
+
import { jObjectLittle } from './object';
|
|
2
3
|
export type UploadConfig = {
|
|
3
4
|
attrName: string;
|
|
4
5
|
token: string;
|
|
@@ -22,6 +23,7 @@ export type jFileLittle = Readable<Omit<jObjectLittle, 'dateModified'> & {
|
|
|
22
23
|
dateModified: string | null;
|
|
23
24
|
mimetype: string;
|
|
24
25
|
path?: string;
|
|
26
|
+
size: number;
|
|
25
27
|
}>;
|
|
26
28
|
export type jFileLittleCrop = jFileLittle & {
|
|
27
29
|
_extend: {
|
package/lib/src/types/group.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { Filters, Orders
|
|
2
|
+
import { Filters, Orders } from './utils';
|
|
3
|
+
import { jObjectBase, jObjectLittle } from './object';
|
|
3
4
|
export type CreateGroup = {
|
|
4
5
|
type: string;
|
|
5
6
|
title: string;
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './asei';
|
|
|
7
7
|
export * from './assetReservation';
|
|
8
8
|
export * from './autocomplete';
|
|
9
9
|
export * from './bookmark';
|
|
10
|
+
export * from './common';
|
|
10
11
|
export * from './diapazone';
|
|
11
12
|
export * from './drive';
|
|
12
13
|
export * from './faq';
|
|
@@ -14,6 +15,7 @@ export * from './file';
|
|
|
14
15
|
export * from './mediaLibrary';
|
|
15
16
|
export * from './model';
|
|
16
17
|
export * from './network';
|
|
18
|
+
export * from './object';
|
|
17
19
|
export * from './search';
|
|
18
20
|
export * from './share';
|
|
19
21
|
export * from './socialAction';
|
package/lib/src/types/model.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
export type WidgetText = {
|
|
2
3
|
type: 'text';
|
|
3
4
|
};
|
|
4
|
-
export
|
|
5
|
+
export declare const widgetTextValueSchema: z.ZodString;
|
|
5
6
|
export type WidgetTextarea = {
|
|
6
7
|
type: 'textarea';
|
|
7
8
|
params?: {
|
|
@@ -9,11 +10,11 @@ export type WidgetTextarea = {
|
|
|
9
10
|
mention: '1';
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
|
-
export
|
|
13
|
+
export declare const widgetTextareaValueSchema: z.ZodNullable<z.ZodString>;
|
|
13
14
|
export type WidgetNumber = {
|
|
14
15
|
type: 'number';
|
|
15
16
|
};
|
|
16
|
-
export
|
|
17
|
+
export declare const widgetNumberValueSchema: z.ZodNumber;
|
|
17
18
|
export type WidgetColor = {
|
|
18
19
|
type: 'color';
|
|
19
20
|
options: {
|
|
@@ -25,16 +26,16 @@ export type WidgetDate = {
|
|
|
25
26
|
type: 'date';
|
|
26
27
|
format: string;
|
|
27
28
|
};
|
|
28
|
-
export
|
|
29
|
+
export declare const widgetDateValueSchema: z.ZodNullable<z.ZodString>;
|
|
29
30
|
export type WidgetDatetime = {
|
|
30
31
|
type: 'datetime';
|
|
31
32
|
};
|
|
32
|
-
export
|
|
33
|
+
export declare const widgetDatetimeValueSchema: z.ZodNullable<z.ZodString>;
|
|
33
34
|
export type WidgetDatePicker = {
|
|
34
35
|
type: 'datePicker';
|
|
35
36
|
};
|
|
36
|
-
export
|
|
37
|
-
export
|
|
37
|
+
export declare const widgetDatePickerValueSchema: z.ZodNullable<z.ZodString>;
|
|
38
|
+
export declare const widgetActiveValueSchema: z.ZodNumber;
|
|
38
39
|
export type WidgetLink = {
|
|
39
40
|
type: 'link';
|
|
40
41
|
};
|
|
@@ -53,17 +54,20 @@ export type WidgetSelect<U extends string = string> = {
|
|
|
53
54
|
explain?: 1;
|
|
54
55
|
};
|
|
55
56
|
};
|
|
57
|
+
export type WidgetEmbed = {
|
|
58
|
+
type: 'embed';
|
|
59
|
+
};
|
|
56
60
|
export type WidgetEmail = {
|
|
57
61
|
type: 'email';
|
|
58
62
|
};
|
|
59
|
-
export
|
|
63
|
+
export declare const widgetEmailValueSchema: z.ZodString;
|
|
60
64
|
export type WidgetUrl = {
|
|
61
65
|
type: 'url';
|
|
62
66
|
params: {
|
|
63
67
|
target?: '_blank';
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
|
-
export
|
|
70
|
+
export declare const widgetUrlValueSchema: z.ZodString;
|
|
67
71
|
export type WidgetPlace = {
|
|
68
72
|
type: 'place';
|
|
69
73
|
options: Record<string, string>;
|
|
@@ -108,8 +112,8 @@ export type WidgetUri = {
|
|
|
108
112
|
type: string;
|
|
109
113
|
};
|
|
110
114
|
};
|
|
111
|
-
export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetTel | WidgetPlace | WidgetColor | WidgetLink | WidgetFile;
|
|
112
|
-
export
|
|
115
|
+
export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmbed | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetTel | WidgetPlace | WidgetColor | WidgetLink | WidgetFile;
|
|
116
|
+
export declare const widgetsValueSchema: z.ZodUnion<[z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString]>;
|
|
113
117
|
export type FieldConfiguration<T extends string = string> = {
|
|
114
118
|
label: string;
|
|
115
119
|
description?: string;
|