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.
Files changed (123) 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/faq.d.ts +3 -1
  81. package/lib/src/types/file.d.ts +3 -1
  82. package/lib/src/types/group.d.ts +2 -1
  83. package/lib/src/types/index.d.ts +2 -0
  84. package/lib/src/types/model.d.ts +15 -11
  85. package/lib/src/types/object.d.ts +249 -0
  86. package/lib/src/types/realtime.d.ts +2 -1
  87. package/lib/src/types/search.d.ts +1 -1
  88. package/lib/src/types/share.d.ts +1 -1
  89. package/lib/src/types/tvDisplay.d.ts +2 -1
  90. package/lib/src/types/user.d.ts +49 -8
  91. package/lib/src/types/utils.d.ts +6 -37
  92. package/lib/src/types/wedoc.d.ts +3 -1
  93. package/lib/src/util/Test.d.ts +7 -8
  94. package/lib/src/util/file.mock.d.ts +78 -52
  95. package/lib/src/util/network.d.ts +3 -2
  96. package/package.json +4 -1
  97. package/phpunitMock/articleCreate-faq-category.json +1 -0
  98. package/phpunitMock/articleCreate-faq-item.json +1 -0
  99. package/phpunitMock/articleGet-faq-category.json +1 -0
  100. package/phpunitMock/articleGet-meeting-view.json +2 -1
  101. package/phpunitMock/articleGet-pollSurvey-view.json +2 -1
  102. package/phpunitMock/articleGet-quizz-view.json +2 -1
  103. package/phpunitMock/articleGet-socialEvent-view.json +2 -1
  104. package/phpunitMock/articleGet-support-view.json +2 -1
  105. package/phpunitMock/articleGet-surveyDate-view.json +2 -1
  106. package/phpunitMock/articleGet-with-widgets.json +188 -184
  107. package/phpunitMock/articleGetAttachment-success.json +20 -19
  108. package/phpunitMock/articleUpdate-faq-category.json +1 -0
  109. package/phpunitMock/articleUpdate-faq-item.json +1 -0
  110. package/phpunitMock/articleUpdate-mpArticleView.json +2 -1
  111. package/phpunitMock/aseiSetStatus-default.json +2 -1
  112. package/phpunitMock/faqAddEntry-success.json +1 -0
  113. package/phpunitMock/faqAddTheme-success.json +1 -0
  114. package/phpunitMock/faqDeleteTheme-success.json +1 -0
  115. package/phpunitMock/faqGetEntry-success.json +1 -0
  116. package/phpunitMock/faqMoveEntry-success.json +1 -0
  117. package/phpunitMock/faqMoveTheme-success.json +2 -0
  118. package/phpunitMock/fileCreate-rawLittle.json +18 -17
  119. package/phpunitMock/fileGet-default.json +18 -17
  120. package/phpunitMock/fileUpdate-rawLittle.json +27 -18
  121. package/phpunitMock/objectListJamespotArticleQueryList-aseiClearanceTicket-view.json +2 -1
  122. package/phpunitMock/tvDisplayGetChannel-slideshow.json +94 -92
  123. package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +91 -86
@@ -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;
@@ -1,8 +1,9 @@
1
1
  import { GroupLittle } from '../apis';
2
2
  import { jCommentList } from './comment';
3
3
  import { jFileLittle } from './file';
4
- import { Readable, jArticleList, jArticleLittle, jObjectList } from './utils';
4
+ import { Readable, jArticleList, jArticleLittle } from './utils';
5
5
  import { ArticleCreation } from './article';
6
+ import { jObjectList } from './object';
6
7
  export type TvChannelType = 'DYNAMIC' | 'SLIDESHOW';
