jamespot-user-api 1.0.150 → 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.
Files changed (102) 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/JBusinessNetworkingApi.html +1 -1
  12. package/documentation/classes/JCommunityApi.html +1 -1
  13. package/documentation/classes/JDiapazoneApi.html +1 -1
  14. package/documentation/classes/JFaqApi.html +1 -1
  15. package/documentation/classes/JFileApi.html +6 -6
  16. package/documentation/classes/JFilebankApi.html +1 -1
  17. package/documentation/classes/JGlobalApi.html +1 -1
  18. package/documentation/classes/JGroupApi.html +11 -11
  19. package/documentation/classes/JIAApi.html +1 -1
  20. package/documentation/classes/JLandApi.html +1 -1
  21. package/documentation/classes/JMessengerApi.html +1 -1
  22. package/documentation/classes/JObjectApi.html +1 -1
  23. package/documentation/classes/JSearchApi.html +6 -6
  24. package/documentation/classes/JShareApi.html +1 -1
  25. package/documentation/classes/JSocialActionApi.html +1 -1
  26. package/documentation/classes/JTaxonomyApi.html +3 -3
  27. package/documentation/classes/JUserApi.html +8 -8
  28. package/documentation/classes/JWedocApi.html +1 -1
  29. package/documentation/classes/JWidgetApi.html +1 -1
  30. package/documentation/classes/JamespotUserApi.html +1 -1
  31. package/documentation/classes/Network.html +1 -1
  32. package/documentation/classes/TVDisplayApi.html +1 -1
  33. package/documentation/classes/WindowBrowser.html +1 -1
  34. package/documentation/enums/StudioApplicationStatus.html +1 -1
  35. package/documentation/index.html +1 -1
  36. package/documentation/interfaces/AccessRightObject.html +1 -1
  37. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  38. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  39. package/documentation/interfaces/ApiWrapper.html +1 -1
  40. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  41. package/documentation/interfaces/BaseMessage.html +1 -1
  42. package/documentation/interfaces/Category.html +1 -1
  43. package/documentation/interfaces/FileBankProps.html +1 -1
  44. package/documentation/interfaces/FolderProps.html +1 -1
  45. package/documentation/interfaces/ListFilterSpec.html +1 -1
  46. package/documentation/interfaces/OF.html +1 -1
  47. package/documentation/interfaces/ObjectListProps.html +1 -1
  48. package/documentation/interfaces/PagingResults.html +1 -1
  49. package/documentation/interfaces/RootFolderProps.html +1 -1
  50. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  51. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  52. package/documentation/interfaces/SearchConfig.html +1 -1
  53. package/documentation/interfaces/SearchFacetModel.html +1 -1
  54. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  55. package/documentation/interfaces/SearchQuery.html +1 -1
  56. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  57. package/documentation/interfaces/SearchQueryOption.html +1 -1
  58. package/documentation/interfaces/SearchQueryResult.html +1 -1
  59. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  60. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  61. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  62. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  63. package/documentation/interfaces/SpotProps.html +1 -1
  64. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  65. package/documentation/interfaces/WindowInterface.html +1 -1
  66. package/documentation/modules.html +10 -12
  67. package/lib/jamespot-user-api.js +1 -1
  68. package/lib/jamespot-user-api.js.map +1 -1
  69. package/lib/src/apis/bookmark/bookmark.d.ts +34 -1
  70. package/lib/src/apis/community.d.ts +38 -2
  71. package/lib/src/apis/file/file.d.ts +6 -4
  72. package/lib/src/apis/group/group.d.ts +40 -4
  73. package/lib/src/apis/user/user.d.ts +2 -2
  74. package/lib/src/types/asei.d.ts +3 -1
  75. package/lib/src/types/autocomplete.d.ts +1 -1
  76. package/lib/src/types/bookmark.d.ts +2 -1
  77. package/lib/src/types/comment.d.ts +3 -1
  78. package/lib/src/types/common.d.ts +31 -0
  79. package/lib/src/types/diapazone.d.ts +2 -1
  80. package/lib/src/types/file.d.ts +3 -1
  81. package/lib/src/types/group.d.ts +2 -1
  82. package/lib/src/types/index.d.ts +2 -0
  83. package/lib/src/types/model.d.ts +11 -10
  84. package/lib/src/types/object.d.ts +249 -0
  85. package/lib/src/types/realtime.d.ts +2 -1
  86. package/lib/src/types/search.d.ts +1 -1
  87. package/lib/src/types/share.d.ts +1 -1
  88. package/lib/src/types/tvDisplay.d.ts +2 -1
  89. package/lib/src/types/user.d.ts +49 -8
  90. package/lib/src/types/utils.d.ts +2 -35
  91. package/lib/src/types/wedoc.d.ts +3 -1
  92. package/lib/src/util/Test.d.ts +7 -8
  93. package/lib/src/util/file.mock.d.ts +78 -52
  94. package/lib/src/util/network.d.ts +3 -2
  95. package/package.json +4 -1
  96. package/phpunitMock/articleGet-with-widgets.json +188 -184
  97. package/phpunitMock/articleGetAttachment-success.json +20 -19
  98. package/phpunitMock/fileCreate-rawLittle.json +18 -17
  99. package/phpunitMock/fileGet-default.json +18 -17
  100. package/phpunitMock/fileUpdate-rawLittle.json +27 -18
  101. package/phpunitMock/tvDisplayGetChannel-slideshow.json +94 -92
  102. 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<import("../../types").jObjectLittle> | import("../../types").BookmarkRawList<import("../../types").jObjectLittle | import("../../types").jUserLittle>, BaseMessagesOne>>;
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, jObjectLittle } from '../types';
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, jObjectLittle, jObjectLittle, jObjectLittle, jObjectLittle>, import("../types").BaseMessages>>;
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
- uri: string;
10
+ type: string;
11
11
  id: number;
