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.
- package/documentation/assets/main.js +2 -2
- package/documentation/assets/search.js +1 -1
- package/documentation/assets/style.css +3 -2
- 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/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -0
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +11 -11
- 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/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +5 -5
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +2 -2
- package/documentation/classes/Network.html +2 -2
- 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 +2 -2
- 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 +2 -2
- package/documentation/interfaces/SearchQueryOption.html +2 -2
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +2 -2
- 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/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +9 -9
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/application/types.d.ts +6 -6
- package/lib/src/apis/article/article.d.ts +14 -7
- package/lib/src/apis/article/article.mock.d.ts +2 -0
- package/lib/src/apis/faq/faq.d.ts +12 -0
- package/lib/src/apis/faq/faq.mock.d.ts +7 -0
- package/lib/src/apis/faq/faq.test.d.ts +1 -0
- package/lib/src/apis/file.d.ts +1 -8
- package/lib/src/apis/filebank.d.ts +3 -3
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +2 -0
- package/lib/src/apis/jland/jland.d.ts +6 -6
- package/lib/src/apis/taxonomy/taxonomy.d.ts +3 -6
- package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +3 -3
- package/lib/src/apis/taxonomy/types.d.ts +4 -4
- package/lib/src/apis/user/user.d.ts +3 -3
- package/lib/src/types/adminLicence.d.ts +6 -6
- package/lib/src/types/adminStore.d.ts +2 -2
- package/lib/src/types/adminUtils.d.ts +3 -3
- package/lib/src/types/asei.d.ts +5 -5
- package/lib/src/types/assetReservation.d.ts +4 -4
- package/lib/src/types/autocomplete.d.ts +6 -6
- package/lib/src/types/bookmark.d.ts +5 -5
- package/lib/src/types/comment.d.ts +2 -2
- package/lib/src/types/diapazone.d.ts +1 -1
- package/lib/src/types/drive.d.ts +5 -5
- package/lib/src/types/faq.d.ts +30 -0
- package/lib/src/types/file.d.ts +12 -11
- package/lib/src/types/group.d.ts +13 -13
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/mediaLibrary.d.ts +3 -3
- package/lib/src/types/model.d.ts +32 -32
- package/lib/src/types/realtime.d.ts +14 -14
- package/lib/src/types/search.d.ts +4 -4
- package/lib/src/types/share.d.ts +5 -5
- package/lib/src/types/tvDisplay.d.ts +18 -18
- package/lib/src/types/uri.d.ts +1 -1
- package/lib/src/types/user.d.ts +5 -5
- package/lib/src/types/utils.d.ts +29 -29
- package/lib/src/types/wedoc.d.ts +2 -2
- package/lib/src/types/widgets.d.ts +39 -39
- package/lib/src/util/Test.d.ts +2 -1
- package/lib/src/util/ensure.d.ts +2 -2
- package/lib/src/util/images.d.ts +6 -6
- package/lib/src/util/network.d.ts +3 -3
- package/lib/src/util/taxonomy.d.ts +3 -0
- package/lib/src/window/Window.d.ts +2 -2
- package/package.json +72 -73
- package/phpunitMock/articleCreate-faq-category.json +51 -0
- package/phpunitMock/articleDelete-faq-category.json +12 -0
- package/phpunitMock/articleGet-faq-category.json +45 -0
- package/phpunitMock/articleGetAttachment-success.json +18 -0
- package/phpunitMock/articleUpdate-faq-category.json +49 -0
- package/phpunitMock/faqGetFaqTaxonomy-success.json +10 -0
- package/phpunitMock/faqGetHookProperties-success.json +9 -0
- package/pnpm-lock.yaml +0 -12425
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jObjectLittle, Rights, ValueOf } from '../../types';
|
|
2
|
-
export
|
|
2
|
+
export type ApplicationType = {
|
|
3
3
|
name: string;
|
|
4
4
|
label: string;
|
|
5
5
|
icon: string;
|
|
@@ -14,7 +14,7 @@ export declare type ApplicationType = {
|
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type StudioAction = {
|
|
18
18
|
action: string;
|
|
19
19
|
nameApp: string;
|
|
20
20
|
};
|
|
@@ -40,7 +40,7 @@ export interface AccessRightObject extends jObjectLittle {
|
|
|
40
40
|
_cssClass: string;
|
|
41
41
|
_right: Rights;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type StudioApplicationBase = {
|
|
44
44
|
idApp: string;
|
|
45
45
|
type?: string;
|
|
46
46
|
name?: string;
|
|
@@ -73,7 +73,7 @@ export declare type StudioApplicationBase = {
|
|
|
73
73
|
action?: StudioAction;
|
|
74
74
|
display?: string;
|
|
75
75
|
};
|
|
76
|
-
export
|
|
76
|
+
export type StudioManifest = {
|
|
77
77
|
dateCreation: string;
|
|
78
78
|
author: string;
|
|
79
79
|
manifestVersion: number;
|
|
@@ -85,5 +85,5 @@ export declare enum StudioApplicationStatus {
|
|
|
85
85
|
autosaved = "autosaved",
|
|
86
86
|
saved = "saved"
|
|
87
87
|
}
|
|
88
|
-
export
|
|
89
|
-
export
|
|
88
|
+
export type StudioApplicationStatusEnumBased = ValueOf<StudioApplicationStatus>;
|
|
89
|
+
export type StudioApplication = StudioApplicationBase & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, BaseMessages, Filters, jArticleList, jArticleLittle, MaybeWithToken, Orders, PagingResults } from '../../types';
|
|
3
|
-
export
|
|
2
|
+
import { ApiWrapper, BaseMessages, Filters, jArticleList, jArticleLittle, jObjectBase, MaybeWithToken, Orders, PagingResults } from '../../types';
|
|
3
|
+
export type ArticleListConfig = {
|
|
4
4
|
type: string;
|
|
5
5
|
format?: string;
|
|
6
6
|
query?: string;
|
|
@@ -9,19 +9,19 @@ export declare type ArticleListConfig = {
|
|
|
9
9
|
orders?: Orders;
|
|
10
10
|
filters?: Filters | undefined;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ArticleGetConfig = {
|
|
13
13
|
uri?: string;
|
|
14
14
|
idArticle?: number;
|
|
15
15
|
format?: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ArticleCreation = {
|
|
18
18
|
title?: string;
|
|
19
|
-
description?: string;
|
|
19
|
+
description?: string | null;
|
|
20
20
|
type?: string;
|
|
21
21
|
publishTo?: string;
|
|
22
22
|
idSpot?: Array<string>;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type BaseArticle = {
|
|
25
25
|
id: number;
|
|
26
26
|
type: string;
|
|
27
27
|
dateCreation: string;
|
|
@@ -29,15 +29,22 @@ export declare type BaseArticle = {
|
|
|
29
29
|
title: string;
|
|
30
30
|
uri: string;
|
|
31
31
|
};
|
|
32
|
+
export type FileArticle = jObjectBase & {
|
|
33
|
+
title: string;
|
|
34
|
+
type: 'fileArticle';
|
|
35
|
+
mainType: 'fileArticle';
|
|
36
|
+
_url: string;
|
|
37
|
+
};
|
|
32
38
|
export declare class JArticleApi extends JBaseApi {
|
|
33
39
|
list<T extends jArticleLittle = jArticleLittle>(config: ArticleListConfig): Promise<ApiWrapper<PagingResults<T>>>;
|
|
34
40
|
get<T extends jArticleLittle = jArticleLittle>(config: ArticleGetConfig): Promise<ApiWrapper<T & {
|
|
35
41
|
_nbAttachedFiles: number;
|
|
36
42
|
}, BaseMessages>>;
|
|
37
|
-
create<
|
|
43
|
+
create<R extends jArticleLittle = jArticleLittle, P extends ArticleCreation = ArticleCreation>(article: MaybeWithToken<P>, format?: string): Promise<ApiWrapper<Array<R>, BaseMessages>>;
|
|
38
44
|
update<T extends {
|
|
39
45
|
uri: string;
|
|
40
46
|
}, U extends jArticleLittle = jArticleList>(article: T): Promise<ApiWrapper<U, BaseMessages>>;
|
|
41
47
|
delete(id: number): Promise<ApiWrapper<boolean, BaseMessages>>;
|
|
42
48
|
count(type: string): Promise<ApiWrapper<number>>;
|
|
49
|
+
getAttachments(id: number, type: string, format?: string): Promise<ApiWrapper<FileArticle[]>>;
|
|
43
50
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ApiWrapper, BaseMessages, PagingResults, jArticleList, jArticleLittle, jArticleView } from '../../types';
|
|
2
|
+
import { FileArticle } from './article';
|
|
2
3
|
export declare const articleGetMpArticleList: ApiWrapper<jArticleList, BaseMessages>;
|
|
3
4
|
export declare const articleCreateMpArticleLittle: ApiWrapper<Array<jArticleLittle>, BaseMessages>;
|
|
4
5
|
export declare const articleUpdateMpArticleView: ApiWrapper<jArticleView, BaseMessages>;
|
|
5
6
|
export declare const articleCountMpArticle: ApiWrapper<number>;
|
|
6
7
|
export declare const objectListJamespotArticleQueryList: ApiWrapper<PagingResults<jArticleLittle>>;
|
|
7
8
|
export declare const articleDeleteMpArticle: ApiWrapper<boolean, BaseMessages>;
|
|
9
|
+
export declare const articleGetAttachment: ApiWrapper<FileArticle[]>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiWrapper, CreateFaqCategory, EditFaqCategory, FaqCategoryView, FaqHookProperties, FaqTaxonomy, jArticleLittle } from '../../types';
|
|
3
|
+
export declare class JFaqApi extends JBaseApi {
|
|
4
|
+
createCategory<T extends jArticleLittle = FaqCategoryView>(params: Omit<CreateFaqCategory, 'type'>, format?: string): Promise<ApiWrapper<Array<T>>>;
|
|
5
|
+
updateCategory<T extends jArticleLittle = FaqCategoryView>(params: Omit<EditFaqCategory, 'type'>, format?: string): Promise<ApiWrapper<T>>;
|
|
6
|
+
getCategory<T extends jArticleLittle = FaqCategoryView>(id: number, format?: string): Promise<ApiWrapper<T & {
|
|
7
|
+
_nbAttachedFiles: number;
|
|
8
|
+
}>>;
|
|
9
|
+
deleteCategory(id: number): Promise<ApiWrapper<boolean>>;
|
|
10
|
+
getTaxonomy(): Promise<ApiWrapper<FaqTaxonomy>>;
|
|
11
|
+
getHookProperties(properties?: Array<keyof FaqHookProperties>): Promise<ApiWrapper<FaqHookProperties>>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiWrapper, FaqCategoryView, FaqHookProperties, FaqTaxonomy } from '../../types';
|
|
2
|
+
export declare const faqCreateCategory: ApiWrapper<FaqCategoryView[]>;
|
|
3
|
+
export declare const faqGetCategory: ApiWrapper<FaqCategoryView>;
|
|
4
|
+
export declare const faqUpdateCategory: ApiWrapper<FaqCategoryView>;
|
|
5
|
+
export declare const faqDeleteCategory: ApiWrapper<boolean>;
|
|
6
|
+
export declare const faqGetTaxonomy: ApiWrapper<FaqTaxonomy>;
|
|
7
|
+
export declare const faqGetHookProperties: ApiWrapper<FaqHookProperties>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/src/apis/file.d.ts
CHANGED
|
@@ -29,19 +29,12 @@ export declare class JFileApi extends JBaseApi {
|
|
|
29
29
|
rotation: any;
|
|
30
30
|
};
|
|
31
31
|
id: string;
|
|
32
|
-
/**
|
|
33
|
-
* Upload a file to the server. use the same token to link the file to an article
|
|
34
|
-
* @param config configuration object. One of "file" and "url" is mandatory
|
|
35
|
-
*/
|
|
36
32
|
name: string;
|
|
37
33
|
type: string;
|
|
38
34
|
token?: string;
|
|
39
35
|
size: string;
|
|
40
36
|
mediaKey: string;
|
|
41
|
-
imagesize:
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
};
|
|
37
|
+
imagesize: import("../types").ImageSize;
|
|
45
38
|
};
|
|
46
39
|
o: string;
|
|
47
40
|
f: string;
|
|
@@ -27,15 +27,15 @@ export interface FolderProps extends jObjectLittle {
|
|
|
27
27
|
parentURI?: string;
|
|
28
28
|
_right: Rights;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type FolderType = jObjectLittle & {
|
|
31
31
|
mainType: string;
|
|
32
32
|
folderColor?: string;
|
|
33
33
|
parentURI?: string;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type jFileBase = jObjectLittle & {
|
|
36
36
|
mimetype: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type FileBankDocument = jObjectBase & {
|
|
39
39
|
_attachedFiles: jFileBase[];
|
|
40
40
|
};
|
|
41
41
|
export declare class JFilebankApi extends JBaseApi {
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { JWedocApi } from './wedoc/wedoc';
|
|
|
21
21
|
import { Network } from '../util/network';
|
|
22
22
|
import { TVDisplayApi } from './tvDisplay/tvDisplay';
|
|
23
23
|
import { JShareApi } from './share/share';
|
|
24
|
+
import { JFaqApi } from './faq/faq';
|
|
24
25
|
/**
|
|
25
26
|
* In browser usage, 'window' should be the window object.
|
|
26
27
|
* In server side usage, 'window' object given must implement the fetch method, used by the Apis.
|
|
@@ -45,6 +46,7 @@ export declare class JamespotUserApi {
|
|
|
45
46
|
community: JCommunityApi;
|
|
46
47
|
diapazone: JDiapazoneApi;
|
|
47
48
|
drive: JDriveApi;
|
|
49
|
+
faq: JFaqApi;
|
|
48
50
|
file: JFileApi;
|
|
49
51
|
filebank: JFilebankApi;
|
|
50
52
|
group: JGroupApi;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
2
|
import { ApiWrapper, jArticleList, License, MaybeWithToken, PagingResults } from '../../types';
|
|
3
3
|
import { ArticleCreation } from '../article/article';
|
|
4
|
-
export
|
|
4
|
+
export type JLandLog = {
|
|
5
5
|
idLog: number;
|
|
6
6
|
slug: string;
|
|
7
7
|
dateCreation: string;
|
|
@@ -10,13 +10,13 @@ export declare type JLandLog = {
|
|
|
10
10
|
action: string;
|
|
11
11
|
mode: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type JLandStat = {
|
|
14
14
|
mail: string;
|
|
15
15
|
cnt: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type JLandMapFlavor = string;
|
|
18
|
+
export type JLandMapKind = string;
|
|
19
|
+
export type JLandMap = jArticleList & {
|
|
20
20
|
jlandMapFlavor: JLandMapFlavor;
|
|
21
21
|
jlandMapKind: JLandMapKind;
|
|
22
22
|
waMapUrl?: string;
|
|
@@ -25,7 +25,7 @@ export declare type JLandMap = jArticleList & {
|
|
|
25
25
|
licenses: Array<License>;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type JLandMapCreation = ArticleCreation & {
|
|
29
29
|
jlandMapAggregated: string;
|
|
30
30
|
type: 'jlandmap';
|
|
31
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
2
|
import { ApiWrapper, BaseMessagesOne, PagingResults } from '../../types';
|
|
3
|
-
import {
|
|
3
|
+
import { AutoCompleteConcept, AutocompleteHierarchy, AutoCompleteList, Concept, Taxonomy, TaxonomyCreate } from './types';
|
|
4
4
|
export declare class JTaxonomyApi extends JBaseApi {
|
|
5
5
|
/**
|
|
6
6
|
* list all taxonomies (no pagination)
|
|
@@ -12,10 +12,7 @@ export declare class JTaxonomyApi extends JBaseApi {
|
|
|
12
12
|
* @param idTaxonomy taxonomy id
|
|
13
13
|
* @param query search characters
|
|
14
14
|
*/
|
|
15
|
-
autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<
|
|
16
|
-
id: string;
|
|
17
|
-
type: string;
|
|
18
|
-
}[], import("../../types").BaseMessages>>;
|
|
15
|
+
autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<AutoCompleteConcept[], import("../../types").BaseMessages>>;
|
|
19
16
|
autocompleteList(payload: AutoCompleteList): Promise<ApiWrapper<PagingResults<Concept>, import("../../types").BaseMessages>>;
|
|
20
|
-
autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<
|
|
17
|
+
autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<AutoCompleteConcept>, import("../../types").BaseMessages>>;
|
|
21
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AutoCompleteConcept, Concept, Taxonomy, TaxonomyCreate } from './types';
|
|
2
2
|
import { ApiWrapper, BaseMessages, PagingResults } from '../../types';
|
|
3
3
|
export declare const taxonomyList: ApiWrapper<Taxonomy[]>;
|
|
4
4
|
export declare const taxonomyCreateParam: TaxonomyCreate;
|
|
5
5
|
export declare const taxonomyCreateResponse: ApiWrapper<Taxonomy, BaseMessages>;
|
|
6
|
-
export declare const taxonomyAutocomplete: ApiWrapper<
|
|
6
|
+
export declare const taxonomyAutocomplete: ApiWrapper<AutoCompleteConcept[]>;
|
|
7
7
|
export declare const conceptAutocomplete: ApiWrapper<PagingResults<Concept>>;
|
|
8
|
-
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<
|
|
8
|
+
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<AutoCompleteConcept>>;
|
|
@@ -45,7 +45,7 @@ export interface TaxonomyCreate {
|
|
|
45
45
|
title: string;
|
|
46
46
|
concepts: Array<string>;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type AutoCompleteList = {
|
|
49
49
|
query?: string;
|
|
50
50
|
queryFields?: Array<string>;
|
|
51
51
|
limit?: number;
|
|
@@ -60,7 +60,7 @@ export declare type AutoCompleteList = {
|
|
|
60
60
|
security?: number;
|
|
61
61
|
uriTaxonomy: string;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type AutocompleteHierarchy = {
|
|
64
64
|
limit?: number;
|
|
65
65
|
page?: number;
|
|
66
66
|
format?: string;
|
|
@@ -74,7 +74,7 @@ export declare type AutocompleteHierarchy = {
|
|
|
74
74
|
uriTaxonomy: string;
|
|
75
75
|
uriConcept?: string;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
77
|
+
export type AutoCompleteConcept = {
|
|
78
78
|
id: string;
|
|
79
79
|
uri: string;
|
|
80
80
|
shortUri: string;
|
|
@@ -87,7 +87,7 @@ export declare type AutoCompeteConcept = {
|
|
|
87
87
|
cssColor: string;
|
|
88
88
|
class: string;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export type Concept = {
|
|
91
91
|
id: number;
|
|
92
92
|
uri: string;
|
|
93
93
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
2
|
import { ApiWrapper, Little, jObjectLittle, UserModel, UserMapModel, jUserAutocomplete, ApiPagingResults, ApiDefaultWrapper, jUserLittle, Readable } from '../../types';
|
|
3
|
-
export
|
|
3
|
+
export type User = Little & {
|
|
4
4
|
id: string;
|
|
5
5
|
shortUri: string;
|
|
6
6
|
name: string;
|
|
@@ -22,7 +22,7 @@ export interface ObjectListProps {
|
|
|
22
22
|
orders?: Orders;
|
|
23
23
|
format?: string;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type UserDirectoryConfiguration = {
|
|
26
26
|
userDirectoryShow: '' | '1';
|
|
27
27
|
contactDirectoryShow: '0' | '1';
|
|
28
28
|
businessContactShow: boolean;
|
|
@@ -38,7 +38,7 @@ export declare type UserDirectoryConfiguration = {
|
|
|
38
38
|
type: string;
|
|
39
39
|
}>;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type BusinessContact = {
|
|
42
42
|
mail: string | undefined;
|
|
43
43
|
title: string;
|
|
44
44
|
firstname: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ObjectListProps } from '../apis';
|
|
2
2
|
import { jUserList } from './user';
|
|
3
|
-
export
|
|
3
|
+
export type AdminLicenseUserStats = {
|
|
4
4
|
countActiveUsersWithoutLicense: number;
|
|
5
5
|
countLicensesAssigned: number;
|
|
6
6
|
countLicensesNotAssigned: number;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ObjectWithoutLicenseFilter = {
|
|
9
9
|
name: string;
|
|
10
10
|
operator: string;
|
|
11
11
|
value: number;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type AdminLicensesNotAssigned = {
|
|
14
14
|
[key: string]: number;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AdminLicensesAssigned = {
|
|
17
17
|
id: number;
|
|
18
18
|
kind: string;
|
|
19
19
|
dateCreation: string;
|
|
@@ -23,7 +23,7 @@ export declare type AdminLicensesAssigned = {
|
|
|
23
23
|
contentType: string;
|
|
24
24
|
status: number;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type License = {
|
|
27
27
|
id: number;
|
|
28
28
|
kind: string;
|
|
29
29
|
dateCreation: string;
|
|
@@ -33,7 +33,7 @@ export declare type License = {
|
|
|
33
33
|
contentType: string;
|
|
34
34
|
status: number;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type JAdminLicenseUserList = jUserList & {
|
|
37
37
|
_extend: {
|
|
38
38
|
licenses: Array<License>;
|
|
39
39
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AdminAppTab = {
|
|
2
2
|
sref?: string;
|
|
3
3
|
href?: string;
|
|
4
4
|
idDiv: string;
|
|
5
5
|
label: string;
|
|
6
6
|
icon: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AdminApp = {
|
|
9
9
|
name: string;
|
|
10
10
|
label: string;
|
|
11
11
|
icon: string;
|
|
@@ -15,4 +15,4 @@ export declare type AdminApp = {
|
|
|
15
15
|
url?: string;
|
|
16
16
|
tabs?: AdminAppTab[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type AdminApps = AdminApp[];
|
package/lib/src/types/asei.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
2
|
import { jArticleLittle, jObjectLittle, Rights } from './utils';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type AseiTicketStatus = 'created' | 'validated' | 'handled';
|
|
4
|
+
export type AseiTicket = jArticleLittle & {
|
|
5
5
|
_right: Rights;
|
|
6
6
|
_user: jUserLittle;
|
|
7
7
|
aseiClearanceTicketValidator: jObjectLittle[];
|
|
@@ -52,17 +52,17 @@ export declare type AseiTicket = jArticleLittle & {
|
|
|
52
52
|
aseiClearanceTicketPosition: string;
|
|
53
53
|
aseiClearanceTicketStatus: AseiTicketStatus;
|
|
54
54
|
};
|
|
55
|
-
export
|
|
55
|
+
export type AseiInstitution = jArticleLittle & {
|
|
56
56
|
_right: Rights;
|
|
57
57
|
_user: jUserLittle;
|
|
58
58
|
aseiInstitutionValidator: jObjectLittle[];
|
|
59
59
|
processContext: null;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type AseiGroups = {
|
|
62
62
|
dsi: string;
|
|
63
63
|
gestionnaireApplicatif: string;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type AseiRights = {
|
|
66
66
|
accessWriter: boolean;
|
|
67
67
|
accessApp: boolean;
|
|
68
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jArticleList } from './utils';
|
|
2
|
-
export
|
|
2
|
+
export type AssetReservationConfiguration = {
|
|
3
3
|
description: string;
|
|
4
4
|
right: {
|
|
5
5
|
manage: boolean;
|
|
@@ -10,11 +10,11 @@ export declare type AssetReservationConfiguration = {
|
|
|
10
10
|
bookingClosingTime: string;
|
|
11
11
|
lastBookingSchedule: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type BookableAssetList = jArticleList & {
|
|
14
14
|
_isColorDark: boolean | null;
|
|
15
15
|
assetPlannerBackgroundColor: string | null;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type BookableAssetView = BookableAssetList & {
|
|
18
18
|
assetBanner: {
|
|
19
19
|
[key: string]: {
|
|
20
20
|
id: string;
|
|
@@ -23,7 +23,7 @@ export declare type BookableAssetView = BookableAssetList & {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type ReservationList = jArticleList & {
|
|
27
27
|
dateStart: string;
|
|
28
28
|
dateEnd: string;
|
|
29
29
|
reservationCancelled: boolean;
|
|
@@ -12,18 +12,18 @@ export interface BaseAutocomplete {
|
|
|
12
12
|
cssColor: string;
|
|
13
13
|
class: string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type jObjectAutocomplete = BaseAutocomplete & {
|
|
16
16
|
title: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type jUserAutocomplete = jObjectAutocomplete & {
|
|
19
19
|
Pseudo: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type jSpotAutocomplete = jObjectAutocomplete & {
|
|
22
22
|
idspot: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
24
|
+
export type AudienceAutocomplete = jObjectAutocomplete | jUserAutocomplete | jSpotAutocomplete;
|
|
25
|
+
export type CommunityAutocomplete = jObjectAutocomplete;
|
|
26
|
+
export type Community = jObjectLittle & {
|
|
27
27
|
isTechnical: number;
|
|
28
28
|
status: number;
|
|
29
29
|
image: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
2
|
import { jLinkList, jObjectBase, jObjectLittle } from './utils';
|
|
3
|
-
export
|
|
3
|
+
export type BookmarkRawList<T extends jObjectBase = jObjectLittle | jUserLittle> = jLinkList<T> & {
|
|
4
4
|
bookmarkUrl?: string | null;
|
|
5
5
|
bookmarkOrder?: number;
|
|
6
6
|
bookmarkLabel?: string;
|
|
@@ -8,7 +8,7 @@ export declare type BookmarkRawList<T extends jObjectBase = jObjectLittle | jUse
|
|
|
8
8
|
url?: string | null;
|
|
9
9
|
type: 'bookmarkLink';
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type BookmarkList<T extends jObjectBase = jObjectLittle> = {
|
|
12
12
|
id: number;
|
|
13
13
|
mainType: string;
|
|
14
14
|
type: string;
|
|
@@ -32,13 +32,13 @@ export declare type BookmarkList<T extends jObjectBase = jObjectLittle> = {
|
|
|
32
32
|
bookmarkMeta?: string | null;
|
|
33
33
|
url?: string | null;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type BookmarkLink = {
|
|
36
36
|
targetId: number;
|
|
37
37
|
targetType: string;
|
|
38
38
|
format?: keyof BookmarkTypes;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
41
|
-
export
|
|
40
|
+
export type BookmarkCustom = Pick<BookmarkTypes[keyof BookmarkTypes], 'bookmarkLabel' | 'bookmarkMeta' | 'bookmarkUrl'>;
|
|
41
|
+
export type BookmarkTypes = {
|
|
42
42
|
'raw-list': BookmarkRawList;
|
|
43
43
|
list: BookmarkList;
|
|
44
44
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
2
|
import { Readable, Rights, jObjectBase } from './utils';
|
|
3
|
-
export
|
|
3
|
+
export type jCommentLittle = Readable<Omit<jObjectBase, 'dateModified'> & {
|
|
4
4
|
dateCreation: string;
|
|
5
5
|
dateModified: string | null;
|
|
6
6
|
description: string | null;
|
|
7
7
|
_user: jUserLittle;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
9
|
+
export type jCommentList = jCommentLittle & {
|
|
10
10
|
_right: Rights;
|
|
11
11
|
};
|
package/lib/src/types/drive.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MSGraphTenant = {
|
|
2
2
|
title: string;
|
|
3
3
|
name: 'groups' | 'sites' | 'onedrive' | 'documents';
|
|
4
4
|
type: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type MSGraphGroup = {
|
|
7
7
|
title: string;
|
|
8
8
|
id: string;
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type MSGraphSite = {
|
|
12
12
|
title: string;
|
|
13
13
|
id: string;
|
|
14
14
|
type: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type DriveItemType = {
|
|
17
17
|
title: string;
|
|
18
18
|
id: string;
|
|
19
19
|
type: string;
|
|
20
20
|
webUrl: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type DriveDocumentParams = {
|
|
23
23
|
msTenant: 'groups' | 'sites' | 'onedrive' | 'documents' | undefined;
|
|
24
24
|
msId: string | undefined;
|
|
25
25
|
idFolder: string | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jArticleView, MaybeWithToken } from './utils';
|
|
2
|
+
import { ArticleCreation, AutoCompleteConcept } from '../apis';
|
|
3
|
+
import { ImageSize } from './file';
|
|
4
|
+
import { AudienceAutocomplete } from './autocomplete';
|
|
5
|
+
export type FaqCategoryView = jArticleView & {
|
|
6
|
+
faqColor?: string;
|
|
7
|
+
_audience: AudienceAutocomplete[];
|
|
8
|
+
image?: ImageSize | null;
|
|
9
|
+
tags?: AutoCompleteConcept[];
|
|
10
|
+
type: 'faq';
|
|
11
|
+
isWeb: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type CreateFaqCategory = MaybeWithToken<Omit<ArticleCreation, 'idSpot'>> & {
|
|
14
|
+
image?: ImageSize | null;
|
|
15
|
+
tags?: string;
|
|
16
|
+
faqColor?: string;
|
|
17
|
+
isWeb?: boolean;
|
|
18
|
+
type: 'faq';
|
|
19
|
+
};
|
|
20
|
+
export type EditFaqCategory = CreateFaqCategory & {
|
|
21
|
+
uri: string;
|
|
22
|
+
format?: string;
|
|
23
|
+
};
|
|
24
|
+
export type FaqTaxonomy = {
|
|
25
|
+
title: string;
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
export type FaqHookProperties = {
|
|
29
|
+
_web: '0' | '1' | '';
|
|
30
|
+
};
|