7
8
  export type TVChannelCustom<T extends TvChannelType> = jObjectList & {
8
9
  tvChannelType: T;
@@ -1,5 +1,5 @@
1
- import { WidgetsValue } from './model';
2
- import { jObjectLittle } from './utils';
1
+ import { jObjectLittle } from './object';
2
+ import { z } from 'zod';
3
3
  /**
4
4
  * @deprecated Use jUserList instead
5
5
  */
@@ -22,12 +22,53 @@ export declare const UserLevel: {
22
22
  readonly EXTERNAL: 3;
23
23
  readonly GUEST: 0;
24
24
  };
25
- export type jUserLittle = jObjectLittle & {
26
- level: (typeof UserLevel)[keyof typeof UserLevel];
27
- dateCreation: string;
28
- dateModified: string;
29
- [key: string]: WidgetsValue;
30
- };
25
+ export declare const jUserLittleSchema: z.ZodLazy<z.ZodObject<{
26
+ type: z.ZodString;
27
+ id: z.ZodNumber;
28
+ mainType: z.ZodString;
29
+ uri: z.ZodString;
30
+ title: z.ZodString;
31
+ _url: z.ZodString;
32
+ level: z.ZodNativeEnum<{
33
+ readonly ADMIN: 9;
34
+ readonly USER: 5;
35
+ readonly EXTERNAL: 3;
36
+ readonly GUEST: 0;
37
+ }>;
38
+ dateCreation: z.ZodString;
39
+ dateModified: z.ZodString;
40
+ }, "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<{
41
+ type: z.ZodString;
42
+ id: z.ZodNumber;
43
+ mainType: z.ZodString;
44
+ uri: z.ZodString;
45
+ title: z.ZodString;
46
+ _url: z.ZodString;
47
+ level: z.ZodNativeEnum<{
48
+ readonly ADMIN: 9;
49
+ readonly USER: 5;
50
+ readonly EXTERNAL: 3;
51
+ readonly GUEST: 0;
52
+ }>;
53
+ dateCreation: z.ZodString;
54
+ dateModified: z.ZodString;
55
+ }, 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<{
56
+ type: z.ZodString;
57
+ id: z.ZodNumber;
58
+ mainType: z.ZodString;
59
+ uri: z.ZodString;
60
+ title: z.ZodString;
61
+ _url: z.ZodString;
62
+ level: z.ZodNativeEnum<{
63
+ readonly ADMIN: 9;
64
+ readonly USER: 5;
65
+ readonly EXTERNAL: 3;
66
+ readonly GUEST: 0;
67
+ }>;
68
+ dateCreation: z.ZodString;
69
+ dateModified: z.ZodString;
70
+ }, 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">>>;
71
+ export type jUserLittle = z.infer<typeof jUserLittleSchema>;
31
72
  export type jUserList = jUserLittle & {
32
73
  active: number;
33
74
  };
@@ -1,7 +1,9 @@
1
- import { ImageSize } from './file';
1
+ import { ImageSize, jFileLittle } from './file';
2
2
  import { GroupLittle } from './group';
3
3
  import { jUserLittle } from './user';
4
4
  import { WidgetWrapperProps } from './widgets';
