jamespot-user-api 1.0.159 → 1.0.161
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 +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- 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 +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- 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/GroupModerateStatus.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 +11 -11
- package/jest.config.ts +2 -2
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/article/article.d.ts +1 -1
- package/lib/src/apis/global/global.d.ts +1 -0
- package/lib/src/apis/global/global.mock.d.ts +1 -0
- package/lib/src/types/animations.d.ts +1 -1
- package/lib/src/types/article.d.ts +5 -3
- package/lib/src/types/hook.d.ts +37 -0
- package/lib/src/types/utils.d.ts +6 -1
- package/lib/src/types/widgets.d.ts +1 -0
- package/lib/src/util/object.d.ts +2 -0
- package/package.json +1 -1
- package/phpunitMock/globalUseWebVersion-default.json +1 -0
|
@@ -8,7 +8,7 @@ export type DraftSerializedForm = {
|
|
|
8
8
|
}[];
|
|
9
9
|
export declare class JArticleApi extends JBaseApi {
|
|
10
10
|
list<T extends jArticleLittle = jArticleLittle>(config: ArticleListConfig): Promise<ApiWrapper<PagingResults<T>>>;
|
|
11
|
-
get<T extends jArticleLittle = jArticleLittle>(config: ArticleGetConfig): Promise<ApiWrapper<T, BaseMessages>>;
|
|
11
|
+
get<T extends jArticleLittle = jArticleLittle>(config: ArticleGetConfig, signal?: AbortSignal): Promise<ApiWrapper<T, BaseMessages>>;
|
|
12
12
|
create<R extends jArticleLittle = jArticleLittle, P extends ArticleCreation = ArticleCreation>(article: MaybeWithToken<P>, format?: Format): Promise<ApiWrapper<Array<R>, BaseMessages>>;
|
|
13
13
|
update<T extends {
|
|
14
14
|
uri: string;
|
|
@@ -3,4 +3,5 @@ import { ApiWrapper } from '../../types';
|
|
|
3
3
|
import { ActionVerb } from '../../types/global';
|
|
4
4
|
export declare class JGlobalApi extends JBaseApi {
|
|
5
5
|
countAction(verb: ActionVerb, uri: string): Promise<ApiWrapper<number>>;
|
|
6
|
+
useWebVersion(): Promise<ApiWrapper<unknown, import("../../types").BaseMessages>>;
|
|
6
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AnimationVariant = 'Olympics' | 'Maythefourth' | 'Spring' | 'MusicFestival' | 'EasterEggs' | 'CustomAnimation';
|
|
1
|
+
export type AnimationVariant = 'Celebration' | 'Olympics' | 'Maythefourth' | 'Spring' | 'MusicFestival' | 'EasterEggs' | 'CustomAnimation';
|
|
2
2
|
export type AnimationConfigurationType = {
|
|
3
3
|
name: AnimationVariant;
|
|
4
4
|
activeClickEffect: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Filters, Orders } from './utils';
|
|
1
|
+
import { Filters, Format, FormatExtension, Orders } from './utils';
|
|
2
2
|
import { WidgetWrapperProps } from './widgets';
|
|
3
3
|
export type ArticleListConfig = {
|
|
4
4
|
type?: string;
|
|
5
|
-
format?:
|
|
5
|
+
format?: Format;
|
|
6
|
+
formatExtend?: FormatExtension;
|
|
6
7
|
query?: string;
|
|
7
8
|
limit?: number;
|
|
8
9
|
page?: number;
|
|
@@ -12,7 +13,8 @@ export type ArticleListConfig = {
|
|
|
12
13
|
export type ArticleGetConfig = {
|
|
13
14
|
uri?: string;
|
|
14
15
|
idArticle?: number;
|
|
15
|
-
format?:
|
|
16
|
+
format?: Format;
|
|
17
|
+
formatExtend?: FormatExtension;
|
|
16
18
|
};
|
|
17
19
|
export type ArticleCreation = {
|
|
18
20
|
title?: string;
|
package/lib/src/types/hook.d.ts
CHANGED
|
@@ -57,6 +57,20 @@ declare const fileBankHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
57
57
|
order: "ASC" | "DESC";
|
|
58
58
|
}>>;
|
|
59
59
|
export type FileBankHook = z.infer<typeof fileBankHookSchema>;
|
|
60
|
+
declare const adminAdvancedHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
61
|
+
isActive: z.ZodBoolean;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
isActive: boolean;
|
|
64
|
+
}, {
|
|
65
|
+
isActive: boolean;
|
|
66
|
+
}>, z.ZodObject<{
|
|
67
|
+
sendAlert: z.ZodBoolean;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
sendAlert: boolean;
|
|
70
|
+
}, {
|
|
71
|
+
sendAlert: boolean;
|
|
72
|
+
}>>;
|
|
73
|
+
export type AdminAdvancedkHook = z.infer<typeof adminAdvancedHookSchema>;
|
|
60
74
|
declare const spotRssFeedSchema: z.ZodIntersection<z.ZodObject<{
|
|
61
75
|
isActive: z.ZodBoolean;
|
|
62
76
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -151,6 +165,19 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
151
165
|
create: boolean;
|
|
152
166
|
autorize: ("comment" | "message" | "board" | "article" | undefined)[];
|
|
153
167
|
}>>>;
|
|
168
|
+
AdminAdvancedHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
169
|
+
isActive: z.ZodBoolean;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
isActive: boolean;
|
|
172
|
+
}, {
|
|
173
|
+
isActive: boolean;
|
|
174
|
+
}>, z.ZodObject<{
|
|
175
|
+
sendAlert: z.ZodBoolean;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
sendAlert: boolean;
|
|
178
|
+
}, {
|
|
179
|
+
sendAlert: boolean;
|
|
180
|
+
}>>>;
|
|
154
181
|
}, "strip", z.ZodTypeAny, {
|
|
155
182
|
DriveHook?: ({
|
|
156
183
|
isActive: boolean;
|
|
@@ -177,6 +204,11 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
177
204
|
create: boolean;
|
|
178
205
|
autorize: ("comment" | "message" | "board" | "article" | undefined)[];
|
|
179
206
|
}) | undefined;
|
|
207
|
+
AdminAdvancedHook?: ({
|
|
208
|
+
isActive: boolean;
|
|
209
|
+
} & {
|
|
210
|
+
sendAlert: boolean;
|
|
211
|
+
}) | undefined;
|
|
180
212
|
}, {
|
|
181
213
|
DriveHook?: ({
|
|
182
214
|
isActive: boolean;
|
|
@@ -203,6 +235,11 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
203
235
|
create: boolean;
|
|
204
236
|
autorize: ("comment" | "message" | "board" | "article" | undefined)[];
|
|
205
237
|
}) | undefined;
|
|
238
|
+
AdminAdvancedHook?: ({
|
|
239
|
+
isActive: boolean;
|
|
240
|
+
} & {
|
|
241
|
+
sendAlert: boolean;
|
|
242
|
+
}) | undefined;
|
|
206
243
|
}>;
|
|
207
244
|
export type HookListType = z.infer<typeof hookListTypeSchema>;
|
|
208
245
|
export declare const validateIsFormatHookListType: (object: object) => HookListType;
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -94,6 +94,10 @@ export type jArticleExtendView = {
|
|
|
94
94
|
processContext?: null;
|
|
95
95
|
uiObjectLink?: jObjectLittle[];
|
|
96
96
|
};
|
|
97
|
+
export type jInternalDraftView<T> = jArticleView & {
|
|
98
|
+
idDraft: number;
|
|
99
|
+
form: T;
|
|
100
|
+
};
|
|
97
101
|
export type Order = {
|
|
98
102
|
name: string;
|
|
99
103
|
sort: 'ASC' | 'DESC';
|
|
@@ -129,8 +133,9 @@ export type MaybeWithParent<T extends jObjectBase = jObjectBase> = {
|
|
|
129
133
|
/**
|
|
130
134
|
* @deprecated
|
|
131
135
|
*/
|
|
132
|
-
type Format_DEPRECATED = 'user-api';
|
|
136
|
+
type Format_DEPRECATED = 'user-api' | 'mobile';
|
|
133
137
|
export type Format = 'raw-little' | 'raw-list' | 'raw-view' | Format_DEPRECATED | undefined;
|
|
138
|
+
export type FormatExtension = Array<'bookmark' | 'licenses' | 'socialEventRecord' | 'quizFieldDefinitions' | 'quizResponseRecord' | 'surveyDateRecord'>;
|
|
134
139
|
export type ApiReturn<T extends Format, Little, List = Little, View = List, Default = {}> = T extends 'raw-little' ? Little : T extends 'raw-list' ? List : T extends 'raw-view' ? View : Default;
|
|
135
140
|
export type ValueOf<T> = T[keyof T];
|
|
136
141
|
export {};
|
package/lib/src/util/object.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormatExtension, Format } from '../types';
|
|
1
2
|
export declare function deepEqual(a: any, b: any, ignoreAttributes?: Array<string>): boolean;
|
|
2
3
|
/**
|
|
3
4
|
* Remplace la valeur de propriétés par leur typeof, sur toute la profondeur de l'objet.
|
|
@@ -10,3 +11,4 @@ export declare function deepEqual(a: any, b: any, ignoreAttributes?: Array<strin
|
|
|
10
11
|
* @param replacedProperties propriétés à remplacer
|
|
11
12
|
*/
|
|
12
13
|
export declare function replacePropertiesWithTypes(obj: any, replacedProperties: string[]): any;
|
|
14
|
+
export declare const combineFormat: (format: Format, extendFormat: FormatExtension | undefined) => string | undefined;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "o": "global", "f": "useWebVersion", "error": 0, "messages": [], "result": true }
|