jamespot-user-api 1.0.114 → 1.0.116

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 (120) hide show
  1. package/documentation/assets/main.js +2 -2
  2. package/documentation/assets/search.js +1 -1
  3. package/documentation/assets/style.css +3 -2
  4. package/documentation/classes/AdminLicenseApi.html +11 -11
  5. package/documentation/classes/AdminStoreApi.html +1 -1
  6. package/documentation/classes/AdminUtilsApi.html +1 -1
  7. package/documentation/classes/JApplicationApi.html +8 -8
  8. package/documentation/classes/JArticleApi.html +1 -1
  9. package/documentation/classes/JAssetReservation.html +1 -1
  10. package/documentation/classes/JAudienceApi.html +1 -1
  11. package/documentation/classes/JBaseApi.html +1 -1
  12. package/documentation/classes/JBookmarkApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDiapazoneApi.html +1 -1
  15. package/documentation/classes/JFaqApi.html +1 -0
  16. package/documentation/classes/JFileApi.html +5 -5
  17. package/documentation/classes/JFilebankApi.html +1 -1
  18. package/documentation/classes/JGroupApi.html +11 -11
  19. package/documentation/classes/JLandApi.html +1 -1
  20. package/documentation/classes/JMessengerApi.html +1 -1
  21. package/documentation/classes/JSearchApi.html +6 -6
  22. package/documentation/classes/JShareApi.html +1 -1
  23. package/documentation/classes/JTaxonomyApi.html +2 -2
  24. package/documentation/classes/JUserApi.html +5 -5
  25. package/documentation/classes/JWedocApi.html +1 -1
  26. package/documentation/classes/JamespotUserApi.html +2 -2
  27. package/documentation/classes/Network.html +2 -2
  28. package/documentation/classes/TVDisplayApi.html +1 -1
  29. package/documentation/classes/WindowBrowser.html +1 -1
  30. package/documentation/enums/StudioApplicationStatus.html +1 -1
  31. package/documentation/index.html +2 -2
  32. package/documentation/interfaces/AccessRightObject.html +1 -1
  33. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  34. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  35. package/documentation/interfaces/ApiWrapper.html +1 -1
  36. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  37. package/documentation/interfaces/BaseMessage.html +1 -1
  38. package/documentation/interfaces/Category.html +1 -1
  39. package/documentation/interfaces/FileBankProps.html +1 -1
  40. package/documentation/interfaces/FolderProps.html +1 -1
  41. package/documentation/interfaces/ListFilterSpec.html +1 -1
  42. package/documentation/interfaces/OF.html +1 -1
  43. package/documentation/interfaces/ObjectListProps.html +1 -1
  44. package/documentation/interfaces/PagingResults.html +1 -1
  45. package/documentation/interfaces/RootFolderProps.html +1 -1
  46. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  47. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  48. package/documentation/interfaces/SearchConfig.html +1 -1
  49. package/documentation/interfaces/SearchFacetModel.html +1 -1
  50. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  51. package/documentation/interfaces/SearchQuery.html +1 -1
  52. package/documentation/interfaces/SearchQueryFilterModel.html +2 -2
  53. package/documentation/interfaces/SearchQueryOption.html +2 -2
  54. package/documentation/interfaces/SearchQueryResult.html +1 -1
  55. package/documentation/interfaces/SearchQuerySortModel.html +2 -2
  56. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  57. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  58. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  59. package/documentation/interfaces/SpotProps.html +1 -1
  60. package/documentation/interfaces/Taxonomy.html +1 -1
  61. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  62. package/documentation/interfaces/WindowInterface.html +1 -1
  63. package/documentation/modules.html +9 -9
  64. package/lib/jamespot-user-api.js +1 -1
  65. package/lib/jamespot-user-api.js.map +1 -1
  66. package/lib/src/apis/application/types.d.ts +6 -6
  67. package/lib/src/apis/article/article.d.ts +14 -7
  68. package/lib/src/apis/article/article.mock.d.ts +2 -0
  69. package/lib/src/apis/faq/faq.d.ts +12 -0
  70. package/lib/src/apis/faq/faq.mock.d.ts +7 -0
  71. package/lib/src/apis/faq/faq.test.d.ts +1 -0
  72. package/lib/src/apis/file.d.ts +1 -8
  73. package/lib/src/apis/filebank.d.ts +3 -3
  74. package/lib/src/apis/index.d.ts +1 -0
  75. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  76. package/lib/src/apis/jland/jland.d.ts +6 -6
  77. package/lib/src/apis/taxonomy/taxonomy.d.ts +3 -6
  78. package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +3 -3
  79. package/lib/src/apis/taxonomy/types.d.ts +4 -4
  80. package/lib/src/apis/user/user.d.ts +3 -3
  81. package/lib/src/types/adminLicence.d.ts +6 -6
  82. package/lib/src/types/adminStore.d.ts +2 -2
  83. package/lib/src/types/adminUtils.d.ts +3 -3
  84. package/lib/src/types/asei.d.ts +5 -5
  85. package/lib/src/types/assetReservation.d.ts +4 -4
  86. package/lib/src/types/autocomplete.d.ts +6 -6
  87. package/lib/src/types/bookmark.d.ts +5 -5
  88. package/lib/src/types/comment.d.ts +2 -2
  89. package/lib/src/types/diapazone.d.ts +1 -1
  90. package/lib/src/types/drive.d.ts +5 -5
  91. package/lib/src/types/faq.d.ts +30 -0
  92. package/lib/src/types/file.d.ts +12 -11
  93. package/lib/src/types/group.d.ts +13 -13
  94. package/lib/src/types/index.d.ts +1 -0
  95. package/lib/src/types/mediaLibrary.d.ts +3 -3
  96. package/lib/src/types/model.d.ts +32 -32
  97. package/lib/src/types/realtime.d.ts +14 -14
  98. package/lib/src/types/search.d.ts +4 -4
  99. package/lib/src/types/share.d.ts +5 -5
  100. package/lib/src/types/tvDisplay.d.ts +18 -18
  101. package/lib/src/types/uri.d.ts +1 -1
  102. package/lib/src/types/user.d.ts +5 -5
  103. package/lib/src/types/utils.d.ts +29 -29
  104. package/lib/src/types/wedoc.d.ts +2 -2
  105. package/lib/src/types/widgets.d.ts +39 -39
  106. package/lib/src/util/Test.d.ts +2 -1
  107. package/lib/src/util/ensure.d.ts +2 -2
  108. package/lib/src/util/images.d.ts +6 -6
  109. package/lib/src/util/network.d.ts +3 -3
  110. package/lib/src/util/taxonomy.d.ts +3 -0
  111. package/lib/src/window/Window.d.ts +2 -2
  112. package/package.json +72 -73
  113. package/phpunitMock/articleCreate-faq-category.json +51 -0
  114. package/phpunitMock/articleDelete-faq-category.json +12 -0
  115. package/phpunitMock/articleGet-faq-category.json +45 -0
  116. package/phpunitMock/articleGetAttachment-success.json +18 -0
  117. package/phpunitMock/articleUpdate-faq-category.json +49 -0
  118. package/phpunitMock/faqGetFaqTaxonomy-success.json +10 -0
  119. package/phpunitMock/faqGetHookProperties-success.json +9 -0
  120. package/pnpm-lock.yaml +0 -12425
