jamespot-user-api 1.0.115 → 1.0.117
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 -1
- 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 +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 +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.map +1 -1
- package/lib/src/apis/application/types.d.ts +6 -6
- package/lib/src/apis/article/article.d.ts +5 -5
- package/lib/src/apis/filebank.d.ts +3 -3
- package/lib/src/apis/jland/jland.d.ts +6 -6
- 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 +5 -5
- package/lib/src/types/file.d.ts +8 -8
- package/lib/src/types/group.d.ts +18 -15
- 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/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/window/Window.d.ts +2 -2
- package/package.json +72 -73
- package/phpunitMock/spotGetProperties-default.json +18 -2
- 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
2
|
import { ApiWrapper, BaseMessages, Filters, jArticleList, jArticleLittle, jObjectBase, MaybeWithToken, Orders, PagingResults } from '../../types';
|
|
3
|
-
export
|
|
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
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,7 +29,7 @@ export declare type BaseArticle = {
|
|
|
29
29
|
title: string;
|
|
30
30
|
uri: string;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type FileArticle = jObjectBase & {
|
|
33
33
|
title: string;
|
|
34
34
|
type: 'fileArticle';
|
|
35
35
|
mainType: 'fileArticle';
|
|
@@ -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 {
|
|
@@ -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
|
};
|
|
@@ -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 AutoCompleteConcept = {
|
|
|
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;
|
package/lib/src/types/faq.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { jArticleView, MaybeWithToken } from './utils';
|
|
|
2
2
|
import { ArticleCreation, AutoCompleteConcept } from '../apis';
|
|
3
3
|
import { ImageSize } from './file';
|
|
4
4
|
import { AudienceAutocomplete } from './autocomplete';
|
|
5
|
-
export
|
|
5
|
+
export type FaqCategoryView = jArticleView & {
|
|
6
6
|
faqColor?: string;
|
|
7
7
|
_audience: AudienceAutocomplete[];
|
|
8
8
|
image?: ImageSize | null;
|
|
@@ -10,21 +10,21 @@ export declare type FaqCategoryView = jArticleView & {
|
|
|
10
10
|
type: 'faq';
|
|
11
11
|
isWeb: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type CreateFaqCategory = MaybeWithToken<Omit<ArticleCreation, 'idSpot'>> & {
|
|
14
14
|
image?: ImageSize | null;
|
|
15
15
|
tags?: string;
|
|
16
16
|
faqColor?: string;
|
|
17
17
|
isWeb?: boolean;
|
|
18
18
|
type: 'faq';
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type EditFaqCategory = CreateFaqCategory & {
|
|
21
21
|
uri: string;
|
|
22
22
|
format?: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type FaqTaxonomy = {
|
|
25
25
|
title: string;
|
|
26
26
|
id: string;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type FaqHookProperties = {
|
|
29
29
|
_web: '0' | '1' | '';
|
|
30
30
|
};
|
package/lib/src/types/file.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Readable, jObjectLittle } from './utils';
|
|
2
|
-
export
|
|
2
|
+
export type UploadConfig = {
|
|
3
3
|
attrName: string;
|
|
4
4
|
token: string;
|
|
5
5
|
file?: File | null;
|
|
6
6
|
url?: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ImageSize = {
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type FileResponse = {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
type: string;
|
|
@@ -19,7 +19,7 @@ export declare type FileResponse = {
|
|
|
19
19
|
mediaKey: string;
|
|
20
20
|
imagesize: ImageSize;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type FileCropConfig = {
|
|
23
23
|
x: number;
|
|
24
24
|
y: number;
|
|
25
25
|
width: number;
|
|
@@ -27,20 +27,20 @@ export declare type FileCropConfig = {
|
|
|
27
27
|
rotation: number;
|
|
28
28
|
killSize?: boolean;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type FileCropReturnType = Omit<FileResponse, 'token'> & {
|
|
31
31
|
crop: FileCropConfig;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type jFileLittle = Readable<Omit<jObjectLittle, 'dateModified'> & {
|
|
34
34
|
dateCreation: string;
|
|
35
35
|
dateModified: string | null;
|
|
36
36
|
}>;
|
|
37
|
-
export
|
|
37
|
+
export type jFileRendition = {
|
|
38
38
|
name: string;
|
|
39
39
|
filename: string;
|
|
40
40
|
dateModified: string;
|
|
41
41
|
mimetype: string;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type JFileExtended = jFileLittle & {
|
|
44
44
|
meta?: string;
|
|
45
45
|
_renditions: string[];
|
|
46
46
|
_renditionsData: Record<string, jFileRendition>;
|
package/lib/src/types/group.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jUserLittle } from './user';
|
|
1
2
|
import { jObjectLittle } from './utils';
|
|
2
|
-
export
|
|
3
|
+
export type CreateGroup = {
|
|
3
4
|
type: string;
|
|
4
5
|
title: string;
|
|
5
6
|
description: string;
|
|
@@ -9,12 +10,12 @@ export declare type CreateGroup = {
|
|
|
9
10
|
category: string;
|
|
10
11
|
idCommunity?: string;
|
|
11
12
|
};
|
|
12
|
-
export
|
|
13
|
+
export type SpotBannerImage = {
|
|
13
14
|
id: string;
|
|
14
15
|
name: string;
|
|
15
16
|
size: string;
|
|
16
17
|
};
|
|
17
|
-
export
|
|
18
|
+
export type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
|
|
18
19
|
uri: string;
|
|
19
20
|
image?: string | null;
|
|
20
21
|
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
@@ -22,7 +23,7 @@ export declare type UpdateGroup = CreateGroup & Partial<GroupProperties> & {
|
|
|
22
23
|
uriCommunity?: string;
|
|
23
24
|
custom_widgets?: Record<string, GroupCustomWidget> | [];
|
|
24
25
|
};
|
|
25
|
-
export
|
|
26
|
+
export type GroupProperties = {
|
|
26
27
|
edit_access: '' | 'author';
|
|
27
28
|
commentLevel: '-1' | '1' | '2' | '3';
|
|
28
29
|
user_level_signup: '' | '1' | '2' | '3';
|
|
@@ -30,7 +31,7 @@ export declare type GroupProperties = {
|
|
|
30
31
|
useTeaser: '' | '1' | '2';
|
|
31
32
|
displayType: string;
|
|
32
33
|
spot_right_user: string;
|
|
33
|
-
rss_feed: Array<RssType> |
|
|
34
|
+
rss_feed: Array<RssType> | null;
|
|
34
35
|
spotDefaultPublishType: string;
|
|
35
36
|
mail_frequency: string;
|
|
36
37
|
mail_comment: '1' | '';
|
|
@@ -47,7 +48,7 @@ export declare type GroupProperties = {
|
|
|
47
48
|
_errors: [];
|
|
48
49
|
lastRssExecution?: Record<string, string>;
|
|
49
50
|
};
|
|
50
|
-
export
|
|
51
|
+
export type GroupPropertiesOptions = {
|
|
51
52
|
edit_access: Array<ValueLabel & {
|
|
52
53
|
description: string;
|
|
53
54
|
}>;
|
|
@@ -68,21 +69,23 @@ export declare type GroupPropertiesOptions = {
|
|
|
68
69
|
custom_widgets: Record<string, GroupCustomWidget> | [];
|
|
69
70
|
isArchive: number;
|
|
70
71
|
};
|
|
71
|
-
export
|
|
72
|
+
export type RssType = {
|
|
72
73
|
url: string;
|
|
73
74
|
idUser: number;
|
|
74
|
-
send
|
|
75
|
+
send?: boolean;
|
|
76
|
+
_user?: jUserLittle;
|
|
77
|
+
date?: string;
|
|
75
78
|
error?: string;
|
|
76
79
|
};
|
|
77
|
-
export
|
|
80
|
+
export type ValueLabel = {
|
|
78
81
|
value: string | number;
|
|
79
82
|
label: string;
|
|
80
83
|
};
|
|
81
|
-
export
|
|
84
|
+
export type GroupWidget = {
|
|
82
85
|
id: string;
|
|
83
86
|
title: string;
|
|
84
87
|
};
|
|
85
|
-
export
|
|
88
|
+
export type GroupCustomWidget = {
|
|
86
89
|
idSpot: string;
|
|
87
90
|
idOrder: string;
|
|
88
91
|
idWidget: string;
|
|
@@ -96,24 +99,24 @@ export interface Category {
|
|
|
96
99
|
idorder: number;
|
|
97
100
|
label: string;
|
|
98
101
|
}
|
|
99
|
-
export
|
|
102
|
+
export type GroupLittle = jObjectLittle & {
|
|
100
103
|
dateCreation: string;
|
|
101
104
|
dateModified: string;
|
|
102
105
|
category: string;
|
|
103
106
|
privacy: string | number;
|
|
104
107
|
};
|
|
105
|
-
export
|
|
108
|
+
export type GroupList = GroupLittle & {
|
|
106
109
|
description: string;
|
|
107
110
|
edito: string | null;
|
|
108
111
|
language: string;
|
|
109
112
|
};
|
|
110
|
-
export
|
|
113
|
+
export type GroupView = GroupList & {
|
|
111
114
|
image?: string | null;
|
|
112
115
|
spotBanner?: [] | Record<string, SpotBannerImage>;
|
|
113
116
|
idCommunity?: string;
|
|
114
117
|
useTeaser?: string;
|
|
115
118
|
};
|
|
116
|
-
export
|
|
119
|
+
export type ResetNotificationConfiguration = {
|
|
117
120
|
idSpot: string | number;
|
|
118
121
|
mailFrequency: string | number;
|
|
119
122
|
mailSpotit: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AudienceAutocomplete, jArticleList, jArticleLittle, jObjectBase } from '../types';
|
|
2
|
-
export
|
|
2
|
+
export type MediaLibraryAttachment = jObjectBase & {
|
|
3
3
|
title: string;
|
|
4
4
|
size: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type MediaLibraryLittle = jArticleLittle & {
|
|
7
7
|
attachment: MediaLibraryAttachment;
|
|
8
8
|
description: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type MediaLibraryList = jArticleList & {
|
|
11
11
|
description: string;
|
|
12
12
|
attachment: MediaLibraryAttachment;
|
|
13
13
|
_audience: Array<AudienceAutocomplete>;
|