jamespot-user-api 1.0.103 → 1.0.105
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 +58 -0
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +3 -0
- 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/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +7 -7
- 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 +4 -4
- 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/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -0
- package/documentation/interfaces/ApiDefaultWrapper.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/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/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +6 -5
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/admin/index.d.ts +3 -0
- package/lib/src/apis/admin/license.d.ts +74 -0
- package/lib/src/apis/{Licenses → admin}/licenses.mock.d.ts +3 -4
- package/lib/src/apis/{adminStore.d.ts → admin/store.d.ts} +2 -3
- package/lib/src/apis/admin/utils.d.ts +8 -0
- package/lib/src/apis/drive/drive.d.ts +20 -0
- package/lib/src/apis/drive/drive.mock.d.ts +4 -0
- package/lib/src/apis/index.d.ts +1 -2
- package/lib/src/apis/jamespotUserApi.d.ts +5 -3
- package/lib/src/apis/jland/jland.d.ts +2 -3
- package/lib/src/apis/user/user.d.ts +0 -1
- package/lib/src/types/adminLicence.d.ts +43 -0
- package/lib/src/types/adminUtils.d.ts +18 -0
- package/lib/src/types/drive.d.ts +27 -0
- package/lib/src/types/index.d.ts +3 -0
- package/lib/src/types/model.d.ts +3 -1
- package/lib/src/types/user.d.ts +5 -0
- package/lib/src/types/utils.d.ts +1 -1
- package/lib/src/util/Test.d.ts +3 -1
- package/package.json +1 -1
- package/phpunitMock/articleCount-mpArticle.json +1 -1
- package/phpunitMock/articleCreate-mpArticle-little.json +9 -6
- package/phpunitMock/articleGet-mpArticle-list.json +4 -4
- package/phpunitMock/articleUpdate-mpArticleView.json +7 -7
- package/phpunitMock/autocompleteAudience-u.json +42 -0
- package/phpunitMock/autocompleteTaxonomy-default.json +2 -2
- package/phpunitMock/licenseManagerAssignLicense-default.json +1 -7
- package/phpunitMock/licenseManagerCountLicensesNotAssigned-count.json +7 -15
- package/phpunitMock/licenseManagerGetLicensesAssigned-default.json +48 -48
- package/phpunitMock/licenseManagerUnassignLicense-default.json +1 -7
- package/phpunitMock/objectListJamespotArticleList-mpArticle-little.json +1 -109
- package/phpunitMock/objectListJamespotUserMap-default.json +1 -11
- package/phpunitMock/objectListJamespotUserQueryList-rawList.json +25 -14
- package/phpunitMock/objectListMediaLibraryGetUnclassifiedFiles-default.json +7 -13
- package/phpunitMock/objectListTaxonomyConcept-default.json +16 -16
- package/phpunitMock/objectListTaxonomyHierarchyConcept-default.json +2 -2
- package/phpunitMock/searchGetConfig-default.json +4 -3
- package/phpunitMock/searchProposition-gro.json +34 -0
- package/phpunitMock/searchQuery-admin.json +4 -3
- package/phpunitMock/supportConfiguration-configuration.json +51 -0
- package/phpunitMock/taxonomyCreate-default.json +6 -6
- package/phpunitMock/taxonomyList-default.json +95 -17
- package/phpunitMock/userDirectoryConfiguration-default.json +3 -1
- package/phpunitMock/userGet-rawView.json +5 -3
- package/documentation/classes/JLicenseApi.html +0 -18
- package/lib/src/apis/Licenses/licenses.d.ts +0 -44
- /package/lib/src/apis/{Licenses → admin}/licences.test.d.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApiWrapper } from '../../types';
|
|
2
|
-
import { JLicense, JLicenseAvailable } from './licenses';
|
|
1
|
+
import { AdminLicensesNotAssigned, ApiWrapper, License } from '../../types';
|
|
3
2
|
export declare const licenseManagerAssignLicenseDefault: ApiWrapper<boolean>;
|
|
4
3
|
export declare const licenseManagerAssignLicenseIsAssign: ApiWrapper<boolean>;
|
|
5
|
-
export declare const licenseManagerCountLicensesNotAssignedCount: ApiWrapper<
|
|
6
|
-
export declare const licenseManagerGetLicensesAssignedDefault: ApiWrapper<Array<
|
|
4
|
+
export declare const licenseManagerCountLicensesNotAssignedCount: ApiWrapper<AdminLicensesNotAssigned>;
|
|
5
|
+
export declare const licenseManagerGetLicensesAssignedDefault: ApiWrapper<Array<License>>;
|
|
7
6
|
export declare const licenseManagerUnassignLicenseDefault: ApiWrapper<boolean>;
|
|
8
7
|
export declare const licenseManagerUnassignLicenseIsUnassign: ApiWrapper<boolean>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiWrapper } from '
|
|
2
|
-
import { JBaseApi } from '
|
|
3
|
-
import { StoreItem, StoreFinalize } from '../types/adminStore';
|
|
1
|
+
import { ApiWrapper, StoreItem, StoreFinalize } from '../../types';
|
|
2
|
+
import { JBaseApi } from '../base';
|
|
4
3
|
export declare class AdminStoreApi extends JBaseApi {
|
|
5
4
|
getItem(uri: string): Promise<ApiWrapper<StoreItem>>;
|
|
6
5
|
checkoutBilling(uri: string): Promise<ApiWrapper<boolean>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AdminApps } from '../../types';
|
|
2
|
+
import { JBaseApi } from '../base';
|
|
3
|
+
export declare class AdminUtilsApi extends JBaseApi {
|
|
4
|
+
/**
|
|
5
|
+
* Request the admin applications and sub applications for the admin panel
|
|
6
|
+
*/
|
|
7
|
+
getApps(): Promise<import("../../types").ApiWrapper<AdminApps, import("../../types").BaseMessages>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiWrapper, DriveDocumentParams, DriveItemType, MSGraphGroup, MSGraphSite, MSGraphTenant } from '../../types';
|
|
3
|
+
export declare class JDriveApi extends JBaseApi {
|
|
4
|
+
/**
|
|
5
|
+
* Microsoft graph only
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
tenants(): Promise<ApiWrapper<MSGraphTenant[]>>;
|
|
9
|
+
/**
|
|
10
|
+
* Microsoft graph only
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
groups(): Promise<ApiWrapper<MSGraphGroup[]>>;
|
|
14
|
+
/**
|
|
15
|
+
* Microsoft graph only
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
sites(): Promise<ApiWrapper<MSGraphSite[]>>;
|
|
19
|
+
documents(service: string, documentParams: DriveDocumentParams): Promise<ApiWrapper<DriveItemType[]>>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApiWrapper, BaseMessages, DriveItemType, MSGraphGroup, MSGraphTenant } from '../../types';
|
|
2
|
+
export declare const driveGetTenants: ApiWrapper<MSGraphTenant[], BaseMessages>;
|
|
3
|
+
export declare const driveGetGroups: ApiWrapper<MSGraphGroup[], BaseMessages>;
|
|
4
|
+
export declare const driveGetDocuments: ApiWrapper<DriveItemType[], BaseMessages>;
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './admin';
|
|
2
2
|
export * from './application';
|
|
3
3
|
export * from './article/article';
|
|
4
4
|
export * from './assetReservation';
|
|
@@ -12,7 +12,6 @@ export * from './filebank';
|
|
|
12
12
|
export * from './group';
|
|
13
13
|
export * from './jamespotUserApi';
|
|
14
14
|
export * from './jland/jland';
|
|
15
|
-
export * from './Licenses/licenses';
|
|
16
15
|
export * from './messenger';
|
|
17
16
|
export * from './search/search';
|
|
18
17
|
export * from './share';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AdminStoreApi } from './
|
|
1
|
+
import { AdminLicenseApi, AdminUtilsApi, AdminStoreApi } from './admin';
|
|
2
2
|
import { JApplicationApi } from './application';
|
|
3
3
|
import { JArticleApi } from './article/article';
|
|
4
4
|
import { JAseiApi } from './asei';
|
|
5
5
|
import { JAssetReservation } from './assetReservation';
|
|
6
6
|
import { JAudienceApi } from './audience/audience';
|
|
7
7
|
import { JCommunityApi } from './community';
|
|
8
|
+
import { JDriveApi } from './drive/drive';
|
|
8
9
|
import { JFileApi } from './file';
|
|
9
10
|
import { JFilebankApi } from './filebank';
|
|
10
11
|
import { JGroupApi } from './group';
|
|
@@ -19,7 +20,6 @@ import { JDiapazoneApi } from './diapazone';
|
|
|
19
20
|
import { JWedocApi } from './wedoc';
|
|
20
21
|
import { Network } from '../util/network';
|
|
21
22
|
import { JShareApi } from './share';
|
|
22
|
-
import { JLicenseApi } from './Licenses/licenses';
|
|
23
23
|
/**
|
|
24
24
|
* In browser usage, 'window' should be the window object.
|
|
25
25
|
* In server side usage, 'window' object given must implement the fetch method, used by the Apis.
|
|
@@ -31,7 +31,9 @@ export declare class JamespotUserApi {
|
|
|
31
31
|
version: string;
|
|
32
32
|
network: Network;
|
|
33
33
|
admin: {
|
|
34
|
+
license: AdminLicenseApi;
|
|
34
35
|
store: AdminStoreApi;
|
|
36
|
+
utils: AdminUtilsApi;
|
|
35
37
|
};
|
|
36
38
|
application: JApplicationApi;
|
|
37
39
|
article: JArticleApi;
|
|
@@ -41,11 +43,11 @@ export declare class JamespotUserApi {
|
|
|
41
43
|
bookmark: JBookmarkApi;
|
|
42
44
|
community: JCommunityApi;
|
|
43
45
|
diapazone: JDiapazoneApi;
|
|
46
|
+
drive: JDriveApi;
|
|
44
47
|
file: JFileApi;
|
|
45
48
|
filebank: JFilebankApi;
|
|
46
49
|
group: JGroupApi;
|
|
47
50
|
jland: JLandApi;
|
|
48
|
-
license: JLicenseApi;
|
|
49
51
|
mediaLibrary: JMediaLibraryApi;
|
|
50
52
|
messenger: JMessengerApi;
|
|
51
53
|
search: JSearchApi;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, jArticleList, MaybeWithToken, PagingResults } from '../../types';
|
|
2
|
+
import { ApiWrapper, jArticleList, License, MaybeWithToken, PagingResults } from '../../types';
|
|
3
3
|
import { ArticleCreation } from '../article/article';
|
|
4
|
-
import { JLicense } from '../Licenses/licenses';
|
|
5
4
|
export declare type JLandLog = {
|
|
6
5
|
idLog: number;
|
|
7
6
|
slug: string;
|
|
@@ -23,7 +22,7 @@ export declare type JLandMap = jArticleList & {
|
|
|
23
22
|
waMapUrl?: string;
|
|
24
23
|
limit?: number;
|
|
25
24
|
_extend: {
|
|
26
|
-
licenses: Array<
|
|
25
|
+
licenses: Array<License>;
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
28
|
export declare type JLandMapCreation = ArticleCreation & {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ObjectListProps } from '../apis';
|
|
2
|
+
import { jUserList } from './user';
|
|
3
|
+
export declare type AdminLicenseUserStats = {
|
|
4
|
+
countActiveUsersWithoutLicense: number;
|
|
5
|
+
countLicensesAssigned: number;
|
|
6
|
+
countLicensesNotAssigned: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type ObjectWithoutLicenseFilter = {
|
|
9
|
+
name: string;
|
|
10
|
+
operator: string;
|
|
11
|
+
value: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type AdminLicensesNotAssigned = {
|
|
14
|
+
[key: string]: number;
|
|
15
|
+
};
|
|
16
|
+
export declare type AdminLicensesAssigned = {
|
|
17
|
+
id: number;
|
|
18
|
+
kind: string;
|
|
19
|
+
dateCreation: string;
|
|
20
|
+
idFeature: number;
|
|
21
|
+
uri: string;
|
|
22
|
+
contentId: number;
|
|
23
|
+
contentType: string;
|
|
24
|
+
status: number;
|
|
25
|
+
};
|
|
26
|
+
export declare type License = {
|
|
27
|
+
id: number;
|
|
28
|
+
kind: string;
|
|
29
|
+
dateCreation: string;
|
|
30
|
+
idFeature: number;
|
|
31
|
+
uri: string;
|
|
32
|
+
contentId: number;
|
|
33
|
+
contentType: string;
|
|
34
|
+
status: number;
|
|
35
|
+
};
|
|
36
|
+
export declare type JAdminLicenseUserList = jUserList & {
|
|
37
|
+
_extend: {
|
|
38
|
+
licenses: Array<License>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export interface AdminLicenseUser extends ObjectListProps {
|
|
42
|
+
data: JAdminLicenseUserList[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare type AdminAppTab = {
|
|
2
|
+
sref?: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
idDiv: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type AdminApp = {
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
color: [string, string, string];
|
|
13
|
+
state?: string;
|
|
14
|
+
access: boolean;
|
|
15
|
+
url?: string;
|
|
16
|
+
tabs?: AdminAppTab[];
|
|
17
|
+
};
|
|
18
|
+
export declare type AdminApps = AdminApp[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare type MSGraphTenant = {
|
|
2
|
+
title: string;
|
|
3
|
+
type: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type MSGraphGroup = {
|
|
6
|
+
title: string;
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type MSGraphSite = {
|
|
11
|
+
title: string;
|
|
12
|
+
id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type DriveItemType = {
|
|
16
|
+
title: string;
|
|
17
|
+
id: string;
|
|
18
|
+
type: string;
|
|
19
|
+
webUrl: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type DriveDocumentParams = {
|
|
22
|
+
msTenant: 'groups' | 'sites' | undefined;
|
|
23
|
+
msId: string | undefined;
|
|
24
|
+
idFolder: string | undefined;
|
|
25
|
+
page: number;
|
|
26
|
+
limit: number;
|
|
27
|
+
};
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export * from './adminLicence';
|
|
1
2
|
export * from './adminStore';
|
|
3
|
+
export * from './adminUtils';
|
|
2
4
|
export * from './asei';
|
|
3
5
|
export * from './assetReservation';
|
|
4
6
|
export * from './autocomplete';
|
|
5
7
|
export * from './bookmark';
|
|
8
|
+
export * from './drive';
|
|
6
9
|
export * from './file';
|
|
7
10
|
export * from './group';
|
|
8
11
|
export * from './mediaLibrary';
|
package/lib/src/types/model.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare type WidgetDatePicker = {
|
|
|
27
27
|
type: 'datePicker';
|
|
28
28
|
};
|
|
29
29
|
export declare type WidgetDatePickerValue = string | null;
|
|
30
|
+
export declare type WidgetActiveValue = number;
|
|
30
31
|
export declare type WidgetMultiattribute = {
|
|
31
32
|
type: 'multiattribute';
|
|
32
33
|
};
|
|
@@ -71,6 +72,7 @@ export declare type WidgetTaxonomy = {
|
|
|
71
72
|
type: 'taxonomy';
|
|
72
73
|
params: {
|
|
73
74
|
idTaxonomy: string;
|
|
75
|
+
type?: string;
|
|
74
76
|
};
|
|
75
77
|
};
|
|
76
78
|
export declare type WidgetOrientedlinks = {
|
|
@@ -90,7 +92,7 @@ export declare type WidgetUri = {
|
|
|
90
92
|
};
|
|
91
93
|
};
|
|
92
94
|
export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetFile;
|
|
93
|
-
export declare type WidgetsValue = WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
|
|
95
|
+
export declare type WidgetsValue = WidgetActiveValue | WidgetDatePickerValue | WidgetDatetimeValue | WidgetDateValue | WidgetEmailValue | WidgetNumberValue | WidgetTextareaValue | WidgetTextValue | WidgetUrlValue;
|
|
94
96
|
export declare type FieldConfiguration<T extends string = string> = {
|
|
95
97
|
label: string;
|
|
96
98
|
description?: string;
|
package/lib/src/types/user.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { WidgetsValue } from './model';
|
|
2
2
|
import { jObjectLittle } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use jUserList instead
|
|
5
|
+
*/
|
|
3
6
|
export declare type UserModel = jObjectLittle & {
|
|
4
7
|
firstname: string;
|
|
5
8
|
lastname: string;
|
|
9
|
+
active: number;
|
|
6
10
|
mail?: string;
|
|
7
11
|
};
|
|
8
12
|
export declare type UserMapModel = {
|
|
@@ -22,6 +26,7 @@ export declare type jUserLittle = jObjectLittle & {
|
|
|
22
26
|
dateModified: string;
|
|
23
27
|
};
|
|
24
28
|
export declare type jUserList = jUserLittle & {
|
|
29
|
+
active: number;
|
|
25
30
|
[key: string]: WidgetsValue;
|
|
26
31
|
};
|
|
27
32
|
export declare type jUserView = jUserList & {};
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare type Order = {
|
|
|
110
110
|
sort: 'ASC' | 'DESC';
|
|
111
111
|
};
|
|
112
112
|
export declare type Orders = Array<Order>;
|
|
113
|
-
export declare type FilterValue = boolean | string | string[] | {
|
|
113
|
+
export declare type FilterValue = boolean | string | number | string[] | {
|
|
114
114
|
srcId: number | string;
|
|
115
115
|
srcType: string;
|
|
116
116
|
} | {
|
package/lib/src/util/Test.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JamespotUserApi } from '../apis';
|
|
2
|
-
import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete } from '../types';
|
|
2
|
+
import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectList, jUserList } from '../types';
|
|
3
3
|
import { Network } from './network';
|
|
4
4
|
export declare const network: Network;
|
|
5
5
|
export declare const jApi: JamespotUserApi;
|
|
@@ -25,4 +25,6 @@ export declare const validateObjectIsFormatLittle: <T extends {
|
|
|
25
25
|
title: string;
|
|
26
26
|
_url: string;
|
|
27
27
|
}>(object: T) => boolean;
|
|
28
|
+
export declare const validateObjectIsFormatList: <T extends jObjectList = jObjectList>(object: T) => boolean;
|
|
29
|
+
export declare const validateUserIsFormatList: <T extends jUserList = jUserList>(object: T) => boolean;
|
|
28
30
|
export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => boolean;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "o": "article", "f": "count", "error": 0, "messages": [], "result":
|
|
1
|
+
{ "o": "article", "f": "count", "error": 0, "messages": [], "result": 4 }
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
"o": "article",
|
|
3
3
|
"f": "create",
|
|
4
4
|
"error": 0,
|
|
5
|
-
"messages": [
|
|
5
|
+
"messages": [
|
|
6
|
+
{ "code": 200, "msg": "Enregistrement r\u00e9ussi" },
|
|
7
|
+
{ "code": 400, "msg": "Message non envoy\u00e9 (configuration Mail)." }
|
|
8
|
+
],
|
|
6
9
|
"result": [
|
|
7
10
|
{
|
|
8
|
-
"id":
|
|
11
|
+
"id": 167,
|
|
9
12
|
"mainType": "article",
|
|
10
13
|
"type": "mpArticle",
|
|
11
|
-
"uri": "mpArticle/
|
|
14
|
+
"uri": "mpArticle/167",
|
|
15
|
+
"dateCreation": "2023-05-29 17:37:14",
|
|
16
|
+
"dateModified": "2023-05-29 17:37:14",
|
|
12
17
|
"title": "Article for testArticleCreate",
|
|
13
|
-
"_url": "/article/
|
|
14
|
-
"dateCreation": "2023-04-11 14:53:51",
|
|
15
|
-
"dateModified": "2023-04-11 14:53:51"
|
|
18
|
+
"_url": "/article/167"
|
|
16
19
|
}
|
|
17
20
|
]
|
|
18
21
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"mainType": "article",
|
|
9
9
|
"type": "mpArticle",
|
|
10
10
|
"uri": "mpArticle/2",
|
|
11
|
-
"title": "Article groupe public",
|
|
12
|
-
"_url": "/article/2",
|
|
13
11
|
"dateCreation": "2019-07-19 09:36:25",
|
|
14
12
|
"dateModified": "2019-07-19 09:36:25",
|
|
13
|
+
"title": "Article groupe public",
|
|
14
|
+
"_url": "/article/2",
|
|
15
15
|
"_right": {
|
|
16
16
|
"create": true,
|
|
17
17
|
"read": true,
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"mainType": "user",
|
|
29
29
|
"type": "user",
|
|
30
30
|
"uri": "user/1",
|
|
31
|
+
"dateCreation": "2019-03-26 16:29:33",
|
|
32
|
+
"dateModified": "2023-05-29 17:35:50",
|
|
31
33
|
"title": "AdminJenkins",
|
|
32
34
|
"_url": "/user/1",
|
|
33
|
-
"dateCreation": "2019-03-26 16:29:33",
|
|
34
|
-
"dateModified": "2019-07-19 09:39:23",
|
|
35
35
|
"level": 9
|
|
36
36
|
},
|
|
37
37
|
"_nbAttachedFiles": 0
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
"error": 0,
|
|
5
5
|
"messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
|
|
6
6
|
"result": {
|
|
7
|
-
"id":
|
|
7
|
+
"id": 174,
|
|
8
8
|
"mainType": "article",
|
|
9
9
|
"type": "mpArticle",
|
|
10
|
-
"uri": "mpArticle/
|
|
10
|
+
"uri": "mpArticle/174",
|
|
11
|
+
"dateCreation": "2023-05-29 17:37:17",
|
|
12
|
+
"dateModified": "2023-05-29 17:37:17",
|
|
11
13
|
"title": "New Title for testArticleUpdate",
|
|
12
|
-
"_url": "/article/
|
|
13
|
-
"dateCreation": "2023-04-11 15:34:46",
|
|
14
|
-
"dateModified": "2023-04-11 15:34:46",
|
|
14
|
+
"_url": "/article/174",
|
|
15
15
|
"_right": {
|
|
16
16
|
"create": true,
|
|
17
17
|
"read": true,
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"mainType": "user",
|
|
29
29
|
"type": "user",
|
|
30
30
|
"uri": "user/4",
|
|
31
|
-
"title": "Admin1",
|
|
32
|
-
"_url": "/user/4",
|
|
33
31
|
"dateCreation": "2019-07-09 15:48:26",
|
|
34
32
|
"dateModified": "2019-07-09 15:51:24",
|
|
33
|
+
"title": "Admin1",
|
|
34
|
+
"_url": "/user/4",
|
|
35
35
|
"level": 9
|
|
36
36
|
},
|
|
37
37
|
"processContext": null
|
|
@@ -59,6 +59,48 @@
|
|
|
59
59
|
"cssClass": "group",
|
|
60
60
|
"cssColor": "#e34d55",
|
|
61
61
|
"class": "user-selector-spot"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "spot/22",
|
|
65
|
+
"idspot": "22",
|
|
66
|
+
"uri": "spot/22",
|
|
67
|
+
"shortUri": "s22",
|
|
68
|
+
"title": "Groupe test A",
|
|
69
|
+
"name": "Groupe test A",
|
|
70
|
+
"mainType": "spot",
|
|
71
|
+
"type": "spot",
|
|
72
|
+
"label": "Groupe",
|
|
73
|
+
"cssClass": "group",
|
|
74
|
+
"cssColor": "#e34d55",
|
|
75
|
+
"class": "user-selector-spot"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "spot/5",
|
|
79
|
+
"idspot": "5",
|
|
80
|
+
"uri": "spot/5",
|
|
81
|
+
"shortUri": "s5",
|
|
82
|
+
"title": "Spot 1 [updated]",
|
|
83
|
+
"name": "Spot 1 [updated]",
|
|
84
|
+
"mainType": "spot",
|
|
85
|
+
"type": "spot",
|
|
86
|
+
"label": "Groupe",
|
|
87
|
+
"cssClass": "group",
|
|
88
|
+
"cssColor": "#e34d55",
|
|
89
|
+
"class": "user-selector-spot"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "spot/6",
|
|
93
|
+
"idspot": "6",
|
|
94
|
+
"uri": "spot/6",
|
|
95
|
+
"shortUri": "s6",
|
|
96
|
+
"title": "Spot 2 [updated]",
|
|
97
|
+
"name": "Spot 2 [updated]",
|
|
98
|
+
"mainType": "spot",
|
|
99
|
+
"type": "spot",
|
|
100
|
+
"label": "Groupe",
|
|
101
|
+
"cssClass": "group",
|
|
102
|
+
"cssColor": "#e34d55",
|
|
103
|
+
"class": "user-selector-spot"
|
|
62
104
|
}
|
|
63
105
|
]
|
|
64
106
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"o": "licenseManager",
|
|
3
|
-
"f": "countLicensesNotAssigned",
|
|
4
|
-
"error": 0,
|
|
5
|
-
"messages": [],
|
|
6
|
-
"result": {
|
|
7
|
-
|
|
8
|
-
"JLO2": 0,
|
|
9
|
-
"JLO3": 0,
|
|
10
|
-
"JLO5": 0,
|
|
11
|
-
"JLMO2": 0,
|
|
12
|
-
"JLV3": 1,
|
|
13
|
-
"JLC3": 0
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"o": "licenseManager",
|
|
3
|
+
"f": "countLicensesNotAssigned",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": { "JLO1": 0, "JLO2": 0, "JLO3": 0, "JLO5": 0, "JLMO2": 0, "JLV3": 1, "JLC3": 0 }
|
|
7
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"o": "licenseManager",
|
|
3
|
-
"f": "getLicensesAssigned",
|
|
4
|
-
"error": 0,
|
|
5
|
-
"messages": [],
|
|
6
|
-
"result": [
|
|
7
|
-
{
|
|
8
|
-
"id":
|
|
9
|
-
"kind": "capacity-JLO1",
|
|
10
|
-
"dateCreation": "2023-
|
|
11
|
-
"idFeature":
|
|
12
|
-
"uri": "jlandmap/
|
|
13
|
-
"contentId":
|
|
14
|
-
"contentType": "jlandmap",
|
|
15
|
-
"status": 0
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"id": 6,
|
|
19
|
-
"kind": "capacity-JLO3",
|
|
20
|
-
"dateCreation": "2023-
|
|
21
|
-
"idFeature":
|
|
22
|
-
"uri": "jlandmap/
|
|
23
|
-
"contentId":
|
|
24
|
-
"contentType": "jlandmap",
|
|
25
|
-
"status": 0
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"id": 7,
|
|
29
|
-
"kind": "capacity-JLO5",
|
|
30
|
-
"dateCreation": "2023-
|
|
31
|
-
"idFeature":
|
|
32
|
-
"uri": "jlandmap/
|
|
33
|
-
"contentId":
|
|
34
|
-
"contentType": "jlandmap",
|
|
35
|
-
"status": 0
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"id": 8,
|
|
39
|
-
"kind": "capacity-JLO5",
|
|
40
|
-
"dateCreation": "2023-
|
|
41
|
-
"idFeature":
|
|
42
|
-
"uri": "jlandmap/
|
|
43
|
-
"contentId":
|
|
44
|
-
"contentType": "jlandmap",
|
|
45
|
-
"status": 0
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"o": "licenseManager",
|
|
3
|
+
"f": "getLicensesAssigned",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [],
|
|
6
|
+
"result": [
|
|
7
|
+
{
|
|
8
|
+
"id": 2,
|
|
9
|
+
"kind": "capacity-JLO1",
|
|
10
|
+
"dateCreation": "2023-05-29 17:37:33",
|
|
11
|
+
"idFeature": 5,
|
|
12
|
+
"uri": "jlandmap/190",
|
|
13
|
+
"contentId": 190,
|
|
14
|
+
"contentType": "jlandmap",
|
|
15
|
+
"status": 0
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": 6,
|
|
19
|
+
"kind": "capacity-JLO3",
|
|
20
|
+
"dateCreation": "2023-05-29 17:37:34",
|
|
21
|
+
"idFeature": 8,
|
|
22
|
+
"uri": "jlandmap/192",
|
|
23
|
+
"contentId": 192,
|
|
24
|
+
"contentType": "jlandmap",
|
|
25
|
+
"status": 0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": 7,
|
|
29
|
+
"kind": "capacity-JLO5",
|
|
30
|
+
"dateCreation": "2023-05-29 17:37:34",
|
|
31
|
+
"idFeature": 9,
|
|
32
|
+
"uri": "jlandmap/193",
|
|
33
|
+
"contentId": 193,
|
|
34
|
+
"contentType": "jlandmap",
|
|
35
|
+
"status": 0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": 8,
|
|
39
|
+
"kind": "capacity-JLO5",
|
|
40
|
+
"dateCreation": "2023-05-29 17:37:34",
|
|
41
|
+
"idFeature": 9,
|
|
42
|
+
"uri": "jlandmap/194",
|
|
43
|
+
"contentId": 194,
|
|
44
|
+
"contentType": "jlandmap",
|
|
45
|
+
"status": 0
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|