12
12
  mainType: string;
13
- type: string;
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
- uri: string;
32
+ type: string;
32
33
  id: number;
33
34
  mainType: string;
34
- type: string;
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, jObjectLittle, jSpotAutocomplete, jUserLittle } from '../../types';
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, jObjectLittle, GroupList, GroupView, jObjectLittle>, import("../../types").BaseMessages>>;
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, jObjectLittle, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
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, jObjectLittle, GroupList, GroupView, string>, import("../../types").BaseMessages>>;
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, Little, jObjectLittle, UserModel, UserMapModel, jUserAutocomplete, ApiPagingResults, ApiDefaultWrapper, jUserLittle, Readable, jUserValues, UserFieldsConfigurationType, UserFieldsType, UserField } from '../../types';
3
- export type User = Little & {
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;
@@ -1,5 +1,7 @@
1
1
  import { jUserLittle } from './user';
2
- import { jArticleLittle, jArticleView, jObjectLittle, Rights } from './utils';
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,4 +1,4 @@
1
- import { jObjectLittle } from './utils';
1
+ import { jObjectLittle } from './object';
2
2
  export interface BaseAutocomplete {
3
3
  id: string;
4
4
  uri: string;
@@ -1,5 +1,6 @@
1
1
  import { jUserLittle } from './user';
2
- import { jLinkList, jObjectBase, jObjectLittle } from './utils';
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, Rights, jObjectBase } from './utils';
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;
@@ -1,4 +1,5 @@
1
- import { Audience, jObjectList } from './utils';
1
+ import { Audience } from './utils';
2
+ import { jObjectList } from './object';
2
3
  export type jDiapazoneList = jObjectList & {
3
4
  dateStart: string;
4
5
  animatedMeetingContent: Record<string, unknown>;
@@ -1,4 +1,5 @@
1
- import { Readable, jObjectLittle } from './utils';
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: {
@@ -1,5 +1,6 @@
1
1
  import { jUserLittle } from './user';
2
- import { Filters, Orders, jObjectBase, jObjectLittle } from './utils';
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;
@@ -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';
@@ -1,7 +1,8 @@
1
+ import { z } from 'zod';
1
2
  export type WidgetText = {
2
3
  type: 'text';
3
4
  };
4
- export type WidgetTextValue = string;
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 type WidgetTextareaValue = string | null;
13
+ export declare const widgetTextareaValueSchema: z.ZodNullable<z.ZodString>;
13
14
  export type WidgetNumber = {
14
15
  type: 'number';
15
16
  };
16
- export type WidgetNumberValue = number;
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 type WidgetDateValue = string | null;
29
+ export declare const widgetDateValueSchema: z.ZodNullable<z.ZodString>;
29
30
  export type WidgetDatetime = {
30
31
  type: 'datetime';
31
32
  };
32
- export type WidgetDatetimeValue = string | null;
33
+ export declare const widgetDatetimeValueSchema: z.ZodNullable<z.ZodString>;
33
34
  export type WidgetDatePicker = {
34
35
  type: 'datePicker';
35
36
  };
36
- export type WidgetDatePickerValue = string | null;
37
- export type WidgetActiveValue = number;
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
  };
@@ -59,14 +60,14 @@ export type WidgetEmbed = {
59
60
  export type WidgetEmail = {
60
61
  type: 'email';
61
62
  };
62
- export type WidgetEmailValue = string;
63
+ export declare const widgetEmailValueSchema: z.ZodString;
63
64
  export type WidgetUrl = {
64
65
  type: 'url';
65
66
  params: {
66
67
  target?: '_blank';
67
68
  };
68
69
  };
69
- export type WidgetUrlValue = string;
70
+ export declare const widgetUrlValueSchema: z.ZodString;
70
71
  export type WidgetPlace = {
71
72
  type: 'place';
72
73
  options: Record<string, string>;
@@ -112,7 +113,7 @@ export type WidgetUri = {
112
113
  };
113
114
  };
114
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;
115
- export type WidgetsValue = WidgetActiveValue | WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
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]>;
116
117
  export type FieldConfiguration<T extends string = string> = {
117
118
  label: string;
118
119
  description?: string;
@@ -0,0 +1,249 @@
1
+ import { z } from 'zod';
2
+ export declare const jObjectBaseSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ mainType: z.ZodString;
5
+ type: z.ZodString;
6
+ uri: z.ZodString;
7
+ dateCreation: z.ZodOptional<z.ZodString>;
8
+ dateModified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: string;
11
+ id: number;
12
+ mainType: string;
13
+ uri: string;
14
+ dateCreation?: string | undefined;
15
+ dateModified?: string | null | undefined;
16
+ }, {
17
+ type: string;
18
+ id: number;
19
+ mainType: string;
20
+ uri: string;
21
+ dateCreation?: string | undefined;
22
+ dateModified?: string | null | undefined;
23
+ }>;
24
+ export type jObjectBase = z.infer<typeof jObjectBaseSchema>;
25
+ export declare const jObjectLittleSchema: z.ZodObject<{
26
+ type: z.ZodString;
27
+ id: z.ZodNumber;
28
+ mainType: z.ZodString;
29
+ uri: z.ZodString;
30
+ dateCreation: z.ZodOptional<z.ZodString>;
31
+ dateModified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ title: z.ZodString;
33
+ _url: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: string;
36
+ id: number;
37
+ mainType: string;
38
+ uri: string;
39
+ title: string;
40
+ _url: string;
41
+ dateCreation?: string | undefined;
42
+ dateModified?: string | null | undefined;
43
+ }, {
44
+ type: string;
45
+ id: number;
46
+ mainType: string;
47
+ uri: string;
48
+ title: string;
49
+ _url: string;
50
+ dateCreation?: string | undefined;
51
+ dateModified?: string | null | undefined;
52
+ }>;
53
+ export type jObjectLittle = z.infer<typeof jObjectLittleSchema>;
54
+ export declare const validateIsFormatObjectLittle: (object: object) => object is {
55
+ type: string;
56
+ id: number;
57
+ mainType: string;
58
+ uri: string;
59
+ title: string;
60
+ _url: string;
61
+ dateCreation?: string | undefined;
62
+ dateModified?: string | null | undefined;
63
+ };
64
+ export declare const jObjectListSchema: z.ZodLazy<z.ZodObject<{
65
+ type: z.ZodString;
66
+ id: z.ZodNumber;
67
+ mainType: z.ZodString;
68
+ uri: z.ZodString;
69
+ dateCreation: z.ZodOptional<z.ZodString>;
70
+ dateModified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
+ title: z.ZodString;
72
+ _url: z.ZodString;
73
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
+ _user: z.ZodLazy<z.ZodObject<{
75
+ type: z.ZodString;
76
+ id: z.ZodNumber;
77
+ mainType: z.ZodString;
78
+ uri: z.ZodString;
79
+ title: z.ZodString;
80
+ _url: z.ZodString;
81
+ level: z.ZodNativeEnum<{
82
+ readonly ADMIN: 9;
83
+ readonly USER: 5;
84
+ readonly EXTERNAL: 3;
85
+ readonly GUEST: 0;
86
+ }>;
87
+ dateCreation: z.ZodString;
88
+ dateModified: z.ZodString;
89
+ }, "strip", 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]>, z.objectOutputType<{
90
+ type: z.ZodString;
91
+ id: z.ZodNumber;
92
+ mainType: z.ZodString;
93
+ uri: z.ZodString;
94
+ title: z.ZodString;
95
+ _url: z.ZodString;
96
+ level: z.ZodNativeEnum<{
97
+ readonly ADMIN: 9;
98
+ readonly USER: 5;
99
+ readonly EXTERNAL: 3;
100
+ readonly GUEST: 0;
101
+ }>;
102
+ dateCreation: z.ZodString;
103
+ dateModified: z.ZodString;
104
+ }, 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]>, "strip">, z.objectInputType<{
105
+ type: z.ZodString;
106
+ id: z.ZodNumber;
107
+ mainType: z.ZodString;
108
+ uri: z.ZodString;
109
+ title: z.ZodString;
110
+ _url: z.ZodString;
111
+ level: z.ZodNativeEnum<{
112
+ readonly ADMIN: 9;
113
+ readonly USER: 5;
114
+ readonly EXTERNAL: 3;
115
+ readonly GUEST: 0;
116
+ }>;
117
+ dateCreation: z.ZodString;
118
+ dateModified: z.ZodString;
119
+ }, 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]>, "strip">>>;
120
+ _right: z.ZodObject<{
121
+ create: z.ZodBoolean;
122
+ read: z.ZodBoolean;
123
+ publish: z.ZodBoolean;
124
+ administrate: z.ZodBoolean;
125
+ update: z.ZodBoolean;
126
+ delete: z.ZodBoolean;
127
+ comment: z.ZodBoolean;
128
+ member: z.ZodBoolean;
129
+ }, "strip", z.ZodTypeAny, {
130
+ create: boolean;
131
+ read: boolean;
132
+ publish: boolean;
133
+ administrate: boolean;
134
+ update: boolean;
135
+ delete: boolean;
136
+ comment: boolean;
137
+ member: boolean;
138
+ }, {
139
+ create: boolean;
140
+ read: boolean;
141
+ publish: boolean;
142
+ administrate: boolean;
143
+ update: boolean;
144
+ delete: boolean;
145
+ comment: boolean;
146
+ member: boolean;
147
+ }>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ id: number;
151
+ mainType: string;
152
+ uri: string;
153
+ title: string;
154
+ _url: string;
155
+ _user: {
156
+ type: string;
157
+ id: number;
158
+ mainType: string;
159
+ uri: string;
160
+ dateCreation: string;
161
+ dateModified: string;
162
+ title: string;
163
+ _url: string;
164
+ level: 0 | 9 | 5 | 3;
165
+ } & {
166
+ [k: string]: string | number | null;
167
+ };
168
+ _right: {
169
+ create: boolean;
170
+ read: boolean;
171
+ publish: boolean;
172
+ administrate: boolean;
173
+ update: boolean;
174
+ delete: boolean;
175
+ comment: boolean;
176
+ member: boolean;
177
+ };
178
+ dateCreation?: string | undefined;
179
+ dateModified?: string | null | undefined;
180
+ description?: string | null | undefined;
181
+ }, {
182
+ type: string;
183
+ id: number;
184
+ mainType: string;
185
+ uri: string;
186
+ title: string;
187
+ _url: string;
188
+ _user: {
189
+ type: string;
190
+ id: number;
191
+ mainType: string;
192
+ uri: string;
193
+ dateCreation: string;
194
+ dateModified: string;
195
+ title: string;
196
+ _url: string;
197
+ level: 0 | 9 | 5 | 3;
198
+ } & {
199
+ [k: string]: string | number | null;
200
+ };
201
+ _right: {
202
+ create: boolean;
203
+ read: boolean;
204
+ publish: boolean;
205
+ administrate: boolean;
206
+ update: boolean;
207
+ delete: boolean;
208
+ comment: boolean;
209
+ member: boolean;
210
+ };
211
+ dateCreation?: string | undefined;
212
+ dateModified?: string | null | undefined;
213
+ description?: string | null | undefined;
214
+ }>>;
215
+ export type jObjectList = z.infer<typeof jObjectListSchema>;
216
+ export declare const validateIsFormatObjectList: (object: object) => object is {
217
+ type: string;
218
+ id: number;
219
+ mainType: string;
220
+ uri: string;
221
+ title: string;
222
+ _url: string;
223
+ _user: {
224
+ type: string;
225
+ id: number;
226
+ mainType: string;
227
+ uri: string;
228
+ dateCreation: string;
229
+ dateModified: string;
230
+ title: string;
231
+ _url: string;
232
+ level: 0 | 9 | 5 | 3;
233
+ } & {
234
+ [k: string]: string | number | null;
235
+ };
236
+ _right: {
237
+ create: boolean;
238
+ read: boolean;
239
+ publish: boolean;
240
+ administrate: boolean;
241
+ update: boolean;
242
+ delete: boolean;
243
+ comment: boolean;
244
+ member: boolean;
245
+ };
246
+ dateCreation?: string | undefined;
247
+ dateModified?: string | null | undefined;
248
+ description?: string | null | undefined;
249
+ };
@@ -1,4 +1,5 @@
1
- import { AllKeys, Readable, jObjectBase } from './utils';
1
+ import { AllKeys, Readable } from './utils';
2
+ import { jObjectBase } from './object';
2
3
  type BookmarksFunctions = 'update' | 'add' | 'delete';
3
4
  type AnimationsFunctions = 'update' | 'add' | 'delete' | 'toggle' | 'getAnimationActive';
4
5
  type CustomActionFunctions = 'update' | 'add' | 'remove';
@@ -1,4 +1,4 @@
1
- import { jObjectLittle } from './utils';
1
+ import { jObjectLittle } from './object';
2
2
  export interface SearchCategoryModel {
3
3
  id: string;
4
4
  mainType: string;
@@ -1,6 +1,6 @@
1
1
  import { GroupLittle } from './group';
2
2
  import { jUserLittle } from './user';
3
- import { Rights } from './utils';
3
+ import { Rights } from './common';
4
4
  export type ShareGeneralAccessRules = 'link' | 'invitation';
5
5
  export type ShareOptionObject = {
6
6
  id: number;