5
+ import { jObjectBase, jObjectLittle } from './object';
6
+ import { Rights } from './common';
5
7
  /**
6
8
  * Ease usage in IDE by decomposing complex types
7
9
  * Decompose combined types into simple object types
@@ -48,41 +50,6 @@ export interface PagingResults<T> {
48
50
  page: number;
49
51
  }
50
52
  export type ApiPagingResults<T, U = BaseMessages> = ApiWrapper<PagingResults<T>, U>;
51
- export type Rights = {
52
- create: boolean;
53
- read: boolean;
54
- publish: boolean;
55
- administrate: boolean;
56
- update: boolean;
57
- delete: boolean;
58
- comment: boolean;
59
- member: boolean;
60
- };
61
- export type jObjectBase = {
62
- id: number;
63
- mainType: string;
64
- type: string;
65
- uri: string;
66
- dateCreation?: string;
67
- dateModified?: string | null;
68
- };
69
- export type jObjectLittle = jObjectBase & {
70
- title: string;
71
- _url: string;
72
- };
73
- export type jObjectList = jObjectLittle & {
74
- description?: string | null;
75
- _user: jUserLittle;
76
- _right: Rights;
77
- };
78
- /**
79
- * @deprecated Use jObjectLittle instead
80
- */
81
- export type Little = jObjectLittle;
82
- /**
83
- * @deprecated Use jObjectList instead
84
- */
85
- export type List = jObjectList;
86
53
  export type jLinkLittle = jObjectBase & {
87
54
  srcId: number;
88
55
  srcType: string;
@@ -106,7 +73,9 @@ export type jArticleList = jArticleLittle & {
106
73
  image?: ImageSize;
107
74
  articleWidgets?: WidgetWrapperProps[];
108
75
  };
109
- export type jArticleView = jArticleList & {};
76
+ export type jArticleView = jArticleList & {
77
+ _attachedFiles: jFileLittle[];
78
+ };
110
79
  export type jArticleExtendView = {
111
80
  processContext?: null;
112
81
  uiObjectLink?: jObjectLittle[];
@@ -1,5 +1,7 @@
1
1
  import { jUserLittle } from './user';
2
- import { Filters, jObjectBase, jObjectLittle, Orders, Rights } from './utils';
2
+ import { Filters, Orders } from './utils';
3
+ import { jObjectBase, jObjectLittle } from './object';
4
+ import { Rights } from './common';
3
5
  export type AccessRequestStatusValues = 'accept' | 'deny';
4
6
  export declare const ACCESS_REQUEST_ACCEPT = "accept";
5
7
  export declare const ACCESS_REQUEST_DENY = "deny";
@@ -1,5 +1,5 @@
1
1
  import { JamespotUserApi } from '../apis';
2
- import { ApiDefaultWrapper, PagingResults, jArticleLittle, jArticleView, jObjectLittle, jObjectAutocomplete, Rights } from '../types';
2
+ import { ApiDefaultWrapper, PagingResults, jArticleLittle, jArticleView, jObjectAutocomplete } from '../types';
3
3
  import { jCommentList } from '../types/comment';
4
4
  import { FetchResponseType, WindowBrowser } from '../window';
5
5
  import { Network } from './network';
@@ -125,34 +125,33 @@ export declare const validateObject: <T extends {
125
125
  n: string;
126
126
  t: string;
127
127
  }>) => void;
128
- export declare const validateObjectIsFormatList: <T extends jObjectLittle = jObjectLittle>(object: T) => void;
129
- export declare const validateObjectIsFormatLittle: <T extends jObjectLittle = jObjectLittle>(object: T) => void;
130
128
  export declare const validateArticleIsFormatView: <T extends jArticleView = jArticleView>(object: T) => void;
131
129
  export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => void;
132
- export declare const validateRights: (object: Rights) => void;
133
130
  export declare const validateCommentIsFormatList: <T extends jCommentList = jCommentList>(object: T) => void;
134
131
  export declare const validateFileIsFormatLittle: <T extends {
135
- uri: string;
132
+ type: string;
136
133
  id: number;
137
134
  mainType: string;
138
- type: string;
135
+ uri: string;
139
136
  dateCreation: string;
140
137
  title: string;
141
138
  _url: string;
142
139
  dateModified: string | null;
143
140
  mimetype: string;
144
141
  path?: string;
142
+ size: number;
145
143
  } = {
146
- uri: string;
144
+ type: string;
147
145
  id: number;
148
146
  mainType: string;
149
- type: string;
147
+ uri: string;
150
148
  dateCreation: string;
151
149
  title: string;
152
150
  _url: string;
153
151
  dateModified: string | null;
154
152
  mimetype: string;
155
153
  path?: string;
154
+ size: number;
156
155
  }>(object: T) => void;
157
156
  export declare const expectToHaveProperties: <T>(props: string[], payload: T[]) => void;
158
157
  export declare const expectToBeArray: <T>(arr: T[]) => void;