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
|
@@ -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
|
|
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';
|
package/lib/src/types/share.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/lib/src/types/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
};
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -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[];
|
package/lib/src/types/wedoc.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
|
-
import { Filters,
|
|
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";
|
package/lib/src/util/Test.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JamespotUserApi } from '../apis';
|
|
2
|
-
import { ApiDefaultWrapper, PagingResults, jArticleLittle, jArticleView,
|
|
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
|
-
|
|
132
|
+
type: string;
|
|
136
133
|
id: number;
|
|
137
134
|
mainType: string;
|
|
138
|
-
|
|
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
|
-
|
|
144
|
+
type: string;
|
|
147
145
|
id: number;
|
|
148
146
|
mainType: string;
|
|
149
|
-
|
|
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;
|