@@ -1,11 +1,15 @@
1
1
  import { Readable, jObjectLittle } from './utils';
2
- export declare type UploadConfig = {
2
+ export type UploadConfig = {
3
3
  attrName: string;
4
4
  token: string;
5
5
  file?: File | null;
6
6
  url?: string;
7
7
  };
8
- export declare type FileResponse = {
8
+ export type ImageSize = {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ export type FileResponse = {
9
13
  id: string;
10
14
  name: string;
11
15
  type: string;
@@ -13,12 +17,9 @@ export declare type FileResponse = {
13
17
  crop?: FileCropConfig;
14
18
  size: string;
15
19
  mediaKey: string;
16
- imagesize: {
17
- width: number;
18
- height: number;
19
- };
20
+ imagesize: ImageSize;
20
21
  };
21
- export declare type FileCropConfig = {
22
+ export type FileCropConfig = {
22
23
  x: number;
23
24
  y: number;
24
25
  width: number;
@@ -26,20 +27,20 @@ export declare type FileCropConfig = {
26
27
  rotation: number;
27
28
  killSize?: boolean;
28
29
  };
29
- export declare type FileCropReturnType = Omit<FileResponse, 'token'> & {
30
+ export type FileCropReturnType = Omit<FileResponse, 'token'> & {
30
31
  crop: FileCropConfig;
31
32
  };
32
- export declare type jFileLittle = Readable<Omit<jObjectLittle, 'dateModified'> & {
33
+ export type jFileLittle = Readable<Omit<jObjectLittle, 'dateModified'> & {
33
34
  dateCreation: string;
34
35
  dateModified: string | null;
35
36
  }>;
36
- export declare type jFileRendition = {
37
+ export type jFileRendition = {
37
38
  name: string;
38
39
  filename: string;
39
40
  dateModified: string;
40
41
  mimetype: string;
41
42
  };
42
- export declare type JFileExtended = jFileLittle & {
43
+ export type JFileExtended = jFileLittle & {
43
44
  meta?: string;
44
45
  _renditions: string[];
45
46
  _renditionsData: Record<string, jFileRendition>;
@@ -1,5 +1,5 @@
1
1
  import { jObjectLittle } from './utils';
2
- export declare type CreateGroup = {
2
+ export type CreateGroup = {
3
3
  type: string;
4
4
  title: string;
5
5
  description: string;
@@ -9,12 +9,12 @@ export declare type CreateGroup = {
9
9
  category: string;
10
10
  idCommunity?: string;
11
11
  };
12
- export declare type SpotBannerImage = {
12
+ export type SpotBannerImage = {
13
13
  id: string;
14
14
  name: string;
15
15
  size: string;
16
16
  };
17
- export declare type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
17
+ export type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
18
18
  uri: string;
19
19
  image?: string | null;
20
20
  spotBanner?: [] | Record<string, SpotBannerImage>;
@@ -22,7 +22,7 @@ export declare type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
22
22
  uriCommunity?: string;
23
23
  custom_widgets?: Record<string, GroupCustomWidget> | [];
24
24
  };
25
- export declare type GroupProperties = {
25
+ export type GroupProperties = {
26
26
  edit_access: '' | 'author';
27
27
  commentLevel: '-1' | '1' | '2' | '3';
28
28
  user_level_signup: '' | '1' | '2' | '3';
@@ -47,7 +47,7 @@ export declare type GroupProperties = {
47
47
  _errors: [];
48
48
  lastRssExecution?: Record<string, string>;
49
49
  };
50
- export declare type GroupPropertiesOptions = {
50
+ export type GroupPropertiesOptions = {
51
51
  edit_access: Array<ValueLabel & {
52
52
  description: string;
53
53
  }>;
@@ -68,21 +68,21 @@ export declare type GroupPropertiesOptions = {
68
68
  custom_widgets: Record<string, GroupCustomWidget> | [];
69
69
  isArchive: number;
70
70
  };
71
- export declare type RssType = {
71
+ export type RssType = {
72
72
  url: string;
73
73
  idUser: number;
74
74
  send: boolean | undefined;
75
75
  error?: string;
76
76
  };
77
- export declare type ValueLabel = {
77
+ export type ValueLabel = {
78
78
  value: string | number;
79
79
  label: string;
80
80
  };
81
- export declare type GroupWidget = {
81
+ export type GroupWidget = {
82
82
  id: string;
83
83
  title: string;
84
84
  };
85
- export declare type GroupCustomWidget = {
85
+ export type GroupCustomWidget = {
86
86
  idSpot: string;
87
87
  idOrder: string;
88
88
  idWidget: string;
@@ -96,24 +96,24 @@ export interface Category {
96
96
  idorder: number;
97
97
  label: string;
98
98
  }
99
- export declare type GroupLittle = jObjectLittle & {
99
+ export type GroupLittle = jObjectLittle & {
100
100
  dateCreation: string;
101
101
  dateModified: string;
102
102
  category: string;
103
103
  privacy: string | number;
104
104
  };
105
- export declare type GroupList = GroupLittle & {
105
+ export type GroupList = GroupLittle & {
106
106
  description: string;
107
107
  edito: string | null;
108
108
  language: string;
109
109
  };
110
- export declare type GroupView = GroupList & {
110
+ export type GroupView = GroupList & {
111
111
  image?: string | null;
112
112
  spotBanner?: [] | Record<string, SpotBannerImage>;
113
113
  idCommunity?: string;
114
114
  useTeaser?: string;
115
115
  };
116
- export declare type ResetNotificationConfiguration = {
116
+ export type ResetNotificationConfiguration = {
117
117
  idSpot: string | number;
118
118
  mailFrequency: string | number;
119
119
  mailSpotit: boolean;
@@ -7,6 +7,7 @@ export * from './autocomplete';
7
7
  export * from './bookmark';
8
8
  export * from './diapazone';
9
9
  export * from './drive';
10
+ export * from './faq';
10
11
  export * from './file';
11
12
  export * from './mediaLibrary';
12
13
  export * from './model';
@@ -1,13 +1,13 @@
1
1
  import { AudienceAutocomplete, jArticleList, jArticleLittle, jObjectBase } from '../types';
2
- export declare type MediaLibraryAttachment = jObjectBase & {
2
+ export type MediaLibraryAttachment = jObjectBase & {
3
3
  title: string;
4
4
  size: string;
5
5
  };
6
- export declare type MediaLibraryLittle = jArticleLittle & {
6
+ export type MediaLibraryLittle = jArticleLittle & {
7
7
  attachment: MediaLibraryAttachment;
8
8
  description: string;
9
9
  };
10
- export declare type MediaLibraryList = jArticleList & {
10
+ export type MediaLibraryList = jArticleList & {
11
11
  description: string;
12
12
  attachment: MediaLibraryAttachment;
13
13
  _audience: Array<AudienceAutocomplete>;
@@ -1,40 +1,40 @@
1
- export declare type WidgetText = {
1
+ export type WidgetText = {
2
2
  type: 'text';
3
3
  };
4
- export declare type WidgetTextValue = string;
5
- export declare type WidgetTextarea = {
4
+ export type WidgetTextValue = string;
5
+ export type WidgetTextarea = {
6
6
  type: 'textarea';
7
7
  params?: {
8
8
  class: 'mceEditor';
9
9
  mention: '1';
10
10
  };
11
11
  };
12
- export declare type WidgetTextareaValue = string | null;
13
- export declare type WidgetNumber = {
12
+ export type WidgetTextareaValue = string | null;
13
+ export type WidgetNumber = {
14
14
  type: 'number';
15
15
  };
16
- export declare type WidgetNumberValue = number;
17
- export declare type WidgetDate = {
16
+ export type WidgetNumberValue = number;
17
+ export type WidgetDate = {
18
18
  type: 'date';
19
19
  format: string;
20
20
  };
21
- export declare type WidgetDateValue = string | null;
22
- export declare type WidgetDatetime = {
21
+ export type WidgetDateValue = string | null;
22
+ export type WidgetDatetime = {
23
23
  type: 'datetime';
24
24
  };
25
- export declare type WidgetDatetimeValue = string | null;
26
- export declare type WidgetDatePicker = {
25
+ export type WidgetDatetimeValue = string | null;
26
+ export type WidgetDatePicker = {
27
27
  type: 'datePicker';
28
28
  };
29
- export declare type WidgetDatePickerValue = string | null;
30
- export declare type WidgetActiveValue = number;
31
- export declare type WidgetMultiattribute = {
29
+ export type WidgetDatePickerValue = string | null;
30
+ export type WidgetActiveValue = number;
31
+ export type WidgetMultiattribute = {
32
32
  type: 'multiattribute';
33
33
  };
34
- export declare type WidgetFile = {
34
+ export type WidgetFile = {
35
35
  type: 'file';
36
36
  };
37
- export declare type WidgetSelect<U extends string = string> = {
37
+ export type WidgetSelect<U extends string = string> = {
38
38
  type: 'select';
39
39
  options: Record<U, string>;
40
40
  params?: {
@@ -43,39 +43,39 @@ export declare type WidgetSelect<U extends string = string> = {
43
43
  explain?: 1;
44
44
  };
45
45
  };
46
- export declare type WidgetEmail = {
46
+ export type WidgetEmail = {
47
47
  type: 'email';
48
48
  };
49
- export declare type WidgetEmailValue = string;
50
- export declare type WidgetUrl = {
49
+ export type WidgetEmailValue = string;
50
+ export type WidgetUrl = {
51
51
  type: 'url';
52
52
  params: {
53
53
  target?: '_blank';
54
54
  };
55
55
  };
56
- export declare type WidgetUrlValue = string;
57
- export declare type WidgetRefUser = {
56
+ export type WidgetUrlValue = string;
57
+ export type WidgetRefUser = {
58
58
  type: 'refUser';
59
59
  };
60
- export declare type WidgetTransient = {
60
+ export type WidgetTransient = {
61
61
  type: 'transient';
62
62
  };
63
- export declare type WidgetRadio = {
63
+ export type WidgetRadio = {
64
64
  type: 'radio';
65
65
  options: Record<string, string>;
66
66
  };
67
- export declare type WidgetCheckbox = {
67
+ export type WidgetCheckbox = {
68
68
  type: 'checkbox';
69
69
  options: Record<string, string>;
70
70
  };
71
- export declare type WidgetTaxonomy = {
71
+ export type WidgetTaxonomy = {
72
72
  type: 'taxonomy';
73
73
  params: {
74
74
  idTaxonomy: string;
75
75
  type?: string;
76
76
  };
77
77
  };
78
- export declare type WidgetOrientedlinks = {
78
+ export type WidgetOrientedlinks = {
79
79
  type: 'orientedlinks';
80
80
  params: {
81
81
  'jcomplete-multiple': '0' | '1';
@@ -83,7 +83,7 @@ export declare type WidgetOrientedlinks = {
83
83
  supportedTypes: Array<string>;
84
84
  };
85
85
  };
86
- export declare type WidgetUri = {
86
+ export type WidgetUri = {
87
87
  type: 'uri';
88
88
  params: {
89
89
  class: string;
@@ -91,17 +91,17 @@ export declare type WidgetUri = {
91
91
  type: string;
92
92
  };
93
93
  };
94
- export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetFile;
95
- export declare type WidgetsValue = WidgetActiveValue | WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
96
- export declare type FieldConfiguration<T extends string = string> = {
94
+ export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetFile;
95
+ export type WidgetsValue = WidgetActiveValue | WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
96
+ export type FieldConfiguration<T extends string = string> = {
97
97
  label: string;
98
98
  description?: string;
99
99
  widget: Widget;
100
100
  name: T;
101
101
  mandatory: boolean;
102
102
  };
103
- export declare type Configuration<T extends string> = FieldConfiguration<T>;
104
- export declare type Model<T extends string = string> = {
103
+ export type Configuration<T extends string> = FieldConfiguration<T>;
104
+ export type Model<T extends string = string> = {
105
105
  type: string;
106
106
  mainType: string;
107
107
  label: string;
@@ -1,13 +1,13 @@
1
1
  import { AllKeys, Readable, jObjectBase } from './utils';
2
- declare type BookmarksFunctions = 'update' | 'add' | 'delete';
3
- declare type CustomActionFunctions = 'update' | 'add' | 'remove';
4
- declare type WSFunctions = 'presence' | 'connection' | 'disconnect';
5
- export declare type Namespaces = {
2
+ type BookmarksFunctions = 'update' | 'add' | 'delete';
3
+ type CustomActionFunctions = 'update' | 'add' | 'remove';
4
+ type WSFunctions = 'presence' | 'connection' | 'disconnect';
5
+ export type Namespaces = {
6
6
  BOOKMARKS: BookmarksFunctions;
7
7
  'CUSTOM-ACTION': CustomActionFunctions;
8
8
  ws: WSFunctions;
9
9
  };
10
- export declare type AllMessages = {
10
+ export type AllMessages = {
11
11
  BOOKMARKS: {
12
12
  update: RTMessageObject<'BOOKMARKS', 'update'>;
13
13
  add: RTMessageObject<'BOOKMARKS', 'add'>;
@@ -24,28 +24,28 @@ export declare type AllMessages = {
24
24
  disconnect: RTMessage<'ws', 'disconnect'>;
25
25
  };
26
26
  };
27
- declare type NamespacesMessages<T extends keyof AllMessages> = Readable<AllMessages[T] & Record<Exclude<AllKeys<AllMessages[keyof AllMessages]>, keyof AllMessages[T]>, never>>;
28
- declare type AllMessagesInternal = {
27
+ type NamespacesMessages<T extends keyof AllMessages> = Readable<AllMessages[T] & Record<Exclude<AllKeys<AllMessages[keyof AllMessages]>, keyof AllMessages[T]>, never>>;
28
+ type AllMessagesInternal = {
29
29
  [K in keyof AllMessages]: NamespacesMessages<K>;
30
30
  };
31
- export declare type RTMessageHandler<T extends keyof AllMessages, F extends keyof AllMessages[T]> = {
31
+ export type RTMessageHandler<T extends keyof AllMessages, F extends keyof AllMessages[T]> = {
32
32
  namespace: T;
33
33
  function: F;
34
34
  handler: (message: AllMessagesInternal[T][F]) => void;
35
35
  };
36
- export declare type AnyRTHandlerFunction = {
36
+ export type AnyRTHandlerFunction = {
37
37
  [K in keyof Namespaces]: RTMessageHandler<K, keyof AllMessages[K]>['handler'];
38
38
  }[keyof Namespaces];
39
- export declare type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
39
+ export type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
40
40
  namespace: T;
41
41
  function: F;
42
42
  };
43
- export declare type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O extends jObjectBase = jObjectBase> = RTMessage<T, F> & {
43
+ export type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O extends jObjectBase = jObjectBase> = RTMessage<T, F> & {
44
44
  object: O;
45
45
  };
46
- export declare type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
46
+ export type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
47
47
  idUsers: number[];
48
48
  };
49
- export declare type AnyRTMessage = RTMessageObject<'BOOKMARKS', 'update'> | RTMessageObject<'BOOKMARKS', 'add'> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessageObject<'CUSTOM-ACTION', 'update'> | RTMessageObject<'CUSTOM-ACTION', 'add'> | RTMessageObject<'CUSTOM-ACTION', 'remove'> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'>;
50
- export declare type RTReceivedMessage<T extends keyof Namespaces, F extends Namespaces[T]> = ['message', RTMessage<T, F>];
49
+ export type AnyRTMessage = RTMessageObject<'BOOKMARKS', 'update'> | RTMessageObject<'BOOKMARKS', 'add'> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessageObject<'CUSTOM-ACTION', 'update'> | RTMessageObject<'CUSTOM-ACTION', 'add'> | RTMessageObject<'CUSTOM-ACTION', 'remove'> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'>;
50
+ export type RTReceivedMessage<T extends keyof Namespaces, F extends Namespaces[T]> = ['message', RTMessage<T, F>];
51
51
  export {};
@@ -27,7 +27,7 @@ export interface SearchFacetValueModel {
27
27
  values: SearchFacetValues[];
28
28
  title: string;
29
29
  }
30
- export declare type SearchFacetValues = {
30
+ export type SearchFacetValues = {
31
31
  count: number;
32
32
  value: string;
33
33
  title: string;
@@ -77,7 +77,7 @@ export interface SearchResultCatProps {
77
77
  showAll?: boolean;
78
78
  results: SearchResultProps[];
79
79
  }
80
- export declare type SearchResultProps = SearchResultPropsApp | SearchResultPropsObject;
80
+ export type SearchResultProps = SearchResultPropsApp | SearchResultPropsObject;
81
81
  export interface SearchResultPropsApp {
82
82
  name: string;
83
83
  title: string;
@@ -120,7 +120,7 @@ export interface SearchQueryResult<T extends jObjectLittle = jObjectLittle> {
120
120
  facets: SearchFacetValueModel[];
121
121
  categories: SearchCategoryValue[];
122
122
  }
123
- export declare type SearchLastQuery = {
123
+ export type SearchLastQuery = {
124
124
  keywords: string;
125
125
  };
126
- export declare type SearchAdminConfig = any;
126
+ export type SearchAdminConfig = any;
@@ -1,14 +1,14 @@
1
1
  import { jUserLittle } from './user';
2
2
  import { Rights } from './utils';
3
- export declare type ShareGeneralAccessRules = 'link' | 'invitation';
4
- export declare type ShareOptionObject = {
3
+ export type ShareGeneralAccessRules = 'link' | 'invitation';
4
+ export type ShareOptionObject = {
5
5
  id: number;
6
6
  title: string;
7
7
  uri: string;
8
8
  idUser: number;
9
9
  _right: Rights;
10
10
  };
11
- export declare type ShareAccessObject = {
11
+ export type ShareAccessObject = {
12
12
  id: number;
13
13
  type: string;
14
14
  uri: string;
@@ -19,8 +19,8 @@ export declare type ShareAccessObject = {
19
19
  _audience: ShareAudienceItem[];
20
20
  _right: Rights;
21
21
  };
22
- export declare type ShareAudienceItem = jUserLittle;
23
- export declare type ShareAccessProps = {
22
+ export type ShareAudienceItem = jUserLittle;
23
+ export type ShareAccessProps = {
24
24
  audience: ShareAudienceItem[];
25
25
  read: string[];
26
26
  write: string[];
@@ -2,8 +2,8 @@ import { ArticleCreation, GroupLittle } from '../apis';
2
2
  import { jCommentList } from './comment';
3
3
  import { jFileLittle } from './file';
4
4
  import { Readable, jArticleList, jArticleLittle, jObjectList } from './utils';
5
- export declare type TvChannelType = 'DYNAMIC' | 'SLIDESHOW';
6
- export declare type TVChannelCustom<T extends TvChannelType> = jObjectList & {
5
+ export type TvChannelType = 'DYNAMIC' | 'SLIDESHOW';
6
+ export type TVChannelCustom<T extends TvChannelType> = jObjectList & {
7
7
  tvChannelType: T;
8
8
  tvChannelBackgroundColor: string | null;
9
9
  tvChannelNumImages: number;
@@ -20,52 +20,52 @@ export declare type TVChannelCustom<T extends TvChannelType> = jObjectList & {
20
20
  }>;
21
21
  };
22
22
  };
23
- export declare type TVChannelCustomListDynamic = TVChannelCustom<'DYNAMIC'> & {
23
+ export type TVChannelCustomListDynamic = TVChannelCustom<'DYNAMIC'> & {
24
24
  tvChannelNumImages: 0;
25
25
  };
26
- export declare type TVChannelCustomListSlideshow = TVChannelCustom<'SLIDESHOW'>;
27
- export declare type TVChannelLittle = Readable<jArticleLittle>;
28
- export declare type TVChannelDynamicList = Readable<jArticleList & TVChannelCustomListDynamic>;
29
- export declare type TVChannelSlideshowList = Readable<jArticleList & TVChannelCustomListSlideshow>;
30
- export declare type TVChannelCustomList = Readable<(jArticleList & TVChannelCustomListDynamic) | TVChannelCustomListSlideshow>;
31
- export declare type TVChannelList = TVChannelDynamicList | TVChannelSlideshowList;
32
- export declare type TVChannelCreation = Readable<ArticleCreation & (Partial<TVChannelCustomListDynamic> | Partial<TVChannelCustomListSlideshow>) & {
26
+ export type TVChannelCustomListSlideshow = TVChannelCustom<'SLIDESHOW'>;
27
+ export type TVChannelLittle = Readable<jArticleLittle>;
28
+ export type TVChannelDynamicList = Readable<jArticleList & TVChannelCustomListDynamic>;
29
+ export type TVChannelSlideshowList = Readable<jArticleList & TVChannelCustomListSlideshow>;
30
+ export type TVChannelCustomList = Readable<(jArticleList & TVChannelCustomListDynamic) | TVChannelCustomListSlideshow>;
31
+ export type TVChannelList = TVChannelDynamicList | TVChannelSlideshowList;
32
+ export type TVChannelCreation = Readable<ArticleCreation & (Partial<TVChannelCustomListDynamic> | Partial<TVChannelCustomListSlideshow>) & {
33
33
  tvChannelType: 'DYNAMIC' | 'SLIDESHOW';
34
34
  }>;
35
- export declare type TVChannelCreatePayload = {
35
+ export type TVChannelCreatePayload = {
36
36
  tvChannelGroupTarget?: Array<string>;
37
37
  tvChannelNumImages?: never;
38
38
  };
39
- export declare type TVChannelDynamicComment = Readable<jCommentList & {
39
+ export type TVChannelDynamicComment = Readable<jCommentList & {
40
40
  _extend: {
41
41
  userImageSecureUrl: string;
42
42
  descriptionSecure: string;
43
43
  };
44
44
  }>;
45
- export declare type TVChannelDynamicArticle = Readable<jArticleList & {
45
+ export type TVChannelDynamicArticle = Readable<jArticleList & {
46
46
  _extend?: {
47
47
  imageSecureUrl?: string;
48
48
  descriptionSecure: string;
49
49
  comments: TVChannelDynamicComment[];
50
50
  };
51
51
  }>;
52
- export declare type TVGetChannelSlideshowFile = jFileLittle & {
52
+ export type TVGetChannelSlideshowFile = jFileLittle & {
53
53
  _extend: {
54
54
  imageSecureUrl?: string;
55
55
  };
56
56
  };
57
- export declare type TVGetChannelResponse = {
57
+ export type TVGetChannelResponse = {
58
58
  interval: number;
59
59
  channel: TVGetConfigureChannelResponse;
60
60
  };
61
- export declare type TVGetConfigureChannelResponse = TVGetConfigureDynamicChannelResponse | TVGetConfigureSlideshowChannelResponse;
62
- export declare type TVGetConfigureDynamicChannelResponse = TVChannelDynamicList & {
61
+ export type TVGetConfigureChannelResponse = TVGetConfigureDynamicChannelResponse | TVGetConfigureSlideshowChannelResponse;
62
+ export type TVGetConfigureDynamicChannelResponse = TVChannelDynamicList & {
63
63
  _extend: {
64
64
  imageSecureUrl?: string;
65
65
  articles?: TVChannelDynamicArticle[];
66
66
  };
67
67
  };
68
- export declare type TVGetConfigureSlideshowChannelResponse = TVChannelSlideshowList & {
68
+ export type TVGetConfigureSlideshowChannelResponse = TVChannelSlideshowList & {
69
69
  _extend: {
70
70
  attachments?: TVGetChannelSlideshowFile[];
71
71
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Type with one of (tuple type - id) and (uri) required. If both are passed, only the uri will be used
3
3
  */
4
- export declare type UriOrTypeId = Partial<TypeId> & Partial<Uri>;
4
+ export type UriOrTypeId = Partial<TypeId> & Partial<Uri>;
5
5
  /**
6
6
  * Interface representing the parameters used to make a content/record uri
7
7
  * @member type - type of the image (ex: user, fileArticle, spot, diffgroup, etc.)
@@ -3,7 +3,7 @@ import { jObjectLittle } from './utils';
3
3
  /**
4
4
  * @deprecated Use jUserList instead
5
5
  */
6
- export declare type UserModel = jObjectLittle & {
6
+ export type UserModel = jObjectLittle & {
7
7
  dateCreation: string;
8
8
  dateModified: string;
9
9
  firstname: string;
@@ -11,7 +11,7 @@ export declare type UserModel = jObjectLittle & {
11
11
  active: number;
12
12
  mail?: string;
13
13
  };
14
- export declare type UserMapModel = {
14
+ export type UserMapModel = {
15
15
  idInType: number;
16
16
  lat: number;
17
17
  lng: number;
@@ -22,13 +22,13 @@ export declare const UserLevel: {
22
22
  readonly EXTERNAL: 3;
23
23
  readonly GUEST: 0;
24
24
  };
25
- export declare type jUserLittle = jObjectLittle & {
25
+ export type jUserLittle = jObjectLittle & {
26
26
  level: (typeof UserLevel)[keyof typeof UserLevel];
27
27
  dateCreation: string;
28
28
  dateModified: string;
29
29
  };
30
- export declare type jUserList = jUserLittle & {
30
+ export type jUserList = jUserLittle & {
31
31
  active: number;
32
32
  [key: string]: WidgetsValue;
33
33
  };
34
- export declare type jUserView = jUserList & {};
34
+ export type jUserView = jUserList & {};