jamespot-user-api 1.0.79 → 1.0.82
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/AdminStoreApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -0
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JConceptApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFileApi.html +1 -1
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JUserApi.html +3 -3
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/classes/WindowJestFetch.html +1 -1
- package/documentation/classes/WindowMobile.html +1 -1
- package/documentation/classes/WindowMock.html +2 -2
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/ApiError.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/CreateGroup.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/PagingResults.html +1 -1
- package/documentation/interfaces/Result.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.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/SearchResultProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/UserModel.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +1 -1
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/assetReservation.d.ts +37 -0
- package/lib/src/apis/index.d.ts +3 -2
- package/lib/src/apis/jamespotUserApi.d.ts +2 -0
- package/lib/src/types/application.d.ts +14 -0
- package/lib/src/types/assetReservation.d.ts +31 -0
- package/lib/src/types/index.d.ts +4 -3
- package/lib/src/types/model.d.ts +84 -0
- package/lib/src/types/utils.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare type WidgetText = {
|
|
2
|
+
type: 'text';
|
|
3
|
+
};
|
|
4
|
+
export declare type WidgetTextarea = {
|
|
5
|
+
type: 'textarea';
|
|
6
|
+
};
|
|
7
|
+
export declare type WidgetNumber = {
|
|
8
|
+
type: 'number';
|
|
9
|
+
};
|
|
10
|
+
export declare type WidgetDate = {
|
|
11
|
+
type: 'date';
|
|
12
|
+
format: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type WidgetDatetime = {
|
|
15
|
+
type: 'datetime';
|
|
16
|
+
};
|
|
17
|
+
export declare type WidgetSelect<U extends string = string> = {
|
|
18
|
+
type: 'select';
|
|
19
|
+
options: Record<U, string>;
|
|
20
|
+
params?: {
|
|
21
|
+
data?: string;
|
|
22
|
+
defaultValue?: U;
|
|
23
|
+
explain?: 1;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare type WidgetEmail = {
|
|
27
|
+
type: 'email';
|
|
28
|
+
};
|
|
29
|
+
export declare type WidgetUrl = {
|
|
30
|
+
type: 'url';
|
|
31
|
+
params: {
|
|
32
|
+
target?: '_blank';
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare type WidgetRefUser = {
|
|
36
|
+
type: 'refUser';
|
|
37
|
+
};
|
|
38
|
+
export declare type WidgetRadio = {
|
|
39
|
+
type: 'radio';
|
|
40
|
+
options: Record<string, string>;
|
|
41
|
+
};
|
|
42
|
+
export declare type WidgetCheckbox = {
|
|
43
|
+
type: 'checkbox';
|
|
44
|
+
options: Record<string, string>;
|
|
45
|
+
};
|
|
46
|
+
export declare type WidgetTaxonomy = {
|
|
47
|
+
type: 'taxonomy';
|
|
48
|
+
params: {
|
|
49
|
+
idTaxonomy: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare type WidgetOrientedlinks = {
|
|
53
|
+
type: 'orientedlinks';
|
|
54
|
+
params: {
|
|
55
|
+
'jcomplete-multiple': '0' | '1';
|
|
56
|
+
showAdd: '0' | '1';
|
|
57
|
+
supportedTypes: Array<string>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare type WidgetUri = {
|
|
61
|
+
type: 'uri';
|
|
62
|
+
params: {
|
|
63
|
+
class: string;
|
|
64
|
+
'jcomplete-url': string;
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri;
|
|
69
|
+
export declare type FieldConfiguration<T extends string = string> = {
|
|
70
|
+
label: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
widget: Widget;
|
|
73
|
+
name: T;
|
|
74
|
+
mandatory: boolean;
|
|
75
|
+
};
|
|
76
|
+
export declare type Configuration<T extends string> = FieldConfiguration<T>;
|
|
77
|
+
export declare type Model<T extends string = string> = {
|
|
78
|
+
type: string;
|
|
79
|
+
mainType: string;
|
|
80
|
+
label: string;
|
|
81
|
+
fields: Record<T, Configuration<T>>;
|
|
82
|
+
icon: string;
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface PagingResults<T> {
|
|
|
14
14
|
limit: number;
|
|
15
15
|
page: number;
|
|
16
16
|
}
|
|
17
|
+
export declare type ApiPagingResults<T> = ApiWrapper<PagingResults<T>>;
|
|
17
18
|
export interface ApiError<U = string> {
|
|
18
19
|
error: number;
|
|
19
20
|
messages: U[];
|
|
@@ -36,6 +37,7 @@ export declare type Rights = {
|
|
|
36
37
|
};
|
|
37
38
|
export declare type Little = {
|
|
38
39
|
id: number;
|
|
40
|
+
mainType: string;
|
|
39
41
|
type: string;
|
|
40
42
|
uri: string;
|
|
41
43
|
title: string;
|
|
@@ -43,6 +45,11 @@ export declare type Little = {
|
|
|
43
45
|
dateCreation: string;
|
|
44
46
|
dateModified: string;
|
|
45
47
|
};
|
|
48
|
+
export declare type List = Little & {
|
|
49
|
+
description?: string;
|
|
50
|
+
_user: Little;
|
|
51
|
+
_right: Rights;
|
|
52
|
+
};
|
|
46
53
|
export declare type Order = {
|
|
47
54
|
name: string;
|
|
48
55
|
sort: 'ASC' | 'DESC';
|